On Mon, 24 Jan 2005, john stultz wrote: > +/* helper macro to atomically read both cyclone counter registers */ > +#define read_cyclone_counter(low,high) \ > + do{ \ > + high = cyclone_timer[1]; low = cyclone_timer[0]; \ > + } while (high != cyclone_timer[1]);
This is only necessary on 32 bit platforms. On ia64 an atomic read would do the job. Maybe that logic needs to go into the custom defined readq for 32 bit? Then you could avoid repeating the code for drivers that read 64 bit clocks on 32bit processors. - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to [EMAIL PROTECTED] More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/