From c86b04867f4ba950f93bcfdf304709b868788964 Mon Sep 17 00:00:00 2001 From: Dave Jones Date: Wed, 22 Nov 2006 20:42:01 -0500 Subject: [PATCH] --- yaml --- r: 41064 b: refs/heads/master c: 0916bd3ebb7cefdd0f432e8491abe24f4b5a101e h: refs/heads/master v: v3 --- [refs] | 2 +- trunk/drivers/acpi/processor_perflib.c | 4 +--- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/[refs] b/[refs] index 26248591b493..0ef8745220be 100644 --- a/[refs] +++ b/[refs] @@ -1,2 +1,2 @@ --- -refs/heads/master: 5261d661b49e0c133395c88da193457f62db439a +refs/heads/master: 0916bd3ebb7cefdd0f432e8491abe24f4b5a101e diff --git a/trunk/drivers/acpi/processor_perflib.c b/trunk/drivers/acpi/processor_perflib.c index 7ba5e49ab302..6fd174a37149 100644 --- a/trunk/drivers/acpi/processor_perflib.c +++ b/trunk/drivers/acpi/processor_perflib.c @@ -83,10 +83,8 @@ static int acpi_processor_ppc_notifier(struct notifier_block *nb, goto out; ppc = (unsigned int)pr->performance_platform_limit; - if (!ppc) - goto out; - if (ppc > pr->performance->state_count) + if (ppc >= pr->performance->state_count) goto out; cpufreq_verify_within_limits(policy, 0,