diff options
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.patch | 57 |
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 @@ | |||
1 | From 666e725f56fc4c9a6e4f0e00b5a180866863f724 Mon Sep 17 00:00:00 2001 | ||
2 | From: Thomas Gleixner <tglx@linutronix.de> | ||
3 | Date: Mon, 16 Jul 2012 12:50:42 -0400 | ||
4 | Subject: [PATCH 084/109] timekeeping: Add missing update call in | ||
5 | timekeeping_resume() | ||
6 | |||
7 | This is a backport of 3e997130bd2e8c6f5aaa49d6e3161d4d29b43ab0 | ||
8 | |||
9 | The leap second rework unearthed another issue of inconsistent data. | ||
10 | |||
11 | On timekeeping_resume() the timekeeper data is updated, but nothing | ||
12 | calls timekeeping_update(), so now the update code in the timer | ||
13 | interrupt sees stale values. | ||
14 | |||
15 | This has been the case before those changes, but then the timer | ||
16 | interrupt was using stale data as well so this went unnoticed for quite | ||
17 | some time. | ||
18 | |||
19 | Add the missing update call, so all the data is consistent everywhere. | ||
20 | |||
21 | Reported-by: Andreas Schwab <schwab@linux-m68k.org> | ||
22 | Reported-and-tested-by: "Rafael J. Wysocki" <rjw@sisk.pl> | ||
23 | Reported-and-tested-by: Martin Steigerwald <Martin@lichtvoll.de> | ||
24 | Cc: LKML <linux-kernel@vger.kernel.org> | ||
25 | Cc: Linux PM list <linux-pm@vger.kernel.org> | ||
26 | Cc: John Stultz <johnstul@us.ibm.com> | ||
27 | Cc: Ingo Molnar <mingo@kernel.org> | ||
28 | Cc: Peter Zijlstra <a.p.zijlstra@chello.nl>, | ||
29 | Cc: Prarit Bhargava <prarit@redhat.com> | ||
30 | Signed-off-by: Thomas Gleixner <tglx@linutronix.de> | ||
31 | Signed-off-by: John Stultz <johnstul@us.ibm.com> | ||
32 | Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org> | ||
33 | [John Stultz: Backported to 3.2] | ||
34 | Cc: Prarit Bhargava <prarit@redhat.com> | ||
35 | Cc: Thomas Gleixner <tglx@linutronix.de> | ||
36 | Cc: Linux Kernel <linux-kernel@vger.kernel.org> | ||
37 | Signed-off-by: John Stultz <johnstul@us.ibm.com> | ||
38 | Signed-off-by: Ben Hutchings <ben@decadent.org.uk> | ||
39 | --- | ||
40 | kernel/time/timekeeping.c | 1 + | ||
41 | 1 files changed, 1 insertions(+), 0 deletions(-) | ||
42 | |||
43 | diff --git a/kernel/time/timekeeping.c b/kernel/time/timekeeping.c | ||
44 | index 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 | -- | ||
56 | 1.7.7.6 | ||
57 | |||