aboutsummaryrefslogtreecommitdiffstats
path: root/arch/parisc/kernel/smp.c
diff options
context:
space:
mode:
authorGrant Grundler <grundler@gsyprf11.external.hp.com>2006-09-03 03:02:16 -0400
committerMatthew Wilcox <willy@parisc-linux.org>2006-10-04 08:48:07 -0400
commit56f335c89e28c488b1bfea3e5e697fce805c784d (patch)
tree3e1d01e70b85f57a49fb10e60703dafb15b626fc /arch/parisc/kernel/smp.c
parent7908a0c72ee78ba5476c2a773d808c77593719c6 (diff)
[PARISC] Add new function to start local Interval Timer, start_cpu_itimer()
I couldn't find where the itimer was getting started for slave CPUs. CPU 0 (master) itimer was started in time_init() (arch/parisc/kernel/time.c). start_cpu_itimer() code was striped from time_init(). Slaves now start their itimer in smp_cpu_init(). This is a first step towards making gettimeoffset() work for SMP. Next step will be to determine the CR16 (cycle counter) offsets for each CPU relative to the master (CPU 0). Signed-off-by: Grant Grundler <grundler@parisc-linux.org> Signed-off-by: Kyle McMartin <kyle@parisc-linux.org>
Diffstat (limited to 'arch/parisc/kernel/smp.c')
-rw-r--r--arch/parisc/kernel/smp.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/arch/parisc/kernel/smp.c b/arch/parisc/kernel/smp.c
index 98e40959a564..f33e8de438dc 100644
--- a/arch/parisc/kernel/smp.c
+++ b/arch/parisc/kernel/smp.c
@@ -430,8 +430,9 @@ smp_do_timer(struct pt_regs *regs)
430static void __init 430static void __init
431smp_cpu_init(int cpunum) 431smp_cpu_init(int cpunum)
432{ 432{
433 extern int init_per_cpu(int); /* arch/parisc/kernel/setup.c */ 433 extern int init_per_cpu(int); /* arch/parisc/kernel/processor.c */
434 extern void init_IRQ(void); /* arch/parisc/kernel/irq.c */ 434 extern void init_IRQ(void); /* arch/parisc/kernel/irq.c */
435 extern void start_cpu_itimer(void); /* arch/parisc/kernel/time.c */
435 436
436 /* Set modes and Enable floating point coprocessor */ 437 /* Set modes and Enable floating point coprocessor */
437 (void) init_per_cpu(cpunum); 438 (void) init_per_cpu(cpunum);
@@ -457,6 +458,7 @@ smp_cpu_init(int cpunum)
457 enter_lazy_tlb(&init_mm, current); 458 enter_lazy_tlb(&init_mm, current);
458 459
459 init_IRQ(); /* make sure no IRQ's are enabled or pending */ 460 init_IRQ(); /* make sure no IRQ's are enabled or pending */
461 start_cpu_itimer();
460} 462}
461 463
462 464