diff options
author | Stephen Rothwell <sfr@canb.auug.org.au> | 2005-09-27 13:07:14 -0400 |
---|---|---|
committer | Stephen Rothwell <sfr@canb.auug.org.au> | 2005-09-27 13:07:14 -0400 |
commit | b6b8681843f9eaee12f8c30ffac399f7b2601ab3 (patch) | |
tree | 378e366e0d85c8d6ffc8da520efe7f96fc8b85ee /arch | |
parent | ed7f2c05de956da72baf066701ac642f7215dbf5 (diff) |
powerpc: Move iSeries_smp.c to powerpc/platforms/iseries
And rename it to smp.c.
Signed-off-by: Stephen Rothwell <sfr@canb.auug.org.au>
Diffstat (limited to 'arch')
-rw-r--r-- | arch/powerpc/platforms/iseries/Makefile | 1 | ||||
-rw-r--r-- | arch/powerpc/platforms/iseries/smp.c (renamed from arch/ppc64/kernel/iSeries_smp.c) | 16 | ||||
-rw-r--r-- | arch/ppc64/kernel/Makefile | 1 |
3 files changed, 9 insertions, 9 deletions
diff --git a/arch/powerpc/platforms/iseries/Makefile b/arch/powerpc/platforms/iseries/Makefile index 3a1ed16963a4..202f17419df5 100644 --- a/arch/powerpc/platforms/iseries/Makefile +++ b/arch/powerpc/platforms/iseries/Makefile | |||
@@ -2,3 +2,4 @@ obj-y += hvlog.o hvlpconfig.o lpardata.o setup.o mf.o lpevents.o \ | |||
2 | hvcall.o proc.o htab.o iommu.o | 2 | hvcall.o proc.o htab.o iommu.o |
3 | obj-$(CONFIG_PCI) += pci.o irq.o vpdinfo.o | 3 | obj-$(CONFIG_PCI) += pci.o irq.o vpdinfo.o |
4 | obj-$(CONFIG_IBMVIO) += vio.o | 4 | obj-$(CONFIG_IBMVIO) += vio.o |
5 | obj-$(CONFIG_SMP) += smp.o | ||
diff --git a/arch/ppc64/kernel/iSeries_smp.c b/arch/powerpc/platforms/iseries/smp.c index f982e5b805f4..f720916682f6 100644 --- a/arch/ppc64/kernel/iSeries_smp.c +++ b/arch/powerpc/platforms/iseries/smp.c | |||
@@ -47,17 +47,17 @@ | |||
47 | 47 | ||
48 | static unsigned long iSeries_smp_message[NR_CPUS]; | 48 | static unsigned long iSeries_smp_message[NR_CPUS]; |
49 | 49 | ||
50 | void iSeries_smp_message_recv( struct pt_regs * regs ) | 50 | void iSeries_smp_message_recv(struct pt_regs *regs) |
51 | { | 51 | { |
52 | int cpu = smp_processor_id(); | 52 | int cpu = smp_processor_id(); |
53 | int msg; | 53 | int msg; |
54 | 54 | ||
55 | if ( num_online_cpus() < 2 ) | 55 | if (num_online_cpus() < 2) |
56 | return; | 56 | return; |
57 | 57 | ||
58 | for ( msg = 0; msg < 4; ++msg ) | 58 | for (msg = 0; msg < 4; msg++) |
59 | if ( test_and_clear_bit( msg, &iSeries_smp_message[cpu] ) ) | 59 | if (test_and_clear_bit(msg, &iSeries_smp_message[cpu])) |
60 | smp_message_recv( msg, regs ); | 60 | smp_message_recv(msg, regs); |
61 | } | 61 | } |
62 | 62 | ||
63 | static inline void smp_iSeries_do_message(int cpu, int msg) | 63 | static inline void smp_iSeries_do_message(int cpu, int msg) |
@@ -74,8 +74,8 @@ static void smp_iSeries_message_pass(int target, int msg) | |||
74 | smp_iSeries_do_message(target, msg); | 74 | smp_iSeries_do_message(target, msg); |
75 | else { | 75 | else { |
76 | for_each_online_cpu(i) { | 76 | for_each_online_cpu(i) { |
77 | if (target == MSG_ALL_BUT_SELF | 77 | if ((target == MSG_ALL_BUT_SELF) && |
78 | && i == smp_processor_id()) | 78 | (i == smp_processor_id())) |
79 | continue; | 79 | continue; |
80 | smp_iSeries_do_message(i, msg); | 80 | smp_iSeries_do_message(i, msg); |
81 | } | 81 | } |
@@ -89,7 +89,7 @@ static int smp_iSeries_probe(void) | |||
89 | 89 | ||
90 | static void smp_iSeries_kick_cpu(int nr) | 90 | static void smp_iSeries_kick_cpu(int nr) |
91 | { | 91 | { |
92 | BUG_ON(nr < 0 || nr >= NR_CPUS); | 92 | BUG_ON((nr < 0) || (nr >= NR_CPUS)); |
93 | 93 | ||
94 | /* Verify that our partition has a processor nr */ | 94 | /* Verify that our partition has a processor nr */ |
95 | if (paca[nr].lppaca.dyn_proc_status >= 2) | 95 | if (paca[nr].lppaca.dyn_proc_status >= 2) |
diff --git a/arch/ppc64/kernel/Makefile b/arch/ppc64/kernel/Makefile index 7354c1dbe9f0..ee88fca0c886 100644 --- a/arch/ppc64/kernel/Makefile +++ b/arch/ppc64/kernel/Makefile | |||
@@ -60,7 +60,6 @@ obj-$(CONFIG_U3_DART) += u3_iommu.o | |||
60 | 60 | ||
61 | ifdef CONFIG_SMP | 61 | ifdef CONFIG_SMP |
62 | obj-$(CONFIG_PPC_PMAC) += pmac_smp.o smp-tbsync.o | 62 | obj-$(CONFIG_PPC_PMAC) += pmac_smp.o smp-tbsync.o |
63 | obj-$(CONFIG_PPC_ISERIES) += iSeries_smp.o | ||
64 | obj-$(CONFIG_PPC_PSERIES) += pSeries_smp.o | 63 | obj-$(CONFIG_PPC_PSERIES) += pSeries_smp.o |
65 | obj-$(CONFIG_PPC_BPA) += pSeries_smp.o | 64 | obj-$(CONFIG_PPC_BPA) += pSeries_smp.o |
66 | obj-$(CONFIG_PPC_MAPLE) += smp-tbsync.o | 65 | obj-$(CONFIG_PPC_MAPLE) += smp-tbsync.o |