diff options
author | Thomas Gleixner <tglx@linutronix.de> | 2016-03-03 12:24:10 +0100 |
---|---|---|
committer | Thomas Gleixner <tglx@linutronix.de> | 2016-03-06 16:59:42 +0100 |
commit | 5d8eb84253333f8f63ec704276e3f0a8ec8f3189 (patch) | |
tree | 3aa264bdb1b803a9baf5ea484c6b03bef2f662f4 /kernel/cpu.c | |
parent | 71f87b2fc64c2e9b6d53cb817f28711b959d3dfe (diff) | |
download | linux-stable-5d8eb84253333f8f63ec704276e3f0a8ec8f3189.tar.gz linux-stable-5d8eb84253333f8f63ec704276e3f0a8ec8f3189.tar.bz2 linux-stable-5d8eb84253333f8f63ec704276e3f0a8ec8f3189.zip |
cpu/hotplug: Remove redundant state check
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>
Diffstat (limited to 'kernel/cpu.c')
-rw-r--r-- | kernel/cpu.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/kernel/cpu.c b/kernel/cpu.c index 93e9d89bb0ab..373e831e0faa 100644 --- a/kernel/cpu.c +++ b/kernel/cpu.c @@ -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; } |