Re: [patch 18/20] cpu/hotplug: Let upcoming cpu bring itself fully up

From: Richard Cochran
Date: Wed Mar 02 2016 - 12:28:42 EST


On Fri, Feb 26, 2016 at 06:43:41PM -0000, Thomas Gleixner wrote:
> @@ -1204,7 +1212,7 @@ static bool cpuhp_is_ap_state(enum cpuhp
> {
> if (state >= CPUHP_AP_OFFLINE && state <= CPUHP_AP_ONLINE)
> return true;

FWIW, this test is superfluous after this change, because
CPUHP_BRINGUP_CPU is less than CPUHP_AP_OFFLINE.

> - return state > CPUHP_BP_ONLINE;
> + return state > CPUHP_BRINGUP_CPU;
> }

Thanks,
Richard