2009-03-03 16:17:20

by Johannes Weiner

[permalink] [raw]
Subject: [patch 1/3] xtensa: use generic sched_clock()

From: Johannes Weiner <[email protected]>

Current xtensa implementation of sched_clock() is the same as the
generic one. Just remove it, the weak symbol in kernel/sched_clock.c
will be used instead.

Signed-off-by: Johannes Weiner <[email protected]>
---
arch/xtensa/kernel/time.c | 9 ---------
1 file changed, 9 deletions(-)

--- a/arch/xtensa/kernel/time.c
+++ b/arch/xtensa/kernel/time.c
@@ -37,15 +37,6 @@ unsigned long nsec_per_ccount; /* nsec

static long last_rtc_update = 0;

-/*
- * Scheduler clock - returns current tim in nanosec units.
- */
-
-unsigned long long sched_clock(void)
-{
- return (unsigned long long)jiffies * (1000000000 / HZ);
-}
-
static irqreturn_t timer_interrupt(int irq, void *dev_id);
static struct irqaction timer_irqaction = {
.handler = timer_interrupt,

--