Skip to contentSkip to conversation

time patch.

DISCUSSION David Updegraff 2 participants 2 messages Dec 21, 2001

lore
Share & tools
lore
#0 lore raw

Greetings.

If Could someone with write acces to the tree could patch
arch/ppc/kernel/time.c
so that for cases where we have no RTC? On our non-nvram, non-RTC board, running NTP falls into this [un-suprising] kernel panic.

I would be eternally in your debt.

--------

	if (ppc_md.set_rtc_time(xtime.tv_sec+1 + time_offset) == 0)
					last_rtc_update = xtime.tv_sec+1;
				else
					/* Try again one minute later */
					last_rtc_update += 60;

---------
Idunno, either ifdef it with CONFIG_PPC_RTC or just plop a
if (ppc_md.set_rtc_time)
ontop of it..

--
Dave Updegraff / [email protected] / 218-525-1154

** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/

#1 lore raw
Quoted 4 lines · David Updegraff

If Could someone with write acces to the tree could patch
arch/ppc/kernel/time.c
so that for cases where we have no RTC? On our non-nvram, non-RTC board, running NTP falls into this [un-suprising] kernel panic.

Can you post this as a proper patch? (unified is prefered).

--
Tom Rini (TR1265)
http://gate.crashing.org/~trini/

** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/