* Would auto setting CONFIG_RTC make sense when building SMP kernel? @ 2004-10-26 19:13 Jesper Juhl 2004-10-26 22:08 ` Chris Wedgwood 2004-10-27 16:09 ` Alan Cox 0 siblings, 2 replies; 5+ messages in thread From: Jesper Juhl @ 2004-10-26 19:13 UTC (permalink / raw) To: linux-kernel Hi, I've been wondering if it would make sense to auto enable CONFIG_RTC when CONFIG_SMP is set? I'm judging entirely from this bit of text from the CONFIG_RTC help text : [...] If you run Linux on a multiprocessor machine and said Y to "Symmetric Multi Processing" above, you should say Y here to read and set the RTC in an SMP compatible fashion. [...] Isn't it always desirable to be able to set the clock in an SMP compatible fashion if the kernel is indeed build for SMP? If it would make sense to make such a change I'll be happy to supply a patch. -- Jesper Juhl ^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: Would auto setting CONFIG_RTC make sense when building SMP kernel? 2004-10-26 19:13 Would auto setting CONFIG_RTC make sense when building SMP kernel? Jesper Juhl @ 2004-10-26 22:08 ` Chris Wedgwood 2004-10-27 16:09 ` Alan Cox 1 sibling, 0 replies; 5+ messages in thread From: Chris Wedgwood @ 2004-10-26 22:08 UTC (permalink / raw) To: Jesper Juhl; +Cc: linux-kernel On Tue, Oct 26, 2004 at 09:13:19PM +0200, Jesper Juhl wrote: > I've been wondering if it would make sense to auto enable CONFIG_RTC > when CONFIG_SMP is set? this came up in conversation elsewhere and im of the opinion we should force CONFIG_RTC on for some platforms (maybe allow EMBEDDED to disable this?) ^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: Would auto setting CONFIG_RTC make sense when building SMP kernel? 2004-10-26 19:13 Would auto setting CONFIG_RTC make sense when building SMP kernel? Jesper Juhl 2004-10-26 22:08 ` Chris Wedgwood @ 2004-10-27 16:09 ` Alan Cox 2004-10-27 19:31 ` Jesper Juhl 2004-10-27 20:42 ` Jesper Juhl 1 sibling, 2 replies; 5+ messages in thread From: Alan Cox @ 2004-10-27 16:09 UTC (permalink / raw) To: Jesper Juhl; +Cc: Linux Kernel Mailing List On Maw, 2004-10-26 at 20:13, Jesper Juhl wrote: > Isn't it always desirable to be able to set the clock in an SMP compatible > fashion if the kernel is indeed build for SMP? Probably it is best to just move it to CONFIG_EMBEDDED. Without the driver the clock binary bitbangs the cmos and that isnt safe non SMP either nowdays ^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: Would auto setting CONFIG_RTC make sense when building SMP kernel? 2004-10-27 16:09 ` Alan Cox @ 2004-10-27 19:31 ` Jesper Juhl 2004-10-27 20:42 ` Jesper Juhl 1 sibling, 0 replies; 5+ messages in thread From: Jesper Juhl @ 2004-10-27 19:31 UTC (permalink / raw) To: Alan Cox; +Cc: Jesper Juhl, Linux Kernel Mailing List On Wed, 27 Oct 2004, Alan Cox wrote: > On Maw, 2004-10-26 at 20:13, Jesper Juhl wrote: > > Isn't it always desirable to be able to set the clock in an SMP compatible > > fashion if the kernel is indeed build for SMP? > > Probably it is best to just move it to CONFIG_EMBEDDED. Without the > driver the clock binary bitbangs the cmos and that isnt safe non SMP > either nowdays > Ok, I'll throw together a patch that makes it default to yes and moves it to embedded. -- Jesper Juhl ^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: Would auto setting CONFIG_RTC make sense when building SMP kernel? 2004-10-27 16:09 ` Alan Cox 2004-10-27 19:31 ` Jesper Juhl @ 2004-10-27 20:42 ` Jesper Juhl 1 sibling, 0 replies; 5+ messages in thread From: Jesper Juhl @ 2004-10-27 20:42 UTC (permalink / raw) To: Alan Cox; +Cc: Chris Wedgwood, Linux Kernel Mailing List On Wed, 27 Oct 2004, Alan Cox wrote: > On Maw, 2004-10-26 at 20:13, Jesper Juhl wrote: > > Isn't it always desirable to be able to set the clock in an SMP compatible > > fashion if the kernel is indeed build for SMP? > > Probably it is best to just move it to CONFIG_EMBEDDED. Without the > driver the clock binary bitbangs the cmos and that isnt safe non SMP > either nowdays > How about the patch below that makes it default to Y, and only allows it to be modified if EMBEDDED, and make GEN_RTC default to Y if RTC is disabled (so there's always some RTC driver of sorts unless you select EMBEDDED and explicitly disable it) as well as modifying the help text a bit to encourage people a bit more to select Y. Or am I making this more complicated than need be? I've not moved it to the embedded menu, would that be preferable? Comments welcome. (ohh, and I'm not proposing that anyone merge this just yet, the below is just the logic that makes sense to me, and mainly to get some comments) Signed-off-by: Jesper Juhl <juhl-lkml@dif.dk> diff -u linux-2.6.10-rc1-bk5-orig/drivers/char/Kconfig linux-2.6.10-rc1-bk5/drivers/char/Kconfig --- linux-2.6.10-rc1-bk5-orig/drivers/char/Kconfig 2004-10-26 00:20:49.000000000 +0200 +++ linux-2.6.10-rc1-bk5/drivers/char/Kconfig 2004-10-27 22:35:06.000000000 +0200 @@ -704,8 +704,9 @@ module will be called nvram. config RTC - tristate "Enhanced Real Time Clock Support" + tristate "Enhanced Real Time Clock Support" if EMBEDDED depends on !PPC32 && !PARISC && !IA64 && !M68K + default y ---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 @@ -720,7 +721,10 @@ If you run Linux on a multiprocessor machine and said Y to "Symmetric Multi Processing" above, you should say Y here to read - and set the RTC in an SMP compatible fashion. + and set the RTC in an SMP compatible fashion. A lot of modern UP + machines also need this to access the clock safely and it is safe + for older machines as well, so you really should say Y except + possibly for embedded systems. If you think you have a use for such a device (such as periodic data sampling), then say Y here, and read <file:Documentation/rtc.txt> @@ -729,6 +733,8 @@ To compile this driver as a module, choose M here: the module will be called rtc. + If in doubt say Y. + config SGI_DS1286 tristate "SGI DS1286 RTC support" depends on SGI_IP22 @@ -752,8 +758,10 @@ /dev/rtc. config GEN_RTC - tristate "Generic /dev/rtc emulation" + tristate "Generic /dev/rtc emulation" if EMBEDDED depends on RTC!=y && !IA64 && !ARM + default y if RTC = n + default n if RTC = m ---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 @@ -769,9 +777,12 @@ To compile this driver as a module, choose M here: the module will be called genrtc. + If in doubt say Y. + config GEN_RTC_X - bool "Extended RTC operation" + bool "Extended RTC operation" if EMBEDDED depends on GEN_RTC + default y if GEN_RTC = y || GEN_RTC = m help Provides an emulation for RTC_UIE which is required by some programs and may improve precision of the generic RTC support in some cases. ^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2004-10-27 20:47 UTC | newest] Thread overview: 5+ messages (download: mbox.gz follow: Atom feed -- links below jump to the message on this page -- 2004-10-26 19:13 Would auto setting CONFIG_RTC make sense when building SMP kernel? Jesper Juhl 2004-10-26 22:08 ` Chris Wedgwood 2004-10-27 16:09 ` Alan Cox 2004-10-27 19:31 ` Jesper Juhl 2004-10-27 20:42 ` Jesper Juhl
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox