* [Adeos-main] [PATCH] ipipe fix for PowerPC & SMP
@ 2007-12-16 11:58 Paul
2007-12-23 14:13 ` Philippe Gerum
0 siblings, 1 reply; 2+ messages in thread
From: Paul @ 2007-12-16 11:58 UTC (permalink / raw)
To: adeos-main
[-- Attachment #1: Type: text/plain, Size: 225 bytes --]
Attached, a trivial patch to fix a compile time error when building an SMP
kernel for powerpc - I suspect this affects all patches for this
architecture, not just the current 2.6.21 & 2.6.23 releases.
Regards, Paul.
[-- Attachment #2: powerpc-ipipe_ipi_message.diff --]
[-- Type: text/x-diff, Size: 1007 bytes --]
diff --git a/arch/powerpc/kernel/ipipe.c b/arch/powerpc/kernel/ipipe.c
index e08301e..553157d 100644
--- a/arch/powerpc/kernel/ipipe.c
+++ b/arch/powerpc/kernel/ipipe.c
@@ -120,9 +120,9 @@ static void __ipipe_ipi_demux(int irq)
kstat_cpu(cpu).irqs[irq]++;
- while (per_cpu(ipipe_ipi_message.value, cpu) & IPIPE_MSG_IPI_MASK) {
+ while (per_cpu(ipipe_ipi_message, cpu).value & IPIPE_MSG_IPI_MASK) {
for (ipi = IPIPE_MSG_CRITICAL_IPI; ipi <= IPIPE_MSG_SERVICE_IPI4; ++ipi) {
- if (test_and_clear_bit(ipi, &per_cpu(ipipe_ipi_message.value, cpu))) {
+ if (test_and_clear_bit(ipi, &per_cpu(ipipe_ipi_message, cpu).value)) {
mb();
__ipipe_handle_irq(ipi + IPIPE_MSG_IPI_OFFSET, NULL);
}
@@ -163,7 +163,7 @@ int __ipipe_send_ipi(unsigned ipi, cpumask_t cpumask)
ipi -= IPIPE_MSG_IPI_OFFSET;
for_each_online_cpu(cpu) {
if (cpu_isset(cpu, cpumask))
- set_bit(ipi, &per_cpu(ipipe_ipi_message.value, cpu));
+ set_bit(ipi, &per_cpu(ipipe_ipi_message, cpu).value);
}
mb();
^ permalink raw reply related [flat|nested] 2+ messages in thread* Re: [Adeos-main] [PATCH] ipipe fix for PowerPC & SMP
2007-12-16 11:58 [Adeos-main] [PATCH] ipipe fix for PowerPC & SMP Paul
@ 2007-12-23 14:13 ` Philippe Gerum
0 siblings, 0 replies; 2+ messages in thread
From: Philippe Gerum @ 2007-12-23 14:13 UTC (permalink / raw)
To: Paul; +Cc: adeos-main
Paul wrote:
> Attached, a trivial patch to fix a compile time error when building an SMP
> kernel for powerpc - I suspect this affects all patches for this
> architecture, not just the current 2.6.21 & 2.6.23 releases.
>
We don't support SMP platforms over 2.6.2[01]/powerpc, but this is
indeed applicable to 2.6.23. The funny thing is that GCC 4.2.0 for
powerpc64 does not seem to have any problem with this, and fortunately
generates the right offset out of a wrong expression...
Applied, thanks.
--
Philippe.
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2007-12-23 14:13 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-12-16 11:58 [Adeos-main] [PATCH] ipipe fix for PowerPC & SMP Paul
2007-12-23 14:13 ` Philippe Gerum
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.