Page MenuHomeFreeBSD

armv6/legacy: optimize cpy_getcount performance
ClosedPublic

Authored by wma on Jan 2 2022, 8:56 AM.

Details

Summary

Use nanotime instread of binuptime.
This change is for old and legacy platforms and does not impact any armv7 and later.
Might be MFCed to 13.0 once armv6 support is finally dropped in 14.0

Diff Detail

Lint
Lint Skipped
Unit
Unit Tests Skipped

Event Timeline

wma requested review of this revision.Jan 2 2022, 8:56 AM
wma created this revision.
This revision is now accepted and ready to land.Jan 10 2022, 12:11 PM

Is this code path used? The only armv6 CPU se support is the bcm2835 which is an arm1176 so should be handled by reading the appropriate register.

It's not used on any official FreeBSD platform. However, with some out-of-tree BSPs this portion of code becomes active.

This revision was automatically updated to reflect the committed changes.