Re: spinaphore conceptual draft

Andi Kleen
2005-05-30T11:09:17Z

Kyle Moffett <mrmacman_g4@mac.com> writes:

> if (unlikely(CONFIG_SPINAPHORE_CONTEXT_SWITCH <
> ( queued*atomic_get(&sph->hold_time) -
> fast_monotonic_count() - start_time

On many architectures (including popular ones like AMD x86-64)
there is no reliable fast monotonic (1) count unfortunately - except perhaps
jiffies, but that would be far to coarse grained for your purpose.

-Andi

(1) reliable fast monotonic - chose any two instead.