hwpstate(4): Log a debug line when throttled
If we're going to throttle user requested P-states, we should at least produce a debug log line indicating the surprising behavior. PR: inspired by 234733
This commit is contained in:
parent
8227d65b72
commit
9ea85092d9
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=357165
@ -173,8 +173,12 @@ hwpstate_goto_pstate(device_t dev, int id)
|
||||
/* get the current pstate limit */
|
||||
msr = rdmsr(MSR_AMD_10H_11H_LIMIT);
|
||||
limit = AMD_10H_11H_GET_PSTATE_LIMIT(msr);
|
||||
if (limit > id)
|
||||
if (limit > id) {
|
||||
HWPSTATE_DEBUG(dev,
|
||||
"Restricting requested P%d to P%d due to HW limit\n", id,
|
||||
limit);
|
||||
id = limit;
|
||||
}
|
||||
|
||||
cpu = curcpu;
|
||||
HWPSTATE_DEBUG(dev, "setting P%d-state on cpu%d\n", id, cpu);
|
||||
|
Loading…
Reference in New Issue
Block a user