/[linux-patches]/genpatches-2.6/tags/2.6.27-8/1800_revert-clock-backwards-fix.patch
Gentoo

Contents of /genpatches-2.6/tags/2.6.27-8/1800_revert-clock-backwards-fix.patch

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1437 - (show annotations) (download)
Sun Dec 14 13:46:22 2008 UTC (6 years ago) by dsd
File size: 854 byte(s)
2.6.27-8 release
1 From: Daniel Drake <dsd@gentoo.org>
2
3 https://bugs.gentoo.org/show_bug.cgi?id=249498
4 http://bugzilla.kernel.org/show_bug.cgi?id=12149
5
6 Revert commit 5b7dba4ff834259a5623e03a565748704a8fe449
7 sched_clock: prevent scd->clock from moving backwards
8
9 reverted:
10 --- b/kernel/sched_clock.c
11 +++ a/kernel/sched_clock.c
12 @@ -118,13 +118,13 @@
13
14 /*
15 * scd->clock = clamp(scd->tick_gtod + delta,
16 + * max(scd->tick_gtod, scd->clock),
17 + * scd->tick_gtod + TICK_NSEC);
18 - * max(scd->tick_gtod, scd->clock),
19 - * max(scd->clock, scd->tick_gtod + TICK_NSEC));
20 */
21
22 clock = scd->tick_gtod + delta;
23 min_clock = wrap_max(scd->tick_gtod, scd->clock);
24 + max_clock = scd->tick_gtod + TICK_NSEC;
25 - max_clock = wrap_max(scd->clock, scd->tick_gtod + TICK_NSEC);
26
27 clock = wrap_max(clock, min_clock);
28 clock = wrap_min(clock, max_clock);

  ViewVC Help
Powered by ViewVC 1.1.20