[RFC] Option to disable mapping genrtc calls to ppc_md calls

Eugene Surovegin ebs at ebshome.net
Wed Jan 19 06:01:46 EST 2005

On Tue, Jan 18, 2005 at 11:40:50AM -0700, Mark A. Greer wrote:
> However, it does rely on a startup script to do a 'hwclock 
> --hctosys' which happen after driver initialization.  From what I can 
> tell sysvinit used to do the hwclock but doesn't anymore so you need a 
> script.  The mvl userland has a startup script that does this; others 
> probably do too.  Note that using a startup script to do a hwclock is 
> pretty standard AFAICT.

You can always call do_settimeofday from your i2c driver 
initialization. No scripts will be required and system behavior will 
be similar to the case when ppc_md.get_rtc_time is called during init 
to get correct time from RTC.


More information about the Linuxppc-dev mailing list