Commit 3616f62b authored by Paul Mackerras's avatar Paul Mackerras Committed by Linus Torvalds

[PATCH] ppc64: simplify timer_interrupt

This patch is from Milton Miller <miltonm@bga.com>.

When the update_process_times call was moved out of do_timer for the UP
case, the replicator didn't track down the hiding and just added ifndef
SMP.

This removes the ifdefs and the indirection of calling another file for one
function in a third file.
Signed-off-by: default avatarMilton Miller <miltonm@bga.com>
Signed-off-by: default avatarPaul Mackerras <paulus@samba.org>
Signed-off-by: default avatarAndrew Morton <akpm@osdl.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@osdl.org>
parent 533372a6
......@@ -157,11 +157,6 @@ static void __init smp_space_timers(unsigned int max_cpus)
}
}
void smp_local_timer_interrupt(struct pt_regs * regs)
{
update_process_times(user_mode(regs));
}
void smp_message_recv(int msg, struct pt_regs *regs)
{
switch(msg) {
......
......@@ -67,8 +67,6 @@
#include <asm/prom.h>
#include <asm/sections.h>
void smp_local_timer_interrupt(struct pt_regs *);
u64 jiffies_64 __cacheline_aligned_in_smp = INITIAL_JIFFIES;
EXPORT_SYMBOL(jiffies_64);
......@@ -258,8 +256,6 @@ int timer_interrupt(struct pt_regs * regs)
lpaca->lppaca.xIntDword.xFields.xDecrInt = 0;
while (lpaca->next_jiffy_update_tb <= (cur_tb = get_tb())) {
#ifdef CONFIG_SMP
/*
* We cannot disable the decrementer, so in the period
* between this cpu's being marked offline in cpu_online_map
......@@ -268,8 +264,7 @@ int timer_interrupt(struct pt_regs * regs)
* is the case.
*/
if (!cpu_is_offline(cpu))
smp_local_timer_interrupt(regs);
#endif
update_process_times(user_mode(regs));
/*
* No need to check whether cpu is offline here; boot_cpuid
* should have been fixed up by now.
......@@ -278,9 +273,6 @@ int timer_interrupt(struct pt_regs * regs)
write_seqlock(&xtime_lock);
tb_last_stamp = lpaca->next_jiffy_update_tb;
do_timer(regs);
#ifndef CONFIG_SMP
update_process_times(user_mode(regs));
#endif
timer_sync_xtime( cur_tb );
timer_check_rtc();
write_sequnlock(&xtime_lock);
......
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