Messages in this thread | | | Subject | Re: spinaphore conceptual draft | From | Andi Kleen <> | Date | Mon, 30 May 2005 13:06:57 +0200 |
| |
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. - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
| |