Re: clockevents: fix resume logic

Andrew Morton
2007-09-13T04:50:09Z

On Wed, 12 Sep 2007 18:57:42 +0200 Thomas Gleixner <tglx@linutronix.de> wrote:

> Does the test hack below fix the problem for nohz/highres enabled
> kernels ?
>
> tglx
>
> --- a/kernel/time/tick-broadcast.c
> +++ b/kernel/time/tick-broadcast.c
> @@ -382,6 +382,8 @@ static int tick_broadcast_set_event(ktime_t expires, int force)
>
> int tick_resume_broadcast_oneshot(struct clock_event_device *bc)
> {
> + cpu_set(smp_processor_id(), tick_broadcast_oneshot_mask);
> +
> clockevents_set_mode(bc, CLOCK_EVT_MODE_ONESHOT);
>
> if(!cpus_empty(tick_broadcast_oneshot_mask))

yup