]> git.kernelconcepts.de Git - karo-tx-linux.git/commitdiff
intel_idle: use CPU_TASKS_FROZEN instead of a numeric constant
authorPrarit Bhargava <prarit@redhat.com>
Wed, 23 Oct 2013 13:44:51 +0000 (09:44 -0400)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Wed, 30 Oct 2013 00:25:07 +0000 (01:25 +0100)
Small fixup to use CPU_TASKS_FROZEN instead of 0xf.

Signed-off-by: Prarit Bhargava <prarit@redhat.com>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
drivers/idle/intel_idle.c

index 33e599ebbe96ccb024239964b5938f1bad5aff15..3f95a533c1a8f17de582b2abe28e51bd77006fd2 100644 (file)
@@ -390,7 +390,7 @@ static int cpu_hotplug_notify(struct notifier_block *n,
        int hotcpu = (unsigned long)hcpu;
        struct cpuidle_device *dev;
 
-       switch (action & 0xf) {
+       switch (action & ~CPU_TASKS_FROZEN) {
        case CPU_ONLINE:
 
                if (lapic_timer_reliable_states != LAPIC_TIMER_ALWAYS_RELIABLE)