OpenVZ Forum - RDF feed
type: channel
items: [PATCH] Consolidate default sched_clock()
items: Re: [PATCH] Consolidate default sched_clock()

[PATCH] Consolidate default sched_clock()
type: item
description: Signed-off-by: Alexey Dobriyan <adobriyan@openvz.org> --- arch/alpha/kernel/time.c | 11 ----------- arch/arm/kernel/time.c | 10 ---------- arch/arm26/kernel/time.c | 8 -------- arch/avr32/kernel/time.c | 9 --------- arch/cris/kernel/time.c | 8 -------- arch/h8300/kernel/time.c | 6 ------ arch/m32r/kernel/time.c | 8 -------- arch/m68k/kernel/time.c | 9 --------- arch/m68knommu/kernel/time.c | 9 --------- arch/mips/kernel/time.c | 5 ----- arch/parisc/kernel/time.c | 11 ----------- arch/sh/kernel/time.c | 8 -------- arch/sh64/kernel/time.c | 9 --------- arch/sparc/kernel/time.c | 9 --------- arch/v850/kernel/time.c | 8 -------- arch/xtensa/kernel/time.c | 9 --------- kernel/sched.c | 10 ++++++++++ 17 files changed, 10 insertions(+), 137 deletions(-) --- a/arch/alpha/kernel/time.c +++ b/arch/alpha/kernel/time.c @@ -91,17 +91,6 @@ static inline __u32 rpcc(void) } /* - * Scheduler clock - returns current time in nanosec units. - * - * Copied from ARM code for expediency... ;-} - */ -unsigned long long sched_clock(void) -{ - return (unsigned long long)jiffies * (1000000000 / HZ); -} - - -/* * timer_interrupt() needs to keep up the real-time clock, * as well as call the "do_timer()" routine every clocktick */ --- a/arch/arm/kernel/time.c +++ b/arch/arm/kernel/time.c @@ -75,16 +75,6 @@ static unsigned long dummy_gettimeoffset } #endif -/* - * Scheduler clock - returns current time in nanosec units. - * This is the default implementation. Sub-architecture - * implementations can override this. - */ -unsigned long long __attribute__((weak)) sched_clock(void) -{ - return (unsigned long long)jiffies * (1000000000 / HZ); -} - static unsigned long next_rtc_update; /* --- a/arch/arm26/kernel/time.c +++ b/arch/arm26/kernel/time.c @@ -89,14 +89,6 @@ static unsigned long gettimeoffset(void) return (offset + LATCH/2) / LATCH; } -/* - * Scheduler clock - returns current time in nanosec units. - */ -unsigned long long sched_clock(void) -{ - return (unsigned long long)jiffies * (100000000…
creator: adobriyan
date: 2006-12-25T12:37:01-00:00

Re: [PATCH] Consolidate default sched_clock()
type: item
description: * Alexey Dobriyan <adobriyan@openvz.org> wrote: > Signed-off-by: Alexey Dobriyan <adobriyan@openvz.org> looks good to me. Acked-by: Ingo Molnar <mingo@elte.hu> Ingo
creator: Ingo Molnar
date: 2006-12-26T23:37:30-00:00