Re: RCU + SMR for preemptive kernel/user threads.

From: Paul E. McKenney
Date: Mon May 09 2005 - 20:12:23 EST


On Mon, May 09, 2005 at 03:09:33PM -0400, Joe Seigh wrote:

[ . . . ]

> *** The per cpu times are in jiffies rounded off from some higher
> resolution value.
> This means that for n time counters, you may have to wait up to n jiffies
> for
> at least one round up to occur. It would be nicer to have the higher
> resolution
> value or even better a per processor number of interrupts to allow more
> flexibility
> and finer granularity in polling intervals.

You can use smp_call_function() to invoke a function on each of the
other CPUs. The implementations of smp_call_function() use inter-processor
interrupts, which should suffice, but you can always make the called
function just execute a memory barrier.

Thanx, Paul
-
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/