Re: [RFC] Reentrant clock sources

From: Ingo Molnar
Date: Tue Nov 25 2008 - 22:08:19 EST



* Thomas Gleixner <tglx@xxxxxxxxxxxxx> wrote:

> > + cycle_t (*vread)(struct clocksource *cs);
>
> This is crap. vread can not access the clocksource.

i think 'reentrant' in the sense of creating self-sufficient driver
entities. vread wont (and shouldnt) call ->vread() recursively - but
it might want to access fields on the clocksource.

this way more dynamic clocksource drivers could be written. Am i
missing something?

Ingo
--
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/