When this was added, the log message was updated correctly, but the zero
case was needlessly checked separately: hpet_broadcast_enter() had a zero
check added at the same time, while handle_hpet_broadcast() can't possibly
pass 0 here anyway.
Fixes: 7145897cfb81 ("cpuidle: Fix for timer_deadline==0 case")
Signed-off-by: Jan Beulich <jbeulich@suse.com>
---
v2: New.
--- a/xen/arch/x86/hpet.c
+++ b/xen/arch/x86/hpet.c
@@ -147,10 +147,10 @@ static int reprogram_hpet_evt_channel(
int64_t delta;
int ret;
- if ( (ch->flags & HPET_EVT_DISABLE) || (expire == 0) )
+ if ( ch->flags & HPET_EVT_DISABLE )
return 0;
- if ( unlikely(expire < 0) )
+ if ( unlikely(expire <= 0) )
{
printk(KERN_DEBUG "reprogram: expire <= 0\n");
return -ETIME;