[PATCH V2] tick/broadcast: Make movement of broadcast hrtimer robust against hotplug
Thomas Gleixner
tglx at linutronix.de
Tue Jan 20 21:00:38 AEDT 2015
On Tue, 20 Jan 2015, Preeti U Murthy wrote:
> --- a/kernel/time/tick-broadcast.c
> +++ b/kernel/time/tick-broadcast.c
> @@ -675,8 +675,8 @@ static void broadcast_move_bc(int deadcpu)
>
> if (!bc || !broadcast_needs_cpu(bc, deadcpu))
> return;
> - /* This moves the broadcast assignment to this cpu */
> - clockevents_program_event(bc, bc->next_event, 1);
> + /* This allows fresh nomination of broadcast cpu */
This comment should explain WHY this enforces the move of the
broadcast to a different cpu. 'Allows' is rather ambiguous.
> + bc->next_event.tv64 = KTIME_MAX;
Thanks,
tglx
More information about the Linuxppc-dev
mailing list