x86: hpet: Make WARN_ON understandable
authorThomas Gleixner <tglx@linutronix.de>
Fri, 27 Nov 2009 14:24:44 +0000 (15:24 +0100)
committerGreg Kroah-Hartman <gregkh@suse.de>
Mon, 26 Apr 2010 14:41:24 +0000 (07:41 -0700)
commit0584aa8dea3dab7f49ce949f61d7ec92b6b29e3e
treee8e52efd186ab9c9f844786dcf0dbd456d2347ab
parent342fcebe9ef1013a6b655875d2272c2078c6355e
x86: hpet: Make WARN_ON understandable

commit 18ed61da985c57eea3fe8038b13fa2837c9b3c3f upstream.

Andrew complained rightly that the WARN_ON in hpet_next_event() is
confusing and the code comment not really helpful.

Change it to WARN_ONCE and print the reason in clear text. Change the
comment to explain what kind of hardware wreckage we deal with.

Pointed-out-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Cc: Venki Pallipadi <venkatesh.pallipadi@intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
arch/x86/kernel/hpet.c