aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/hrtimer.h
diff options
context:
space:
mode:
authorThomas Gleixner <tglx@linutronix.de>2006-01-12 05:36:14 -0500
committerThomas Gleixner <tglx@linutronix.de>2006-01-12 05:36:14 -0500
commite2787630c1abb075c935cf47e91beb7c656f48c4 (patch)
tree43b6ee44b9f81fdb33283313f167d6ecec2b0243 /include/linux/hrtimer.h
parent288867ec5c377db82933b64460ce050e5c998ee9 (diff)
[hrtimer] Change resolution storage to ktime_t format
Change the storage format of the per base resolution to ktime_t to make it easier accessible in the hrtimers code. Change the resolution from (NSEC_PER_SEC/HZ) to TICK_NSEC as Roman pointed out. TICK_NSEC is closer to the real resolution. Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Diffstat (limited to 'include/linux/hrtimer.h')
-rw-r--r--include/linux/hrtimer.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/linux/hrtimer.h b/include/linux/hrtimer.h
index abb674c9b764..98c5c1537b5d 100644
--- a/include/linux/hrtimer.h
+++ b/include/linux/hrtimer.h
@@ -85,7 +85,7 @@ struct hrtimer_base {
85 spinlock_t lock; 85 spinlock_t lock;
86 struct rb_root active; 86 struct rb_root active;
87 struct rb_node *first; 87 struct rb_node *first;
88 unsigned long resolution; 88 ktime_t resolution;
89 ktime_t (*get_time)(void); 89 ktime_t (*get_time)(void);
90 struct hrtimer *curr_timer; 90 struct hrtimer *curr_timer;
91}; 91};