clockevents: warn once when program_event() is called with negative expiry
commit167b1de3ee4e50d65a2bd0a2667c9cd48faf54f3
authorThomas Gleixner <tglx@linutronix.de>
Fri, 7 Dec 2007 18:16:17 +0000 (7 19:16 +0100)
committerIngo Molnar <mingo@elte.hu>
Fri, 7 Dec 2007 18:16:17 +0000 (7 19:16 +0100)
treef1bdad90f0bb39fcaa9b2d6eed12fe2a0bb9d48e
parent62f0f61e6673e67151a7c8c0f9a09c7ea43fe2b5
clockevents: warn once when program_event() is called with negative expiry

The hrtimer problem with large relative timeouts resulting in a
negative expiry time went unnoticed as there is no check in the
clockevents_program_event() code. Put a check there with a WARN_ONCE
to avoid such problems in the future.

Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
kernel/time/clockevents.c