Page MenuHomeFreeBSD

ofw_cpu: collapse some #ifdef code
ClosedPublic

Authored by mhorne on Dec 19 2024, 5:10 PM.
Tags
None
Referenced Files
F109025777: D48149.diff
Thu, Jan 30, 7:24 PM
Unknown Object (File)
Sun, Jan 26, 2:19 PM
Unknown Object (File)
Tue, Jan 21, 7:57 PM
Unknown Object (File)
Fri, Jan 10, 10:07 PM
Unknown Object (File)
Fri, Jan 10, 5:50 PM
Unknown Object (File)
Tue, Jan 7, 4:10 AM
Subscribers
None

Details

Summary

Mainly, to avoid repeating the list of architectures, #define HAS_CLK.

Further, split the clk code into a helper function, which is a stub in
the !HAS_CLK case. This aids in overall legibility.

While here, add one separating whitespace, again for legibility.

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Skipped
Unit
Tests Skipped
Build Status
Buildable 61263
Build 58147: arc lint + arc unit

Event Timeline

mhorne created this revision.
jhb added inline comments.
sys/dev/ofw/ofw_cpu.c
47
This revision is now accepted and ready to land.Thu, Jan 2, 4:26 PM
This revision was automatically updated to reflect the committed changes.