disable GEN_RTC on ia-64
PATCH 1/1 disable GEN_RTC on ia-64
IA-64 does not have a directly accessible real-time clock. As far as I know the only method to access the clock on this platform is to go through EFI (Extensible Firmware Interface, like a BIOS), which is handled by efirtc.c.
genrtc can be configured on for this platform but does not build (because there is no asm/rtc.h), and anyhow it is never likely to be useful. I suggest that it should be disabled in Kconfig, as rtc.c already is.
Perhaps other platforms that don't support it should be turned off too.
drivers/char/Kconfig renamed from drivers/char/Kconfig.~1~ +1 -1
@@ -797,7 +797,7 @@ config RTC config GEN_RTC tristate "Generic /dev/rtc emulation" - depends on RTC!=y + depends on RTC!=y && !IA64 ---help--- If you say Y here and create a character special file /dev/rtc with major number 10 and minor number 135 using mknod ("man mknod"), you
Regards,
Signature · 1 line
Martin
Quoted 4 lines · Martin Pool
IA-64 does not have a directly accessible real-time clock. As far as I know the only method to access the clock on this platform is to go through EFI (Extensible Firmware Interface, like a BIOS), which is handled by
efirtc.c.
I think that this is the wrong approach. genrtc allows the platform to specify how the rtc is to be accessed. Therefore, efirtc.c could quite probably be removed in favor of genrtc.c, if the proper read/write functions are provided, and if genrtc gets alarm code, which is something others (rmk at least) have asked for.
Signature · 2 lines
Tom Rini http://gate.crashing.org/~trini/
Quoted 5 lines · Tom Rini
I think that this is the wrong approach. genrtc allows the platform to specify how the rtc is to be accessed. Therefore,
efirtc.ccould quite probably be removed in favor ofgenrtc.c, if the proper read/write functions are provided, and if genrtc gets alarm code, which is something others (rmk at least) have asked for.
Yes, since EFI is the only method for this platform it should probably be the platform's only implementation of genrtc.
At the moment it is a bit confusing because "generic RTC" sounds like something that ought to work on any platform, when of course it does not. So if the changes to genrtc would be large, perhaps it would be better to just fix Kconfig for now...
Do you think a patch to refactor efirtc into genrtc would be accepted?
Signature · 1 line
Martin
Quoted 8 lines · Martin Pool
Quoted 5 lines · Tom Rini
I think that this is the wrong approach. genrtc allows the platform to specify how the rtc is to be accessed. Therefore,
efirtc.ccould quite probably be removed in favor ofgenrtc.c, if the proper read/write functions are provided, and if genrtc gets alarm code, which is something others (rmk at least) have asked for.
Quoted 7 lines
Yes, since EFI is the only method for this platform it should probably be the platform's only implementation of genrtc.
At the moment it is a bit confusing because "generic RTC" sounds like something that ought to work on any platform, when of course it does not. So if the changes to genrtc would be large, perhaps it would be better to just fix
Kconfigfor now...
Well, it's a "generic RTC" driver because it lets the arch decide the arch-specific things, like how to access an RTC. It really should be able to work on any arch that has an RTC.
Quoted 1 line
Do you think a patch to refactor efirtc into genrtc would be accepted?
I don't know the EFI code as well as you do, but after skimming it I'm lost as to what would need to be added to the genrtc driver, other than alarm support (which is greatly wanted!).
Signature · 2 lines
Tom Rini http://gate.crashing.org/~trini/