]> git.kernelconcepts.de Git - karo-tx-linux.git/commitdiff
cpu/hotplug: Remove redundant state check
authorThomas Gleixner <tglx@linutronix.de>
Thu, 3 Mar 2016 11:24:10 +0000 (12:24 +0100)
committerThomas Gleixner <tglx@linutronix.de>
Sun, 6 Mar 2016 15:59:42 +0000 (16:59 +0100)
The check for the AP range in cpuhp_is_ap_state() is redundant after commit
8df3e07e7f21 "cpu/hotplug: Let upcoming cpu bring itself fully up" because all
states above CPUHP_BRINGUP_CPU are invoked on the hotplugged cpu. Remove it.

Reported-by: Richard Cochran <richardcochran@gmail.com>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
kernel/cpu.c

index 93e9d89bb0ab80c9c71a8b9c4842ec425244f6c0..373e831e0faa4a17b131039f09d98cac03824f9e 100644 (file)
@@ -1231,8 +1231,6 @@ static int cpuhp_cb_check(enum cpuhp_state state)
 
 static bool cpuhp_is_ap_state(enum cpuhp_state state)
 {
-       if (state >= CPUHP_AP_OFFLINE && state <= CPUHP_AP_ONLINE)
-               return true;
        return state > CPUHP_BRINGUP_CPU;
 }