[3.11.y.z extended stable] Patch "clocksource: em_sti: Set cpu_possible_mask to fix SMP broadcast" has been added to staging queue

Luis Henriques luis.henriques at canonical.com
Mon Jan 13 14:44:35 UTC 2014


This is a note to let you know that I have just added a patch titled

    clocksource: em_sti: Set cpu_possible_mask to fix SMP broadcast

to the linux-3.11.y-queue branch of the 3.11.y.z extended stable tree 
which can be found at:

 http://kernel.ubuntu.com/git?p=ubuntu/linux.git;a=shortlog;h=refs/heads/linux-3.11.y-queue

If you, or anyone else, feels it should not be added to this tree, please 
reply to this email.

For more information about the 3.11.y.z tree, see
https://wiki.ubuntu.com/Kernel/Dev/ExtendedStable

Thanks.
-Luis

------

>From 6d81caeef60eda9fe7da1369e99f0d5933551539 Mon Sep 17 00:00:00 2001
From: Magnus Damm <damm at opensource.se>
Date: Wed, 18 Sep 2013 15:01:16 -0500
Subject: clocksource: em_sti: Set cpu_possible_mask to fix SMP broadcast

commit 2199a5574b6d94b9ca26c6345356f45ec60fef8b upstream.

Update the STI driver by setting cpu_possible_mask to make EMEV2
SMP work as expected together with the ARM broadcast timer.

This breakage was introduced by:

f7db706 ARM: 7674/1: smp: Avoid dummy clockevent being preferred over real hardware clock-event

Without this fix SMP operation is broken on EMEV2 since no
broadcast timer interrupts trigger on the secondary CPU cores.

Signed-off-by: Magnus Damm <damm at opensource.se>
Tested-by: Simon Horman <horms+renesas at verge.net.au>
Reviewed-by: Stephen Boyd <sboyd at codeaurora.org>
Signed-off-by: Simon Horman <horms+renesas at verge.net.au>
Signed-off-by: Daniel Lezcano <daniel.lezcano at linaro.org>
Signed-off-by: Luis Henriques <luis.henriques at canonical.com>
---
 drivers/clocksource/em_sti.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/clocksource/em_sti.c b/drivers/clocksource/em_sti.c
index 4329a29..3141849 100644
--- a/drivers/clocksource/em_sti.c
+++ b/drivers/clocksource/em_sti.c
@@ -301,7 +301,7 @@ static void em_sti_register_clockevent(struct em_sti_priv *p)
 	ced->name = dev_name(&p->pdev->dev);
 	ced->features = CLOCK_EVT_FEAT_ONESHOT;
 	ced->rating = 200;
-	ced->cpumask = cpumask_of(0);
+	ced->cpumask = cpu_possible_mask;
 	ced->set_next_event = em_sti_clock_event_next;
 	ced->set_mode = em_sti_clock_event_mode;

--
1.8.3.2





More information about the kernel-team mailing list