[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: `date -s' on sparc64



On Sun, 29 Jan 2006, Ludovic Court�wrote:

Hi,

Yesterday, 18 hours, 33 seconds ago, Frans Pop wrote:
Yes, I can confirm.
Workaround that works for me is to use hwclock.

Thanks for the trick.

`date' in GNU Coreutils uses `settimeofday ()' while `hwclock' invokes
an ioctl on `/dev/rtc'.  So the problem seems to come from the kernel's
implementation of `settimeofday ()'.

Looking at `arch/sparc/kernel/time.c', I can only see
`sbus_do_settimeofday ()' at first sight.  Since sun4u machines don't
have SBus, I'd be tempted to think that support for those machines is
simply lacking.  Is it correct?

For the sparc64 stuff you should look in the arch/sparc64 directory (arch/sparc contains sparc32 code). I've reproduced the problem on 2.6.15,
so I'll file a bug against kernel and and will try to look into it ASAP.

Best regards,

Jurij Smakov                                        jurij@wooyd.org
Key: http://www.wooyd.org/pgpkey/                   KeyID: C99E03CC

Reply to: