public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* question about periodic clocks
@ 2007-03-09 23:26 Jeremy Fitzhardinge
  2007-03-10  8:41 ` Thomas Gleixner
  0 siblings, 1 reply; 5+ messages in thread
From: Jeremy Fitzhardinge @ 2007-03-09 23:26 UTC (permalink / raw)
  To: Thomas Gleixner; +Cc: Linux Kernel Mailing List

How does the clock period get set on periodic timers?  In my clock
driver, I'm seeing a call to ->set_mode(CLOCK_EVT_MODE_PERIODIC, evt),
but then... nothing.  I was expecting a call to set_next_event to set
the timer period.

The calltrace is:

#0  xen_new_set_mode (mode=CLOCK_EVT_MODE_PERIODIC, evt=0xc10a2ac0)
    at arch/i386/xen/time.c:275
#1  0xc01323da in clockevents_set_mode (dev=0xc10a2ac0, 
    mode=CLOCK_EVT_MODE_PERIODIC) at kernel/time/clockevents.c:64
#2  0xc0132854 in tick_setup_periodic (dev=0xc10a2ac0, 
    broadcast=<value optimized out>) at kernel/time/tick-common.c:111

and tick_setup_periodic does just call clockevents_set_mode, but nothing
to set a period.

Am I supposed to assume some default period?  HZ?  (That's what hpet
seems to do.)

Is set_next_event only ever called if the timer is in ONESHOT mode?

Thanks,
    J

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2007-03-10 16:37 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-03-09 23:26 question about periodic clocks Jeremy Fitzhardinge
2007-03-10  8:41 ` Thomas Gleixner
2007-03-10 15:50   ` Jeremy Fitzhardinge
2007-03-10 16:24     ` Thomas Gleixner
2007-03-10 16:37       ` Jeremy Fitzhardinge

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox