Re: [PATCH] sched: Support current clocksource handling infallback sched_clock().

From: Daniel Walker
Date: Thu May 28 2009 - 12:13:50 EST


On Thu, 2009-05-28 at 14:59 +0200, Peter Zijlstra wrote:

>
>
> CPU0 CPU1
>
> clock = ACCESS_ONCE(sched_clocksource);
>
> unload module
> clocksource_unregister()
> sched_clocksource = jiffies
> unmap data/text
>
> cyc2ns(clock, clocksource_read(clock)) <--- fireworks
>
>

Do any module based clocksources even exist right now?
clocksource_unregister only seems to be used 3 times..

Daniel

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/