linuxppc-dev.lists.ozlabs.org archive mirror
 help / color / mirror / Atom feed
* ppc -> powerpc : where is 11 min rtc update gone ?
@ 2008-05-20 10:58 Philippe De Muyter
  2008-05-20 11:10 ` Paul Mackerras
  0 siblings, 1 reply; 3+ messages in thread
From: Philippe De Muyter @ 2008-05-20 10:58 UTC (permalink / raw)
  To: linuxppc-dev

Hi everybody,

I have a ARCH=powerpc linux-2.6.25-rc6 linux running with an i2c rtc chip,
and synchronized to a ntp server.

I noticed that my rtc chip does not get updated by the kernel, just like
it would be on all other architectures (included ppc).

Looking at the differences between ./arch/powerpc/kernel/time.c and
./arch/ppc/kernel/time.c, I see that 

		/*
		 * update the rtc when needed ...

code segement has disappeared
		
Is it expected to be done somewhere else (where ?) or is there another
good reason for this removal ?

Kind regards

Philippe

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: ppc -> powerpc : where is 11 min rtc update gone ?
  2008-05-20 10:58 ppc -> powerpc : where is 11 min rtc update gone ? Philippe De Muyter
@ 2008-05-20 11:10 ` Paul Mackerras
  2008-05-20 14:07   ` powerpc + i2c/rtc : where is the 11 min update ? Philippe De Muyter
  0 siblings, 1 reply; 3+ messages in thread
From: Paul Mackerras @ 2008-05-20 11:10 UTC (permalink / raw)
  To: Philippe De Muyter; +Cc: linuxppc-dev

Philippe De Muyter writes:

> I have a ARCH=powerpc linux-2.6.25-rc6 linux running with an i2c rtc chip,
> and synchronized to a ntp server.
> 
> I noticed that my rtc chip does not get updated by the kernel, just like
> it would be on all other architectures (included ppc).

That is now supposed to be done by the code inside #ifdef
CONFIG_GENERIC_CMOS_UPDATE in kernel/time/ntp.c.

Paul.

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: powerpc + i2c/rtc : where is the 11 min update ?
  2008-05-20 11:10 ` Paul Mackerras
@ 2008-05-20 14:07   ` Philippe De Muyter
  0 siblings, 0 replies; 3+ messages in thread
From: Philippe De Muyter @ 2008-05-20 14:07 UTC (permalink / raw)
  To: Paul Mackerras; +Cc: linuxppc-dev, linux-kernel

CCing lkml

On Tue, May 20, 2008 at 09:10:25PM +1000, Paul Mackerras wrote:
> Philippe De Muyter writes:
> 
> > I have a ARCH=powerpc linux-2.6.25-rc6 linux running with an i2c rtc chip,
> > and synchronized to a ntp server.
> > 
> > I noticed that my rtc chip does not get updated by the kernel, just like
> > it would be on all other architectures (included ppc).
> 
> That is now supposed to be done by the code inside #ifdef
> CONFIG_GENERIC_CMOS_UPDATE in kernel/time/ntp.c.
> 
> Paul.

Thanks.  I agree that is a good place.

But, here CONFIG_GENERIC_CMOS_UPDATE is defined and an i2c clock also,
and my rtc clock is not updated.  I see kernel/time/ntp.c::sync_cmos_clock
calling arch/powerpc/kernel/time.c::update_persistent_clock, where
ppc_md.set_rtc_time is NULL.

Who is supposed to initialize ppc_md.set_rtc_time to use an i2c clock and
when in the boot process may that happen ?

Or alternatively, should update_persistent_clock not be part of the rtc
subsystem ?

Philippe

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2008-05-20 14:07 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-05-20 10:58 ppc -> powerpc : where is 11 min rtc update gone ? Philippe De Muyter
2008-05-20 11:10 ` Paul Mackerras
2008-05-20 14:07   ` powerpc + i2c/rtc : where is the 11 min update ? Philippe De Muyter

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).