Skip to content

Commit

Permalink
[ARM SMP] Add missing SMP timer handling for realview
Browse files Browse the repository at this point in the history
Until we have local timer support, we need to broadcast the
timer interrupt to the other CPUs.  Also, add the missing
smp_send_timer() prototype to asm/smp.h

Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
  • Loading branch information
Russell King authored and Russell King committed Nov 8, 2005
1 parent f093182 commit dbebb4c
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
5 changes: 5 additions & 0 deletions arch/arm/mach-realview/core.c
Original file line number Diff line number Diff line change
Expand Up @@ -550,6 +550,11 @@ static irqreturn_t realview_timer_interrupt(int irq, void *dev_id, struct pt_reg

timer_tick(regs);

#ifdef CONFIG_SMP
smp_send_timer();
update_process_times(user_mode(regs));
#endif

write_sequnlock(&xtime_lock);

return IRQ_HANDLED;
Expand Down
5 changes: 5 additions & 0 deletions include/asm-arm/smp.h
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,11 @@ extern void smp_store_cpu_info(unsigned int cpuid);
*/
extern void smp_cross_call(cpumask_t callmap);

/*
* Broadcast a timer interrupt to the other CPUs.
*/
extern void smp_send_timer(void);

/*
* Boot a secondary CPU, and assign it the specified idle task.
* This also gives us the initial stack to use for this CPU.
Expand Down

0 comments on commit dbebb4c

Please sign in to comment.