summaryrefslogtreecommitdiffstats
path: root/recipes-kernel/linux/linux-ti33x-psp-3.2/3.2.24/0084-timekeeping-Add-missing-update-call-in-timekeeping_r.patch
diff options
context:
space:
mode:
Diffstat (limited to 'recipes-kernel/linux/linux-ti33x-psp-3.2/3.2.24/0084-timekeeping-Add-missing-update-call-in-timekeeping_r.patch')
-rw-r--r--recipes-kernel/linux/linux-ti33x-psp-3.2/3.2.24/0084-timekeeping-Add-missing-update-call-in-timekeeping_r.patch57
1 files changed, 57 insertions, 0 deletions
diff --git a/recipes-kernel/linux/linux-ti33x-psp-3.2/3.2.24/0084-timekeeping-Add-missing-update-call-in-timekeeping_r.patch b/recipes-kernel/linux/linux-ti33x-psp-3.2/3.2.24/0084-timekeeping-Add-missing-update-call-in-timekeeping_r.patch
new file mode 100644
index 00000000..06445f04
--- /dev/null
+++ b/recipes-kernel/linux/linux-ti33x-psp-3.2/3.2.24/0084-timekeeping-Add-missing-update-call-in-timekeeping_r.patch
@@ -0,0 +1,57 @@
1From 666e725f56fc4c9a6e4f0e00b5a180866863f724 Mon Sep 17 00:00:00 2001
2From: Thomas Gleixner <tglx@linutronix.de>
3Date: Mon, 16 Jul 2012 12:50:42 -0400
4Subject: [PATCH 084/109] timekeeping: Add missing update call in
5 timekeeping_resume()
6
7This is a backport of 3e997130bd2e8c6f5aaa49d6e3161d4d29b43ab0
8
9The leap second rework unearthed another issue of inconsistent data.
10
11On timekeeping_resume() the timekeeper data is updated, but nothing
12calls timekeeping_update(), so now the update code in the timer
13interrupt sees stale values.
14
15This has been the case before those changes, but then the timer
16interrupt was using stale data as well so this went unnoticed for quite
17some time.
18
19Add the missing update call, so all the data is consistent everywhere.
20
21Reported-by: Andreas Schwab <schwab@linux-m68k.org>
22Reported-and-tested-by: "Rafael J. Wysocki" <rjw@sisk.pl>
23Reported-and-tested-by: Martin Steigerwald <Martin@lichtvoll.de>
24Cc: LKML <linux-kernel@vger.kernel.org>
25Cc: Linux PM list <linux-pm@vger.kernel.org>
26Cc: John Stultz <johnstul@us.ibm.com>
27Cc: Ingo Molnar <mingo@kernel.org>
28Cc: Peter Zijlstra <a.p.zijlstra@chello.nl>,
29Cc: Prarit Bhargava <prarit@redhat.com>
30Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
31Signed-off-by: John Stultz <johnstul@us.ibm.com>
32Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
33[John Stultz: Backported to 3.2]
34Cc: Prarit Bhargava <prarit@redhat.com>
35Cc: Thomas Gleixner <tglx@linutronix.de>
36Cc: Linux Kernel <linux-kernel@vger.kernel.org>
37Signed-off-by: John Stultz <johnstul@us.ibm.com>
38Signed-off-by: Ben Hutchings <ben@decadent.org.uk>
39---
40 kernel/time/timekeeping.c | 1 +
41 1 files changed, 1 insertions(+), 0 deletions(-)
42
43diff --git a/kernel/time/timekeeping.c b/kernel/time/timekeeping.c
44index 4938c5e..03e67d4 100644
45--- a/kernel/time/timekeeping.c
46+++ b/kernel/time/timekeeping.c
47@@ -699,6 +699,7 @@ static void timekeeping_resume(void)
48 timekeeper.clock->cycle_last = timekeeper.clock->read(timekeeper.clock);
49 timekeeper.ntp_error = 0;
50 timekeeping_suspended = 0;
51+ timekeeping_update(false);
52 write_sequnlock_irqrestore(&xtime_lock, flags);
53
54 touch_softlockup_watchdog();
55--
561.7.7.6
57