lkml.org 
[lkml]   [2009]   [May]   [28]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH] sched: Support current clocksource handling in fallback sched_clock().
On Thu, 28 May 2009, Paul Mundt wrote:
> @@ -437,10 +441,19 @@ void clocksource_unregister(struct clocksource *cs)
> unsigned long flags;
>
> spin_lock_irqsave(&clocksource_lock, flags);
> +
> + if (sched_clocksource == cs) {
> + printk(KERN_WARNING "Refusing to unregister "
> + "scheduler clocksource %s", cs->name);

Hmm, isn't that dangerous ? The clocksource might be in a module or
in kmalloced memory which is going to be freed.

Thanks,

tglx


\
 
 \ /
  Last update: 2009-05-28 14:25    [from the cache]
©2003-2011 Jasper Spaans