diff options
author | Len Brown <len.brown@intel.com> | 2010-01-19 23:29:09 -0500 |
---|---|---|
committer | Len Brown <len.brown@intel.com> | 2010-01-20 00:54:15 -0500 |
commit | d22edd293ff3f1e2d252f164fe2cf744620cb660 (patch) | |
tree | de50e3a9d0b7ddae38d15104805cb0ff6a0bb053 /drivers/acpi | |
parent | a6d72c189f6c4292ba1a323e8af24083790529f8 (diff) | |
download | linux-d22edd293ff3f1e2d252f164fe2cf744620cb660.tar.gz linux-d22edd293ff3f1e2d252f164fe2cf744620cb660.tar.bz2 linux-d22edd293ff3f1e2d252f164fe2cf744620cb660.zip |
ACPI: delete acpi_processor_power_verify_c2()
no functional change -- cleanup only.
acpi_processor_power_verify_c2() was nearly empty due to a previous patch,
so expand its remains into its one caller and delete it.
Signed-off-by: Len Brown <len.brown@intel.com>
Diffstat (limited to 'drivers/acpi')
-rw-r--r-- | drivers/acpi/processor_idle.c | 22 |
1 files changed, 4 insertions, 18 deletions
diff --git a/drivers/acpi/processor_idle.c b/drivers/acpi/processor_idle.c index 2c543b42eb1c..7c0441f63b39 100644 --- a/drivers/acpi/processor_idle.c +++ b/drivers/acpi/processor_idle.c @@ -516,23 +516,6 @@ static int acpi_processor_get_power_info_cst(struct acpi_processor *pr) return status; } -static void acpi_processor_power_verify_c2(struct acpi_processor_cx *cx) -{ - - if (!cx->address) - return; - - /* - * Otherwise we've met all of our C2 requirements. - * Normalize the C2 latency to expidite policy - */ - cx->valid = 1; - - cx->latency_ticks = cx->latency; - - return; -} - static void acpi_processor_power_verify_c3(struct acpi_processor *pr, struct acpi_processor_cx *cx) { @@ -631,7 +614,10 @@ static int acpi_processor_power_verify(struct acpi_processor *pr) break; case ACPI_STATE_C2: - acpi_processor_power_verify_c2(cx); + if (!cx->address) + break; + cx->valid = 1; + cx->latency_ticks = cx->latency; /* Normalize latency */ break; case ACPI_STATE_C3: |