Skip to contentSkip to conversation

don't offer GEN_RTC on ia64

PATCH In review Bjorn Helgaas 3 participants 5 messages Apr 6, 2004

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 don't offer GEN_RTC on ia64

gen_rtc.c doesn't work on ia64 (we don't have asm/rtc.h, for starters), so don't offer it there.

=== drivers/char/Kconfig 1.32 vs edited ==--- 1.32/drivers/char/Kconfig Tue Mar 16 03:10:34 2004
+++ edited/drivers/char/Kconfig Tue Apr 6 15:58:28 2004
@@ -768,7 +768,7 @@

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

#1 lore raw
Quoted 2 lines · Bjorn Helgaas

gen_rtc.c doesn't work on ia64 (we don't have asm/rtc.h, for starters), so don't offer it there.

Why not provide asm/rtc.h and kill off drivers/char/efirtc.c instead? :)

Signature · 2 lines
Tom Rini
http://gate.crashing.org/~trini/
#2 lore raw
Quoted 6 lines · Tom Rini
Quoted 2 lines · Bjorn Helgaas

gen_rtc.c doesn't work on ia64 (we don't have asm/rtc.h, for starters), so don't offer it there.

Why not provide asm/rtc.h and kill off drivers/char/efirtc.c instead? :)

Yeah, I was afraid someone would suggest that :-)

I'd actually like to do that, but that's a longer-term project. And I don't know the history behind efi_rtc, so maybe there's a good reason for it being separate.

(Actually, it looks to me like gen_rtc.c ought to be killed off as well, with both being folded into rtc.c.)

#3 lore raw
Quoted 8 lines · Bjorn Helgaas
Quoted 6 lines · Tom Rini
Quoted 2 lines · Bjorn Helgaas

gen_rtc.c doesn't work on ia64 (we don't have asm/rtc.h, for starters), so don't offer it there.

Why not provide asm/rtc.h and kill off drivers/char/efirtc.c instead? :)

Quoted 8 lines

Yeah, I was afraid someone would suggest that :-)

I'd actually like to do that, but that's a longer-term project. And I don't know the history behind efi_rtc, so maybe there's a good reason for it being separate.

(Actually, it looks to me like gen_rtc.c ought to be killed off as well, with both being folded into rtc.c.)

efi_rtc.c just predates genrtc getting into kernel.org, but as it does come from the m68k folks, it came first :) WRT gen_rtc.c being killed off, yes, that sounds vaugly like the MIPS varriant of a generic RTC driver, which is being killed off (which reminds me of some cleanups suggested by Jun Sun, *sigh*, so much to do, so little time).

Signature · 2 lines
Tom Rini
http://gate.crashing.org/~trini/
#4 lore raw
In reply to Bjorn Helgaas
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line · Bjorn Helgaas

Bjorn> I'd actually like to do that, but that's a longer-term Bjorn> project. And I don't know the history behind efi_rtc, so Bjorn> maybe there's a good reason for it being separate.

AFAIR, when efirtc was being written, the normal RTC driver was specific to the PC clock chips (mc14whatever) and it wasn't clear whether it should even try to be generic. I don't think anybody is particularly attached to the bits.

	--david