Page MenuHomeFreeBSD

ofw_cpu: collapse some #ifdef code
ClosedPublic

Authored by mhorne on Dec 19 2024, 5:10 PM.
Tags
None
Referenced Files
Unknown Object (File)
Wed, Nov 26, 1:20 AM
Unknown Object (File)
Fri, Nov 21, 9:23 AM
Unknown Object (File)
Sat, Nov 8, 4:54 AM
Unknown Object (File)
Sat, Nov 1, 4:45 AM
Unknown Object (File)
Sat, Nov 1, 2:01 AM
Unknown Object (File)
Oct 20 2025, 2:30 AM
Unknown Object (File)
Oct 19 2025, 3:40 PM
Unknown Object (File)
Oct 19 2025, 8:17 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 61264
Build 58148: 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.Jan 2 2025, 4:26 PM
This revision was automatically updated to reflect the committed changes.