Commit a97e293
committed
cpufreq: intel_pstate: Clear hybrid_max_perf_cpu before driver registration
Modify intel_pstate_register_driver() to clear hybrid_max_perf_cpu
before calling cpufreq_register_driver(), so that asymmetric CPU
capacity scaling is not updated until hybrid_init_cpu_capacity_scaling()
runs down the road. This is done in preparation for a subsequent
change adding asymmetric CPU capacity computation to the CPU init path
to handle CPUs that are initially offline.
The information on whether or not hybrid_max_perf_cpu was NULL before
it has been cleared is passed to hybrid_init_cpu_capacity_scaling(),
so full initialization of CPU capacity scaling can be skipped if it
has been carried out already.
No intentional functional impact.
Signed-off-by: Rafael J. Wysocki <[email protected]>
Link: https://patch.msgid.link/[email protected]1 parent 59b723c commit a97e293
1 file changed
+18
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1034 | 1034 | | |
1035 | 1035 | | |
1036 | 1036 | | |
1037 | | - | |
| 1037 | + | |
1038 | 1038 | | |
1039 | 1039 | | |
1040 | 1040 | | |
| |||
1045 | 1045 | | |
1046 | 1046 | | |
1047 | 1047 | | |
1048 | | - | |
| 1048 | + | |
1049 | 1049 | | |
1050 | 1050 | | |
1051 | 1051 | | |
| |||
1071 | 1071 | | |
1072 | 1072 | | |
1073 | 1073 | | |
| 1074 | + | |
| 1075 | + | |
| 1076 | + | |
| 1077 | + | |
| 1078 | + | |
| 1079 | + | |
| 1080 | + | |
| 1081 | + | |
| 1082 | + | |
| 1083 | + | |
| 1084 | + | |
| 1085 | + | |
1074 | 1086 | | |
1075 | 1087 | | |
1076 | 1088 | | |
| |||
3352 | 3364 | | |
3353 | 3365 | | |
3354 | 3366 | | |
| 3367 | + | |
3355 | 3368 | | |
3356 | 3369 | | |
3357 | 3370 | | |
| |||
3364 | 3377 | | |
3365 | 3378 | | |
3366 | 3379 | | |
| 3380 | + | |
| 3381 | + | |
3367 | 3382 | | |
3368 | 3383 | | |
3369 | 3384 | | |
| |||
3373 | 3388 | | |
3374 | 3389 | | |
3375 | 3390 | | |
3376 | | - | |
| 3391 | + | |
3377 | 3392 | | |
3378 | 3393 | | |
3379 | 3394 | | |
| |||
0 commit comments