01 -0700 hpet: fix the possibility of insane return value of hpet_calibrate() against SMI hpet_calibrate() has a possibility of miss-calibration due to SMI. If SMI interrupts in the while loop of calibration, then return value will be big. This change calibrates until stabilizing by the return value with a small value. [akpm@linux-foundation.org: trivial style tweaks] Signed-off-by: Yasunori Goto Acked-by: Clemens Ladisch Acked-by: Vojtech Pavlik Cc: Robert Picco Cc: Venkatesh Pallipadi Cc: Ingo Molnar Acked-by: Paul Gortmaker Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds ä|k,—#x