Source-Changes archive

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

CVS commit: src/sys/arch/hp300/stand



Module Name:    src
Committed By:   tsutsui
Date:           Sat May 17 17:27:21 UTC 2025

Modified Files:
        src/sys/arch/hp300/stand: Makefile.buildboot
        src/sys/arch/hp300/stand/common: clock.c

Log Message:
Speed up hp300 netboot by reducing RTC access during timeout checks.

The read_bbc() function against HIL seems extremely slow.
It was being called on every timeout check via getsecs()
so it significantly slowed down loading a kernel via NFS.

In most cases (e.g., in common/if_le.c and libsa/net.c),
timeout checks are performed using getsecs() in busy loops
without any actual waiting.  In such cases, it's not necessary
to read the precise time from the RTC on every call.

This change reduces the time to load the NetBSD/hp300 10.1 GENERIC kernel
via NFS from 260 seconds to 64 seconds on HP9000/382.


To generate a diff of this commit:
cvs rdiff -u -r1.39 -r1.40 src/sys/arch/hp300/stand/Makefile.buildboot
cvs rdiff -u -r1.14 -r1.15 src/sys/arch/hp300/stand/common/clock.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.




Home | Main Index | Thread Index | Old Index