Page MenuHomeFreeBSD

powerpc cpu_idle_60x: Move some variables fully under #ifdef AIM.
ClosedPublic

Authored by jhb on Apr 13 2022, 11:05 PM.
Tags
None
Referenced Files
Unknown Object (File)
Mon, May 6, 4:46 PM
Unknown Object (File)
Jan 14 2024, 8:39 AM
Unknown Object (File)
Dec 22 2023, 11:15 PM
Unknown Object (File)
Jul 3 2023, 3:38 AM
Unknown Object (File)
Jul 3 2023, 3:38 AM
Unknown Object (File)
Jun 30 2023, 11:44 PM
Unknown Object (File)
Jun 30 2023, 11:34 PM
Unknown Object (File)
Jun 13 2023, 1:09 AM
Subscribers

Details

Summary

XXX: Is the read from mfmsr required?

Diff Detail

Repository
rS FreeBSD src repository - subversion
Lint
Lint Passed
Unit
No Test Coverage
Build Status
Buildable 45152
Build 42040: arc lint + arc unit

Event Timeline

jhb requested review of this revision.Apr 13 2022, 11:05 PM

The mfmsr is required, because if you look at line 763/764 it's doing a mtmsr of (msr | PSL_POW). It *could* be replaced with the mfmsr() in each instance of the mtmsr (inline function and the asm), but that's redundant.

This revision is now accepted and ready to land.Apr 14 2022, 12:04 AM

I meant, is it required even in the non-AIM case (such that I would need to keep the mfmsr even for !AIM)? I'm assuming it isn't required for !AIM though based on your approval.

It's not required in the !AIM case. This function won't even get called in the !AIM case. I think at some point we'll need to clean up that file and split the AIM and !AIM into their respective files.