mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* Re: set_rtc_mmss: can't update from 0 to 59
@ 2000-12-17 20:54 Andries.Brouwer
  2000-12-18  3:47 ` Matthew Dharm
  0 siblings, 1 reply; 12+ messages in thread
From: Andries.Brouwer @ 2000-12-17 20:54 UTC (permalink / raw)
  To: linux-kernel, mdharm-kernel

What architecture?
What kernel version?
Are you in fact running xntpd?

> According to the notes in the code, this should work if my RTC
> is less than 15 minutes off... which I can guarantee it is.

Well, since you looked at the source:
For some randomly chosen kernel version and architecture it does

        if (abs(real_minutes - cmos_minutes) < 30) {
		update_cmos()
	} else {
		printk("set_rtc_mmss: can't update from %d to %d\n",
		       cmos_minutes, real_minutes);
	}

so if your cmos time is 0.001 sec ahead of your system time
then around the hour you'll see
	set_rtc_mmss: can't update from 0 to 59

Of course, messing with the cmos clock at all was a rather bad idea,
but that is a different discussion.

Andries
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
Please read the FAQ at http://www.tux.org/lkml/

^ permalink raw reply	[flat|nested] 12+ messages in thread
* Re: set_rtc_mmss: can't update from 0 to 59
@ 2000-12-18 13:10 Andries.Brouwer
  2000-12-18 16:48 ` Matthew Dharm
  0 siblings, 1 reply; 12+ messages in thread
From: Andries.Brouwer @ 2000-12-18 13:10 UTC (permalink / raw)
  To: Andries.Brouwer, mdharm-kernel; +Cc: linux-kernel

    From mdharm@ziggy.one-eyed-alien.net Mon Dec 18 04:47:51 2000

    > so if your cmos time is 0.001 sec ahead of your system time
    > then around the hour you'll see
    >     set_rtc_mmss: can't update from 0 to 59

    but, the question is, how do we fix this?

Put #if 0 ... #endif around the printk.

Andries

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
Please read the FAQ at http://www.tux.org/lkml/

^ permalink raw reply	[flat|nested] 12+ messages in thread
* set_rtc_mmss: can't update from 0 to 59
@ 2000-12-17 20:32 Matthew Dharm
  2000-12-18 13:11 ` Matthias Andree
  0 siblings, 1 reply; 12+ messages in thread
From: Matthew Dharm @ 2000-12-17 20:32 UTC (permalink / raw)
  To: Kernel Developer List

[-- Attachment #1: Type: text/plain, Size: 740 bytes --]

I was trying to figure out why I periodically get the message 

set_rtc_mmss: can't update from 0 to 59

on my console.  It appears that the kernel is attempting to update my CMOS
clock for me, based on the more accurate data being provided by my xntpd.

According to the notes in the code, this should work if my RTC is less than
15 minutes off... which I can guarantee it is.  Accoring to hwclock, it's
less than a second off.

So, what's causing this message?

Matt

-- 
Matthew Dharm                              Home: mdharm-usb@one-eyed-alien.net 
Maintainer, Linux USB Mass Storage Driver

Okay, this isn't funny anymore! Let me down!  I'll tell Bill on you!!
					-- Microsoft Salesman
User Friendly, 4/1/1998

[-- Attachment #2: Type: application/pgp-signature, Size: 232 bytes --]

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

end of thread, other threads:[~2000-12-21 10:40 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2000-12-17 20:54 set_rtc_mmss: can't update from 0 to 59 Andries.Brouwer
2000-12-18  3:47 ` Matthew Dharm
2000-12-18  8:46   ` Russell King
2000-12-19 21:13     ` Oliver Xymoron
2000-12-19 22:25       ` Russell King
2000-12-19 22:53         ` Oliver Xymoron
2000-12-21  9:28   ` Paul Gortmaker
2000-12-21 10:07     ` Russell King
  -- strict thread matches above, loose matches on Subject: below --
2000-12-18 13:10 Andries.Brouwer
2000-12-18 16:48 ` Matthew Dharm
2000-12-17 20:32 Matthew Dharm
2000-12-18 13:11 ` Matthias Andree

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®