mirror of
https://github.com/CloverHackyColor/CloverBootloader.git
synced 2025-02-18 01:21:57 +01:00
Fix a warning.
This commit is contained in:
parent
39a96c8185
commit
4ff4e37644
@ -196,8 +196,9 @@ SSDT_TABLE *generate_pss_ssdt(UINTN Number)
|
||||
// Find how many P-States machine supports
|
||||
p_states_count = (UINT8)(maximum.CID - minimum.CID + 1);
|
||||
|
||||
if (p_states_count > 32)
|
||||
if (p_states_count > 32) {
|
||||
p_states_count = 32;
|
||||
}
|
||||
DBG("PStates count=%d\n", p_states_count);
|
||||
|
||||
vidstep = ((maximum.Control.VID_FID.VID << 2) - (minimum.Control.VID_FID.VID << 2)) / (p_states_count - 1);
|
||||
|
Loading…
Reference in New Issue
Block a user