Skip to content

Implement CONFIG_HPET_EMULATE_RTC for RTC_DRV_CMOS

Bernhard Walle lkml 1 version New

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest3 patches 0 repliesNew

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/3Make CONFIG_HPET_EMULATE_RTC usable from modulesarch/x86/kernel/hpet.c include/asm-x86/hpet.h+49 -10 replies
2/3Use the IRQ callback interface in (old) RTC driverarch/x86/Kconfig arch/x86/kernel/hpet.c drivers/char/rtc.c+15 -40 replies
3/3Add HPET RTC emulation to RTC_DRV_CMOSarch/x86/Kconfig drivers/rtc/rtc-cmos.c+67 -140 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [patch 0/3] Implement CONFIG_HPET_EMULATE_RTC for RTC_DRV_CMOS

The new rtc-cmos driver misses HPET support. If the hardware has HPET enabled, then interrupts don't work for the rtc-cmos driver which results in RTC_AIE*, RTC_PIE* and RTC_ALM being unusable. This affects hwclock from util-linux-ng at least on i386 since that uses RTC_PIE_ON. (For x86-64, a polling method is used for unknown reasons.)

This patch series now

1. export the functions from arch/x86/kernel/hpet.c that the old char/rtc driver uses to work around that problem,

2. makes it possible to compile the old rtc driver as module, while still having CONFIG_HPET_EMULATE_RTC enabled and

3. makes use of the exported functions in (1) in the new rtc-cmos driver.

The design is not changed. Please review and give me feedback!

This patch series is against 2.6.24-rc5-mm1. It passes the test in Documentation/rtc.txt after http://lkml.org/lkml/2007/12/20/249 is applied.