time.c CP0_COMPARE

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Reading the information on the new time.c system, I'm wondering who
sets CP0_COMPARE the first time.

The timer_interrupt() function will re-set the CP0_COMPARE to a new
value when processing an interrupt.  But what sets the CP0_COMPARE
initially?  Is that the responsiblity of the board_timer_setup()
function?  That's what it looks like, but...  If so, what's the proper
value?  CP0_COUNT + cycle_per_jiffy?  But cycles_per_jiffy is static
to time.c...

Oh, and the Documentation/mips/time.README needs to be updated -- the
CPU counter does not necessarily run at the CPU frequency, tho it
often does.

Matt

--
Matthew D. Dharm                            Senior Software Designer
Momentum Computer Inc.                      1815 Aston Ave.  Suite 107
(760) 431-8663 X-115                        Carlsbad, CA 92008-7310
Momentum Works For You                      www.momenco.com



[Index of Archives]     [Linux MIPS Home]     [LKML Archive]     [Linux ARM Kernel]     [Linux ARM]     [Linux]     [Git]     [Yosemite News]     [Linux SCSI]     [Linux Hams]

  Powered by Linux