Files
kernel/include/linux
Thomas Gleixner eaad084bb0 NOHZ: prevent multiplication overflow - stop timer for huge timeouts
get_next_timer_interrupt() returns a delta of (LONG_MAX > 1) in case
there is no timer pending. On 64 bit machines this results in a
multiplication overflow in tick_nohz_stop_sched_tick().

Reported by: Dave Miller <davem@davemloft.net>

Make the return value a constant and limit the return value to a 32 bit
value.

When the max timeout value is returned, we can safely stop the tick
timer device. The max jiffies delta results in a 12 days timeout for
HZ=1000.

In the long term the get_next_timer_interrupt() code needs to be
reworked to return ktime instead of jiffies, but we have to wait until
the last users of the original NO_IDLE_HZ code are converted.

Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Acked-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
2007-05-29 18:11:10 -07:00
..
2007-05-14 19:33:46 -04:00
2007-05-01 16:11:57 +02:00
2007-05-08 11:15:16 -07:00
2007-05-14 19:33:47 -04:00
2007-05-11 05:38:26 -04:00
2007-05-09 12:30:51 -07:00
2007-05-07 12:12:55 -07:00
2007-05-23 20:14:12 -07:00
2007-05-08 11:15:15 -07:00
2007-05-09 12:30:56 -07:00
2007-05-07 12:13:00 -07:00
2007-05-21 09:56:57 -07:00
2007-05-10 18:24:13 +02:00
2007-05-08 11:15:25 -07:00
2007-05-08 11:15:26 -07:00
2007-05-01 09:11:12 +01:00
2007-05-07 12:12:58 -07:00
2007-05-03 13:17:25 -07:00
2007-05-11 08:29:36 -07:00
2007-05-09 08:57:56 +02:00
2007-05-09 08:57:56 +02:00
2007-05-09 12:30:57 -07:00
2007-05-06 20:38:28 -04:00
2007-05-08 11:15:04 -07:00
2007-05-09 12:30:55 -07:00
2007-04-28 11:01:07 -04:00
2007-05-11 16:56:02 +02:00
2007-05-01 23:26:34 +02:00
2007-05-16 00:51:46 +02:00
2007-05-11 08:29:36 -07:00
2007-05-11 08:29:34 -07:00
2007-05-15 08:54:00 -07:00
2007-05-08 11:15:09 -07:00
2007-05-09 12:30:53 -07:00
2007-05-09 12:30:54 -07:00
2007-05-03 10:52:32 +03:00
2007-05-21 20:00:54 -04:00
2007-05-18 20:46:30 -07:00
2007-05-08 11:15:18 -07:00
2007-05-09 12:30:49 -07:00
2007-05-03 10:52:22 +03:00
2007-05-21 09:18:19 -07:00
2007-05-09 12:30:54 -07:00
2007-05-04 17:59:07 -07:00
2007-05-07 12:12:59 -07:00
2007-05-08 11:15:05 -07:00
2007-05-08 11:15:05 -07:00
2007-05-05 14:15:32 -07:00
2007-05-24 02:42:37 +02:00
2007-05-08 11:15:14 -07:00
2007-05-08 11:14:57 -07:00
2007-05-07 12:12:54 -07:00
2007-05-09 08:57:56 +02:00
2007-05-17 05:23:06 -07:00
2007-05-08 11:15:18 -07:00
2007-05-23 20:14:12 -07:00
2007-05-09 08:57:56 +02:00
2007-05-07 12:12:50 -07:00
2007-05-11 08:29:36 -07:00
2007-05-11 08:29:36 -07:00
2007-05-03 03:16:20 -07:00
2007-05-21 21:47:27 -07:00
2007-05-08 11:14:58 -07:00
2007-05-08 11:15:18 -07:00
2007-05-09 12:30:57 -07:00
2007-05-11 08:29:34 -07:00
2007-05-11 08:29:36 -07:00
2007-05-08 11:15:18 -07:00
2007-05-11 08:29:36 -07:00
2007-05-11 08:29:35 -07:00
2007-05-11 08:29:35 -07:00
2007-05-03 00:55:34 -04:00
2007-05-07 12:12:58 -07:00
2007-05-09 08:57:56 +02:00
2007-05-09 12:30:56 -07:00
2007-05-21 09:18:19 -07:00
2007-05-04 12:55:39 -07:00