Bug 572 - Change compile-time option CONFIG_APM_RTS_IS_GMT to sysctl-tunable kernel parameter
Summary: Change compile-time option CONFIG_APM_RTS_IS_GMT to sysctl-tunable kernel par...
Status: CLOSED CODE_FIX
Alias: None
Product: Power Management
Classification: Unclassified
Component: APM (show other bugs)
Hardware: i386 Linux
: P2 low
Assignee: Olaf Kirch
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-04-10 08:47 UTC by Otto J. Makela
Modified: 2011-07-30 05:07 UTC (History)
4 users (show)

See Also:
Kernel Version: 2.5.64-mm6 (and others)
Tree: Mainline
Regression: No


Attachments

Description Otto J. Makela 2003-04-10 08:47:33 UTC
Distribution: RH8.0
Hardware Environment: Dell Latitude C600 laptop + docking station
Problem Description:
The fact that CONFIG_APM_RTS_IS_GMT is a kernel compile-time flag instead of a
sysctl-tunable parameter (and companies like RedHat deliver kernels compiled
with this flag on) means that you have to recompile the kernel just to be able
to run Linux in environments where the RTC _cannot_ be set to GMT (like when
co-existing with Windows operating systems). Once set up, the kernel parameter
could be set according to /etc/sysconfig/clock setting at boot time, simplifying
life for all. A quick browse of the apm.c source code makes me think this change
would not really require major work, but of course I could be mistaken.
Steps to reproduce:
The usual problems occur when the kernel compile flag setting does not match
with the actual RTC setting, like time zone changes when switching displays via
the APM BIOS.
Comment 1 Alexander Nyberg 2005-08-07 15:08:02 UTC
This compile-time option doesn't exist anymore so I'm closing this.
Comment 2 Stephen Rothwell 2005-08-07 17:02:51 UTC
It does still exist (if you spell it right) CONFIG_APM_RTC_IS_GMT.
Comment 3 Adrian Bunk 2006-07-23 11:04:45 UTC
Sorry, I closed the wrong bug...
Comment 4 Olaf Kirch 2007-03-12 03:29:31 UTC
This bug hasn't seen any activity in ages. Okay to close?
A patch would be trivial - should I provide one?
Comment 5 Olaf Kirch 2007-03-12 03:34:40 UTC
Or better, asking the other way round - why would this still be needed?
Using hwclock it's perfectly easy to tell the kernel that the RTC is
running in local time, and all distros do this AFAIK.
Comment 6 Parag Warudkar 2007-03-29 09:55:33 UTC
I posted a patch to remove this config option CONFIG_APM_RTC_IS_GMT. It it
sitting in -mm right now and from what I can infer will be in mainline soon.

OK to close.
Comment 7 Olaf Kirch 2007-03-29 12:44:23 UTC
Thanks a lot - so I'm resolving this as fixed.
Comment 8 Len Brown 2011-07-30 05:07:33 UTC
this commit shipped in 2.6.22 -- closed.

commit 05f36927eddd83e2840a981ef4d9af754dcb86e9
Author: Parag Warudkar <parag.warudkar@gmail.com>
Date:   Wed May 2 19:27:10 2007 +0200

    [PATCH] i386: remove the APM_RTC_IS_GMT config option.
    
    Signed-off-by: Parag Warudkar <parag.warudkar@gmail.com>
    Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
    Signed-off-by: Andi Kleen <ak@suse.de>

Note You need to log in before you can comment on or make changes to this bug.