The patch titled i386: fix bogus return value in hpet_next_event() has been removed from the -mm tree. Its filename was i386-fix-bogus-return-value-in-hpet_next_event.patch This patch was dropped because it was merged into mainline or a subsystem tree ------------------------------------------------------ Subject: i386: fix bogus return value in hpet_next_event() From: Thomas Gleixner <tglx@xxxxxxxxxxxxx> The clockevents / tick management code expects an error value, when the event is already expired. hpet_next_event() returns 1 in that case. Fix it to return the proper -ETIME error code. Signed-off-by: Thomas Gleixner <tglx@xxxxxxxxxxxxx> Cc: Ingo Molnar <mingo@xxxxxxx> Cc: john stultz <johnstul@xxxxxxxxxx> Signed-off-by: Andrew Morton <akpm@xxxxxxxxxxxxxxxxxxxx> --- arch/i386/kernel/hpet.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff -puN arch/i386/kernel/hpet.c~i386-fix-bogus-return-value-in-hpet_next_event arch/i386/kernel/hpet.c --- a/arch/i386/kernel/hpet.c~i386-fix-bogus-return-value-in-hpet_next_event +++ a/arch/i386/kernel/hpet.c @@ -197,7 +197,7 @@ static int hpet_next_event(unsigned long cnt += delta; hpet_writel(cnt, HPET_T0_CMP); - return ((long)(hpet_readl(HPET_COUNTER) - cnt ) > 0); + return ((long)(hpet_readl(HPET_COUNTER) - cnt ) > 0) ? -ETIME : 0; } /* _ Patches currently in -mm which might be from tglx@xxxxxxxxxxxxx are origin.patch git-ieee1394.patch log-reason-why-tsc-was-marked-unstable.patch optimize-timespec_trunc.patch kernel-irq-procc-unprotected-iteration-over-the-irq-action-list-in-name_unique.patch add-support-for-deferrable-timers-respun.patch add-support-for-deferrable-timers-respun-tidy.patch add-support-for-deferrable-timers-respun-fix.patch irq-check-for-percpu-flag-only-when-adding-first-irqaction.patch move-timekeeping-code-to-timekeepingc.patch ignore-stolen-time-in-the-softlockup-watchdog.patch sched-fix-idle-load-balancing-in-softirqd-context.patch sched-dynticks-idle-load-balancing-v3.patch declare-struct-ktime.patch add-irqf_irqpoll-flag-common-code.patch add-irqf_irqpoll-flag-on-x86_64.patch add-irqf_irqpoll-flag-on-i386.patch add-irqf_irqpoll-flag-on-ia64.patch add-irqf_irqpoll-flag-on-sh.patch add-irqf_irqpoll-flag-on-arm.patch mm-only-hrtimers-debug-patch.patch mm-only-hrtimers-debug-patch-fix.patch - To unsubscribe from this list: send the line "unsubscribe mm-commits" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html