/[linux-patches]/genpatches-2.6/historical/2.6.10/2705_sleep-fast-clock.patch
Gentoo

Contents of /genpatches-2.6/historical/2.6.10/2705_sleep-fast-clock.patch

Parent Directory Parent Directory | Revision Log Revision Log


Revision 2 - (hide annotations) (download) (as text)
Sat Jun 11 23:16:54 2005 UTC (15 years, 1 month ago) by dsd
File MIME type: text/x-diff
File size: 1124 byte(s)
Import historical releases
1 dsd 2 # This is a BitKeeper generated diff -Nru style patch.
2     #
3     # ChangeSet
4     # 2005/01/04 21:28:15-08:00 shaohua.li@intel.com
5     # [PATCH] time runx too fast after S3
6     #
7     # After resume from S3, 'date' shows time run too fast.
8     #
9     # Signed-off-by: Li Shaohua <shaohua.li@intel.com>
10     # Signed-off-by: Andrew Morton <akpm@osdl.org>
11     # Signed-off-by: Linus Torvalds <torvalds@osdl.org>
12     #
13     # arch/i386/kernel/time.c
14     # 2005/01/04 18:48:13-08:00 shaohua.li@intel.com +3 -2
15     # time runx too fast after S3
16     #
17     diff -Nru a/arch/i386/kernel/time.c b/arch/i386/kernel/time.c
18     --- a/arch/i386/kernel/time.c 2005-01-24 03:44:08 -08:00
19     +++ b/arch/i386/kernel/time.c 2005-01-24 03:44:08 -08:00
20     @@ -342,12 +342,13 @@
21     hpet_reenable();
22     #endif
23     sec = get_cmos_time() + clock_cmos_diff;
24     - sleep_length = get_cmos_time() - sleep_start;
25     + sleep_length = (get_cmos_time() - sleep_start) * HZ;
26     write_seqlock_irqsave(&xtime_lock, flags);
27     xtime.tv_sec = sec;
28     xtime.tv_nsec = 0;
29     write_sequnlock_irqrestore(&xtime_lock, flags);
30     - jiffies += sleep_length * HZ;
31     + jiffies += sleep_length;
32     + wall_jiffies += sleep_length;
33     return 0;
34     }
35    

  ViewVC Help
Powered by ViewVC 1.1.20