From 2365b0cbd64fe7a00ec2cfd3b7d8a20df640e095 Mon Sep 17 00:00:00 2001 From: Steve Muckle Date: Tue, 14 Oct 2014 13:51:34 -0700 Subject: sched: tighten up jiffy to sched_clock mapping The tick code already tracks exact time a tick is expected to arrive. This can be used to eliminate slack in the jiffy to sched_clock mapping that aligns windows between a caller of sched_set_window and the scheduler itself. Change-Id: I9d47466658d01e6857d7457405459436d504a2ca Signed-off-by: Steve Muckle [joonwoop@codeaurora.org: fixed minor conflict in include/linux/tick.h] Signed-off-by: Joonwoo Park --- include/linux/tick.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'include/linux') diff --git a/include/linux/tick.h b/include/linux/tick.h index 37dc6fd909be..cf0dab43d6aa 100644 --- a/include/linux/tick.h +++ b/include/linux/tick.h @@ -27,6 +27,8 @@ static inline void tick_handover_do_timer(void) { } static inline void tick_cleanup_dead_cpu(int cpu) { } #endif /* !CONFIG_GENERIC_CLOCKEVENTS */ +extern u64 jiffy_to_sched_clock(u64 *now, u64 *jiffy_sched_clock); + #if defined(CONFIG_GENERIC_CLOCKEVENTS) && defined(CONFIG_SUSPEND) extern void tick_freeze(void); extern void tick_unfreeze(void); -- cgit v1.2.3