lkml.org 
[lkml]   [2009]   [Jan]   [25]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
SubjectRe: [Linux 2.6.29-rc2] BUG: using smp_processor_id() in preemptible
From
2009/1/25 Andrew Morton <akpm@linux-foundation.org>:
[...]
>
>
> Does this fix it?

Yes, message has gone. Thanks for help.

Tested-by Maciej Rutecki <maciej.rutecki@gmail.com>
>
> --- a/kernel/hrtimer.c~a
> +++ a/kernel/hrtimer.c
> @@ -562,7 +562,7 @@ static int hrtimer_reprogram(struct hrti
> /*
> * Retrigger next event is called after clock was set
> *
> - * Called with interrupts disabled via on_each_cpu()
> + * Called with interrupts disabled.
> */
> static void retrigger_next_event(void *arg)
> {
> @@ -614,8 +614,12 @@ void clock_was_set(void)
> */
> void hres_timers_resume(void)
> {
> + unsigned long flags;
> +
> /* Retrigger the CPU local events: */
> + local_irq_save(flags);
> retrigger_next_event(NULL);
> + local_irq_restore(flags);
> }
>
> /*
> _
>
>



--
Maciej Rutecki
http://www.maciek.unixy.pl


\
 
 \ /
  Last update: 2009-01-25 17:33    [from the cache]
©2003-2014 Jasper Spaans. Advertise on this site