Commit 5d8eb842 authored by Thomas Gleixner's avatar Thomas Gleixner

cpu/hotplug: Remove redundant state check

The check for the AP range in cpuhp_is_ap_state() is redundant after commit
8df3e07e "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: default avatarRichard Cochran <richardcochran@gmail.com>
Signed-off-by: default avatarThomas Gleixner <tglx@linutronix.de>
parent 71f87b2f
...@@ -1231,8 +1231,6 @@ static int cpuhp_cb_check(enum cpuhp_state state) ...@@ -1231,8 +1231,6 @@ static int cpuhp_cb_check(enum cpuhp_state state)
static bool cpuhp_is_ap_state(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; return state > CPUHP_BRINGUP_CPU;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment