Page MenuHomeFreeBSD

x86/local_apic.c: Factor out version read and max LVT slot computation
AcceptedPublic

Authored by olce on Wed, Jul 8, 1:14 PM.

Details

Reviewers
bnovkov
kib
Summary

This makes the code slightly more compact and easier to read.

No functional change intended.

Diff Detail

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

Event Timeline

olce requested review of this revision.Wed, Jul 8, 1:14 PM

Be consistent and declare all small helpers as inline.

olce removed a subscriber: kib.
This revision is now accepted and ready to land.Wed, Jul 8, 8:30 PM
sys/x86/x86/local_apic.c
383

What is __const?

olce marked an inline comment as done.Thu, Jul 9, 7:26 PM
olce added inline comments.
sys/x86/x86/local_apic.c
383

A mistake, I was thinking about the const attribute to functions. Replace by our __pure2 in my tree.

olce marked an inline comment as done.Thu, Jul 9, 7:26 PM