lkml.org 
[lkml]   [2016]   [Mar]   [2]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [tip:smp/hotplug] cpu/hotplug: Convert to a state machine for the control processor
On Tue, Mar 01, 2016 at 11:53:25AM -0800, tip-bot for Thomas Gleixner wrote:
> @@ -558,22 +648,22 @@ static int _cpu_up(unsigned int cpu, int tasks_frozen)
>
> cpuhp_tasks_frozen = tasks_frozen;
>
> + prev_state = st->state;
> + st->target = CPUHP_ONLINE;
> + while (st->state < st->target) {
> + struct cpuhp_step *step;
> +
> + st->state++;
> + step = cpuhp_bp_states + st->state;
> + ret = cpuhp_invoke_callback(cpu, st->state, step->startup);
> + if (ret) {
> + st->target = prev_state;
> + undo_cpu_up(cpu, st);
> + break;
> + }
> + }

All your other state loops use for().

\
 
 \ /
  Last update: 2016-03-02 12:41    [W:0.063 / U:1.328 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site