]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
powerpc/aim: Update timebase directly on resume instead of through platform
authorJustin Hibbits <jhibbits@FreeBSD.org>
Wed, 31 Mar 2021 16:54:27 +0000 (11:54 -0500)
committerJustin Hibbits <jhibbits@FreeBSD.org>
Wed, 31 Mar 2021 18:34:06 +0000 (13:34 -0500)
commit921716186f121a2f6a27178cb302415f37412a79
tree055ffca2c9fc89843094cf053d8341b142af6c2c
parentb6d8f3b517dec010f3dfad1b33e9945eaa606be5
powerpc/aim: Update timebase directly on resume instead of through platform

This only works on single-CPU G4 systems, and more work is needed for
dual-CPU systems.  That said, platform sleep does not work, and this is
currently only used for PMU-based CPU speed change.

The elimination of the platform_smp_timebase_sync() call is so that the
timebase sync rendezvous can be enhanced to perform better
synchronization, which requires a full rendezvous.  This would be
impossible to do on this single-threaded run.
sys/powerpc/aim/aim_machdep.c
sys/powerpc/aim/mp_cpudep.c