This is a note to let you know that I've just added the patch titled
x86, mrst: Set correct APB timer IRQ affinity for secondary cpu
to the 2.6.37-stable tree which can be found at:
http://www.kernel.org/git/?p=linux/kernel/git/stable/stable-queue.git;a=summary
The filename of the patch is:
x86-mrst-set-correct-apb-timer-irq-affinity-for-secondary-cpu.patch
and it can be found in the queue-2.6.37 subdirectory.
If you, or anyone else, feels it should not be added to the stable tree,
please let <[email protected]> know about it.
>From [email protected] Thu Feb 17 19:06:50 2011
From: [email protected]
Date: Thu, 17 Feb 2011 16:58:21 -0800
Subject: x86, mrst: Set correct APB timer IRQ affinity for secondary cpu
To: <[email protected]>, <[email protected]>
Cc: "H. Peter Anvin" <[email protected]>, Jacob Pan
<[email protected]>
Message-ID: <[email protected]>
From: Jacob Pan <[email protected]>
This is a backport for 2.6.37 stable. The original commit ID is
6550904ddbc3c286798a87edf95eeebcc62bc58a
Offlining the secondary CPU causes the timer irq affinity to be set to
CPU 0. When the secondary CPU is back online again, the wrong irq
affinity will be used.
This patch ensures secondary per CPU timer always has the correct
IRQ affinity when enabled.
Signed-off-by: Jacob Pan <[email protected]>
LKML-Reference:
<[email protected]>
Signed-off-by: H. Peter Anvin <[email protected]>
Signed-off-by: Greg Kroah-Hartman <[email protected]>
---
arch/x86/kernel/apb_timer.c | 8 +++++---
1 file changed, 5 insertions(+), 3 deletions(-)
--- a/arch/x86/kernel/apb_timer.c
+++ b/arch/x86/kernel/apb_timer.c
@@ -313,10 +313,12 @@ static void apbt_setup_irq(struct apbt_d
if (adev->irq == 0)
return;
+ irq_modify_status(adev->irq, 0, IRQ_MOVE_PCNTXT);
+ irq_set_affinity(adev->irq, cpumask_of(adev->cpu));
+ /* APB timer irqs are set up as mp_irqs, timer is edge type */
+ __set_irq_handler(adev->irq, handle_edge_irq, 0, "edge");
+
if (system_state == SYSTEM_BOOTING) {
- irq_modify_status(adev->irq, 0, IRQ_MOVE_PCNTXT);
- /* APB timer irqs are set up as mp_irqs, timer is edge type */
- __set_irq_handler(adev->irq, handle_edge_irq, 0, "edge");
if (request_irq(adev->irq, apbt_interrupt_handler,
IRQF_TIMER | IRQF_DISABLED | IRQF_NOBALANCING,
adev->name, adev)) {
Patches currently in stable-queue which might be from [email protected] are
queue-2.6.37/hid-magicmouse-don-t-report-rel_-x-y-for-magic-trackpad.patch
queue-2.6.37/x86-mrst-set-correct-apb-timer-irq-affinity-for-secondary-cpu.patch
queue-2.6.37/acpi-wakeup-enable-button-gpes-unconditionally-during-initialization.patch
queue-2.6.37/x86-hotplug-fix-powersavings-with-offlined-cores-on-amd.patch
_______________________________________________
stable mailing list
[email protected]
http://linux.kernel.org/mailman/listinfo/stable