diff options
author | Florian Fainelli <florian@openwrt.org> | 2014-02-28 20:30:08 +0000 |
---|---|---|
committer | Florian Fainelli <florian@openwrt.org> | 2014-02-28 20:30:08 +0000 |
commit | bb39b8d99aae1f7eb13a97bd874838da91080de6 (patch) | |
tree | 3046f53937c0bc5dc13e2b2ab7b688a1932199bf /target/linux/brcm2708/patches-3.10/0125-clockevents-Add-module-refcount.patch | |
parent | c6c0d09f85c211560a1405441925681cfa25e8b1 (diff) | |
download | upstream-bb39b8d99aae1f7eb13a97bd874838da91080de6.tar.gz upstream-bb39b8d99aae1f7eb13a97bd874838da91080de6.tar.bz2 upstream-bb39b8d99aae1f7eb13a97bd874838da91080de6.zip |
brcm2708: update against latest rpi-3.10.y branch
Update our copies of the brcm2708 patches to the latest rpi-3.10-y
rebased against linux-3.10.y stable (3.10.32). This should hopefully
make it easier for us in the future to leverage the raspberry/rpi-*
branches.
Signed-off-by: Florian Fainelli <florian@openwrt.org>
SVN-Revision: 39770
Diffstat (limited to 'target/linux/brcm2708/patches-3.10/0125-clockevents-Add-module-refcount.patch')
-rw-r--r-- | target/linux/brcm2708/patches-3.10/0125-clockevents-Add-module-refcount.patch | 46 |
1 files changed, 46 insertions, 0 deletions
diff --git a/target/linux/brcm2708/patches-3.10/0125-clockevents-Add-module-refcount.patch b/target/linux/brcm2708/patches-3.10/0125-clockevents-Add-module-refcount.patch new file mode 100644 index 0000000000..75f1c49ba3 --- /dev/null +++ b/target/linux/brcm2708/patches-3.10/0125-clockevents-Add-module-refcount.patch @@ -0,0 +1,46 @@ +From 38ca21f81217c14749f190f44709d4f5606ff798 Mon Sep 17 00:00:00 2001 +From: Thomas Gleixner <tglx@linutronix.de> +Date: Thu, 25 Apr 2013 20:31:49 +0000 +Subject: [PATCH 125/174] clockevents: Add module refcount + +commit ccf33d6880f39a35158fff66db13000ae4943fac upstream. + +We want to be able to remove clockevent modules as well. Add a +refcount so we don't remove a module with an active clock event +device. + +Signed-off-by: Thomas Gleixner <tglx@linutronix.de> +Cc: John Stultz <john.stultz@linaro.org> +Cc: Magnus Damm <magnus.damm@gmail.com> +Link: http://lkml.kernel.org/r/20130425143436.307435149@linutronix.de +Signed-off-by: Thomas Gleixner <tglx@linutronix.de> +Cc: Kim Phillips <kim.phillips@linaro.org> +Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org> +--- + kernel/time/tick-broadcast.c | 2 ++ + kernel/time/tick-common.c | 3 +++ + 2 files changed, 5 insertions(+) + +--- a/kernel/time/tick-broadcast.c ++++ b/kernel/time/tick-broadcast.c +@@ -92,6 +92,8 @@ void tick_install_broadcast_device(struc + + if (!try_module_get(dev->owner)) + return; ++ if (!try_module_get(dev->owner)) ++ return; + + clockevents_exchange_device(cur, dev); + if (cur) +--- a/kernel/time/tick-common.c ++++ b/kernel/time/tick-common.c +@@ -273,6 +273,9 @@ void tick_check_new_device(struct clock_ + if (!try_module_get(newdev->owner)) + return; + ++ if (!try_module_get(newdev->owner)) ++ return; ++ + /* + * Replace the eventually existing device by the new + * device. If the current device is the broadcast device, do |