* timer_tick vs clockevent
@ 2011-01-25 12:21 Sergey Mironov
2011-01-25 12:32 ` Russell King - ARM Linux
0 siblings, 1 reply; 2+ messages in thread
From: Sergey Mironov @ 2011-01-25 12:21 UTC (permalink / raw)
To: linux-arm-kernel
Hi. I am working on porting linux to ARM 1176-based SoC. My quiestion
is about system time. I see 2 ways of implementing it: 1) Define
struct sys_timer variable and call timer_tick() from timer's interrupt
handler 2) Use clocksource/clockevents. Looks like 2nd way is more
elaborate, but what will I get if choose it?
Thanks, Sergey
^ permalink raw reply [flat|nested] 2+ messages in thread
* timer_tick vs clockevent
2011-01-25 12:21 timer_tick vs clockevent Sergey Mironov
@ 2011-01-25 12:32 ` Russell King - ARM Linux
0 siblings, 0 replies; 2+ messages in thread
From: Russell King - ARM Linux @ 2011-01-25 12:32 UTC (permalink / raw)
To: linux-arm-kernel
On Tue, Jan 25, 2011 at 03:21:12PM +0300, Sergey Mironov wrote:
> Hi. I am working on porting linux to ARM 1176-based SoC. My quiestion
> is about system time. I see 2 ways of implementing it: 1) Define
> struct sys_timer variable and call timer_tick() from timer's interrupt
> handler 2) Use clocksource/clockevents. Looks like 2nd way is more
> elaborate, but what will I get if choose it?
For all new implementations, (2) is the way to go. (1) is deprecated,
and involves some pretty hairy code for the gettimeoffset() stuff.
While (2) is more elaborate, you get additional features like NO_HZ
mode and hi-res timer support. We recently had someone complaining that
they couldn't do something in userspace because their platform support
implemented (1) rather than (2), but I don't recall the details.
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2011-01-25 12:32 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-01-25 12:21 timer_tick vs clockevent Sergey Mironov
2011-01-25 12:32 ` Russell King - ARM Linux
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).