[RFC] Event timers on MIPS

Alexander Motin mav at FreeBSD.org
Wed Aug 4 14:23:01 UTC 2010


Neel Natu wrote:
> Thanks for taking the time to review the patch. Here is the updated patch:
> http://people.freebsd.org/~neel/tick_diff.txt

Seems fine.

> On Sun, Aug 1, 2010 at 4:39 AM, Alexander Motin <mav at freebsd.org> wrote:
>> "t_upper++;" there looks a bit strange, as it is not written back. The
>> wrapping stuff won't work if this timer interrupts were not used.
> 
> This part is intentional.
> 
> I wanted only clock_intr() to update the cached values of
> 'counter_upper' and 'counter_lower_last' and tick_ticker() to sample a
> consistent snapshot of the tuple and then operate on it.
> 
> I have added an XXX comment to describe the dependency. We can revisit
> this if we change the default timer in mips.

It's not about default timer, but about having any other timer. But if
you wish so, it should be enough for now.

-- 
Alexander Motin


More information about the freebsd-mips mailing list