File tree Expand file tree Collapse file tree 2 files changed +19
-2
lines changed
Documentation/admin-guide/pm Expand file tree Collapse file tree 2 files changed +19
-2
lines changed Original file line number Diff line number Diff line change @@ -365,6 +365,9 @@ argument is passed to the kernel in the command line.
365
365
inclusive) including both turbo and non-turbo P-states (see
366
366
`Turbo P-states Support `_).
367
367
368
+ This attribute is present only if the value exposed by it is the same
369
+ for all of the CPUs in the system.
370
+
368
371
The value of this attribute is not affected by the ``no_turbo ``
369
372
setting described `below <no_turbo_attr _>`_.
370
373
@@ -374,6 +377,9 @@ argument is passed to the kernel in the command line.
374
377
Ratio of the `turbo range <turbo _>`_ size to the size of the entire
375
378
range of supported P-states, in percent.
376
379
380
+ This attribute is present only if the value exposed by it is the same
381
+ for all of the CPUs in the system.
382
+
377
383
This attribute is read-only.
378
384
379
385
.. _no_turbo_attr :
Original file line number Diff line number Diff line change @@ -1365,8 +1365,6 @@ define_one_global_rw(energy_efficiency);
1365
1365
static struct attribute * intel_pstate_attributes [] = {
1366
1366
& status .attr ,
1367
1367
& no_turbo .attr ,
1368
- & turbo_pct .attr ,
1369
- & num_pstates .attr ,
1370
1368
NULL
1371
1369
};
1372
1370
@@ -1391,6 +1389,14 @@ static void __init intel_pstate_sysfs_expose_params(void)
1391
1389
if (WARN_ON (rc ))
1392
1390
return ;
1393
1391
1392
+ if (!boot_cpu_has (X86_FEATURE_HYBRID_CPU )) {
1393
+ rc = sysfs_create_file (intel_pstate_kobject , & turbo_pct .attr );
1394
+ WARN_ON (rc );
1395
+
1396
+ rc = sysfs_create_file (intel_pstate_kobject , & num_pstates .attr );
1397
+ WARN_ON (rc );
1398
+ }
1399
+
1394
1400
/*
1395
1401
* If per cpu limits are enforced there are no global limits, so
1396
1402
* return without creating max/min_perf_pct attributes
@@ -1417,6 +1423,11 @@ static void __init intel_pstate_sysfs_remove(void)
1417
1423
1418
1424
sysfs_remove_group (intel_pstate_kobject , & intel_pstate_attr_group );
1419
1425
1426
+ if (!boot_cpu_has (X86_FEATURE_HYBRID_CPU )) {
1427
+ sysfs_remove_file (intel_pstate_kobject , & num_pstates .attr );
1428
+ sysfs_remove_file (intel_pstate_kobject , & turbo_pct .attr );
1429
+ }
1430
+
1420
1431
if (!per_cpu_limits ) {
1421
1432
sysfs_remove_file (intel_pstate_kobject , & max_perf_pct .attr );
1422
1433
sysfs_remove_file (intel_pstate_kobject , & min_perf_pct .attr );
You can’t perform that action at this time.
0 commit comments