All of lore.kernel.org
 help / color / mirror / Atom feed
* hrtimer_clock_base and hrtimer_cpu_base
@ 2016-03-22  7:38 Pratyush Patel
  0 siblings, 0 replies; only message in thread
From: Pratyush Patel @ 2016-03-22  7:38 UTC (permalink / raw)
  To: kernelnewbies

Hello,

I am unable to understand what exactly "clock_base" and "cpu_base", or
simply "base" means (I am seeking an intuitive idea).

I understand that hrtimer subsystem stores its timers in a red-black
tree data structure, and the node for each timer can be found in
struct hrtimer. And if I understand correctly, these red-black trees
are stored per-CPU, each of which is processed differently, leading to
a "hrtimer_cpu_base"? However, as mentioned in a comment in the
hrtimer.h, the "active" attribute in "hrtimer_clock_base" stores the
root node of the red-black tree. Does this mean that each CPU has
multiple clock_bases, and hence multiple red-black trees? Also, could
someone please let me know, or perhaps point to a relevant resource,
which explains what a "timer_base" means?

Relevant files:
1) http://lxr.free-electrons.com/source/include/linux/hrtimer.h
2) http://lxr.free-electrons.com/source/kernel/time/hrtimer.c

Thank you,
Pratyush

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2016-03-22  7:38 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-03-22  7:38 hrtimer_clock_base and hrtimer_cpu_base Pratyush Patel

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.