CVSROOT:        /cvs
Module name:    src
Changes by:     [email protected]    2026/06/24 13:57:11

Modified files:
        sys/arch/sparc64/sparc64: autoconf.c clock.c 

Log message:
Long ago, we took advantage of the "status" property to avoid attaching
drivers to devices reporting themselves as in failing state.

However, doing this on Mostek chips with dead batteries would cause no
clock source to attach, and the kernel would then assume it is running on
sun4v with the unix-gettod? OFW method being available, causing spurious
(and puzzling) warnings on console on non-sun4v systems.

Relax this logic to allow clock(4) to always attach regardless of its state,
but distrust the clock value on devices reported as failing.

This allow e.g. Enterprise 4000 systems with dead batteries on all
motherboards to correctly attach clocks and hold the date on warm reboots,
without scaring users.

ok kettenis@ quite some time ago.

Reply via email to