public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] Fix RTC_AIE with CONFIG_HPET_EMULATE_RTC
@ 2007-12-20 14:40 Bernhard Walle
  2007-12-23 18:15 ` Clemens Ladisch
  0 siblings, 1 reply; 2+ messages in thread
From: Bernhard Walle @ 2007-12-20 14:40 UTC (permalink / raw)
  To: akpm, linux-kernel; +Cc: tglx, clemens

In the current code, RTC_AIE doesn't work if the RTC relies on
CONFIG_HPET_EMULATE_RTC because the code sets the RTC_AIE flag
in hpet_set_rtc_irq_bit(). The interrupt handles does accidentally
check for RTC_PIE and not RTC_AIE when comparing the time
which was set in hpet_set_alarm_time().

This patch is against 2.6.24-rc5-mm1.


Signed-off-by: Bernhard Walle <bwalle@suse.de>

---
 arch/x86/kernel/hpet.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

--- a/arch/x86/kernel/hpet.c
+++ b/arch/x86/kernel/hpet.c
@@ -657,7 +657,7 @@ irqreturn_t hpet_rtc_interrupt(int irq, 
 		hpet_pie_count = 0;
 	}
 
-	if (hpet_rtc_flags & RTC_PIE &&
+	if (hpet_rtc_flags & RTC_AIE &&
 	    (curr_time.tm_sec == hpet_alarm_time.tm_sec) &&
 	    (curr_time.tm_min == hpet_alarm_time.tm_min) &&
 	    (curr_time.tm_hour == hpet_alarm_time.tm_hour))

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [PATCH] Fix RTC_AIE with CONFIG_HPET_EMULATE_RTC
  2007-12-20 14:40 [PATCH] Fix RTC_AIE with CONFIG_HPET_EMULATE_RTC Bernhard Walle
@ 2007-12-23 18:15 ` Clemens Ladisch
  0 siblings, 0 replies; 2+ messages in thread
From: Clemens Ladisch @ 2007-12-23 18:15 UTC (permalink / raw)
  To: Bernhard Walle, akpm, linux-kernel; +Cc: tglx

Bernhard Walle wrote:
> In the current code, RTC_AIE doesn't work if the RTC relies on
> CONFIG_HPET_EMULATE_RTC because the code sets the RTC_AIE flag
> in hpet_set_rtc_irq_bit(). The interrupt handles does accidentally
> check for RTC_PIE and not RTC_AIE when comparing the time
> which was set in hpet_set_alarm_time().
> 
> This patch is against 2.6.24-rc5-mm1.
> 
> 
> Signed-off-by: Bernhard Walle <bwalle@suse.de>

Acked-by: Clemens Ladisch <clemens@ladisch.de>

> ---
>  arch/x86/kernel/hpet.c |    2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> --- a/arch/x86/kernel/hpet.c
> +++ b/arch/x86/kernel/hpet.c
> @@ -657,7 +657,7 @@ irqreturn_t hpet_rtc_interrupt(int irq, 
>  		hpet_pie_count = 0;
>  	}
>  
> -	if (hpet_rtc_flags & RTC_PIE &&
> +	if (hpet_rtc_flags & RTC_AIE &&
>  	    (curr_time.tm_sec == hpet_alarm_time.tm_sec) &&
>  	    (curr_time.tm_min == hpet_alarm_time.tm_min) &&
>  	    (curr_time.tm_hour == hpet_alarm_time.tm_hour))

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2007-12-23 18:38 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-12-20 14:40 [PATCH] Fix RTC_AIE with CONFIG_HPET_EMULATE_RTC Bernhard Walle
2007-12-23 18:15 ` Clemens Ladisch

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox