acpi_idle: delete bogus data from cpuidle_state.power_usage
authorLen Brown <len.brown@intel.com>
Sat, 16 Oct 2010 01:25:02 +0000 (21:25 -0400)
committerLen Brown <len.brown@intel.com>
Sat, 16 Oct 2010 01:25:02 +0000 (21:25 -0400)
The mW data in this field comes from AML _CST,
which was typed in by a BIOS writer, and is thus
considered unreliable.

Linux does not use it for making any decisions.
We do display it in sysfs where somebody might
read it and assume it is meaningful, so delete it.

Signed-off-by: Len Brown <len.brown@intel.com>
drivers/acpi/processor_idle.c

index f4428e82b352940f7b9f8687c3c242b213d48421..07a8bb6506f738ffd5c1681d45043b9a6d2401f1 100644 (file)
@@ -1013,7 +1013,6 @@ static int acpi_processor_setup_cpuidle(struct acpi_processor *pr)
                strncpy(state->desc, cx->desc, CPUIDLE_DESC_LEN);
                state->exit_latency = cx->latency;
                state->target_residency = cx->latency * latency_factor;
                strncpy(state->desc, cx->desc, CPUIDLE_DESC_LEN);
                state->exit_latency = cx->latency;
                state->target_residency = cx->latency * latency_factor;
-               state->power_usage = cx->power;
 
                state->flags = 0;
                switch (cx->type) {
 
                state->flags = 0;
                switch (cx->type) {