cpu/intel/model_206ax: Simplify C-state acpigen
Since there's only one set of values, the if-clause is unnecessary. Change-Id: I2fb4582377fe2f204d2cee0dc513a4d5d24feabe Signed-off-by: Angel Pons <th3fanbus@gmail.com> Reviewed-on: https://review.coreboot.org/c/coreboot/+/49090 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Nico Huber <nico.h@gmx.de>
This commit is contained in:
parent
6f56a23136
commit
ef458dafc0
|
@ -78,20 +78,8 @@ static void generate_C_state_entries(void)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
acpigen_write_method("_CST", 0);
|
acpigen_write_method("_CST", 0);
|
||||||
|
acpigen_emit_byte(RETURN_OP);
|
||||||
/* If running on AC power */
|
generate_cstate_entries(cpu->cstates, conf->acpi_c1, conf->acpi_c2, conf->acpi_c3);
|
||||||
acpigen_emit_byte(0xa0); /* IfOp */
|
|
||||||
acpigen_write_len_f(); /* PkgLength */
|
|
||||||
acpigen_emit_namestring("PWRS");
|
|
||||||
acpigen_emit_byte(0xa4); /* ReturnOp */
|
|
||||||
generate_cstate_entries(cpu->cstates, conf->acpi_c1,
|
|
||||||
conf->acpi_c2, conf->acpi_c3);
|
|
||||||
acpigen_pop_len();
|
|
||||||
|
|
||||||
/* Else on battery power */
|
|
||||||
acpigen_emit_byte(0xa4); /* ReturnOp */
|
|
||||||
generate_cstate_entries(cpu->cstates, conf->acpi_c1,
|
|
||||||
conf->acpi_c2, conf->acpi_c3);
|
|
||||||
acpigen_pop_len();
|
acpigen_pop_len();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue