Re: spinaphore conceptual draft

From: Andi Kleen
Date: Mon May 30 2005 - 06:13:23 EST


Kyle Moffett <mrmacman_g4@xxxxxxx> 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.
-
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/