Commit 22b7fcda authored by Torben Hohn's avatar Torben Hohn Committed by Thomas Gleixner

mn10300: Switch do_timer() to xtimer_update()

Only one CPU gets the timer interrupt so mn10300_last_tsc does not
need to be protected by xtime lock. Remove xtime lovking and use
xtime_update() which does the locking itself.
Signed-off-by: default avatarTorben Hohn <torbenh@gmx.de>
Cc: David Howells <dhowells@redhat.com>
Cc: Koichi Yasutake <yasutake.koichi@jp.panasonic.com>
LKML-Reference: <20110127150011.23248.62040.stgit@localhost>
Signed-off-by: default avatarThomas Gleixner <tglx@linutronix.de>
parent 0606f422
...@@ -104,8 +104,6 @@ static irqreturn_t timer_interrupt(int irq, void *dev_id) ...@@ -104,8 +104,6 @@ static irqreturn_t timer_interrupt(int irq, void *dev_id)
unsigned tsc, elapse; unsigned tsc, elapse;
irqreturn_t ret; irqreturn_t ret;
write_seqlock(&xtime_lock);
while (tsc = get_cycles(), while (tsc = get_cycles(),
elapse = tsc - mn10300_last_tsc, /* time elapsed since last elapse = tsc - mn10300_last_tsc, /* time elapsed since last
* tick */ * tick */
...@@ -114,11 +112,9 @@ static irqreturn_t timer_interrupt(int irq, void *dev_id) ...@@ -114,11 +112,9 @@ static irqreturn_t timer_interrupt(int irq, void *dev_id)
mn10300_last_tsc += MN10300_TSC_PER_HZ; mn10300_last_tsc += MN10300_TSC_PER_HZ;
/* advance the kernel's time tracking system */ /* advance the kernel's time tracking system */
do_timer(1); xtime_update(1);
} }
write_sequnlock(&xtime_lock);
ret = local_timer_interrupt(); ret = local_timer_interrupt();
#ifdef CONFIG_SMP #ifdef CONFIG_SMP
send_IPI_allbutself(LOCAL_TIMER_IPI); send_IPI_allbutself(LOCAL_TIMER_IPI);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment