Skip to content

Commit c8b4acc

Browse files
committed
Merge tag 'pm-6.3-rc1-2' of git://git.kernel.org/pub/scm/linux/kernel/git/rafael/linux-pm
Pull more power management updates from Rafael Wysocki: "These update power capping (new hardware support and cleanup) and cpufreq (bug fixes, cleanups and intel_pstate adjustment for a new platform). Specifics: - Fix error handling in the apple-soc cpufreq driver (Dan Carpenter) - Change the log level of a message in the amd-pstate cpufreq driver so it is more visible to users (Kai-Heng Feng) - Adjust the balance_performance EPP value for Sapphire Rapids in the intel_pstate cpufreq driver (Srinivas Pandruvada) - Remove MODULE_LICENSE from 3 pieces of non-modular code (Nick Alcock) - Make a read-only kobj_type structure in the schedutil cpufreq governor constant (Thomas Weißschuh) - Add Add Power Limit4 support for Meteor Lake SoC to the Intel RAPL power capping driver (Sumeet Pawnikar)" * tag 'pm-6.3-rc1-2' of git://git.kernel.org/pub/scm/linux/kernel/git/rafael/linux-pm: cpufreq: apple-soc: Fix an IS_ERR() vs NULL check powercap: remove MODULE_LICENSE in non-modules cpufreq: intel_pstate: remove MODULE_LICENSE in non-modules powercap: RAPL: Add Power Limit4 support for Meteor Lake SoC cpufreq: amd-pstate: remove MODULE_LICENSE in non-modules cpufreq: schedutil: make kobj_type structure constant cpufreq: amd-pstate: Let user know amd-pstate is disabled cpufreq: intel_pstate: Adjust balance_performance EPP for Sapphire Rapids
2 parents 53ae7e1 + 5719638 commit c8b4acc

File tree

6 files changed

+7
-7
lines changed

6 files changed

+7
-7
lines changed

drivers/cpufreq/amd-pstate.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1263,7 +1263,7 @@ static int __init amd_pstate_init(void)
12631263
* with amd_pstate=passive or other modes in kernel command line
12641264
*/
12651265
if (cppc_state == AMD_PSTATE_DISABLE) {
1266-
pr_debug("driver load is disabled, boot with specific mode to enable this\n");
1266+
pr_info("driver load is disabled, boot with specific mode to enable this\n");
12671267
return -ENODEV;
12681268
}
12691269

@@ -1353,4 +1353,3 @@ early_param("amd_pstate", amd_pstate_param);
13531353

13541354
MODULE_AUTHOR("Huang Rui <[email protected]>");
13551355
MODULE_DESCRIPTION("AMD Processor P-state Frequency Driver");
1356-
MODULE_LICENSE("GPL");

drivers/cpufreq/apple-soc-cpufreq.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -189,8 +189,8 @@ static int apple_soc_cpufreq_find_cluster(struct cpufreq_policy *policy,
189189
*info = match->data;
190190

191191
*reg_base = of_iomap(args.np, 0);
192-
if (IS_ERR(*reg_base))
193-
return PTR_ERR(*reg_base);
192+
if (!*reg_base)
193+
return -ENOMEM;
194194

195195
return 0;
196196
}

drivers/cpufreq/intel_pstate.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3358,6 +3358,7 @@ static const struct x86_cpu_id intel_epp_balance_perf[] = {
33583358
* AlderLake Mobile CPUs.
33593359
*/
33603360
X86_MATCH_INTEL_FAM6_MODEL(ALDERLAKE_L, 102),
3361+
X86_MATCH_INTEL_FAM6_MODEL(SAPPHIRERAPIDS_X, 32),
33613362
{}
33623363
};
33633364

@@ -3516,4 +3517,3 @@ early_param("intel_pstate", intel_pstate_setup);
35163517

35173518
MODULE_AUTHOR("Dirk Brandewie <[email protected]>");
35183519
MODULE_DESCRIPTION("'intel_pstate' - P state driver Intel Core processors");
3519-
MODULE_LICENSE("GPL");

drivers/powercap/intel_rapl_msr.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -143,6 +143,8 @@ static const struct x86_cpu_id pl4_support_ids[] = {
143143
{ X86_VENDOR_INTEL, 6, INTEL_FAM6_ALDERLAKE_N, X86_FEATURE_ANY },
144144
{ X86_VENDOR_INTEL, 6, INTEL_FAM6_RAPTORLAKE, X86_FEATURE_ANY },
145145
{ X86_VENDOR_INTEL, 6, INTEL_FAM6_RAPTORLAKE_P, X86_FEATURE_ANY },
146+
{ X86_VENDOR_INTEL, 6, INTEL_FAM6_METEORLAKE, X86_FEATURE_ANY },
147+
{ X86_VENDOR_INTEL, 6, INTEL_FAM6_METEORLAKE_L, X86_FEATURE_ANY },
146148
{}
147149
};
148150

drivers/powercap/powercap_sys.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -679,4 +679,3 @@ fs_initcall(powercap_init);
679679

680680
MODULE_DESCRIPTION("PowerCap sysfs Driver");
681681
MODULE_AUTHOR("Srinivas Pandruvada <[email protected]>");
682-
MODULE_LICENSE("GPL v2");

kernel/sched/cpufreq_schedutil.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -546,7 +546,7 @@ static void sugov_tunables_free(struct kobject *kobj)
546546
kfree(to_sugov_tunables(attr_set));
547547
}
548548

549-
static struct kobj_type sugov_tunables_ktype = {
549+
static const struct kobj_type sugov_tunables_ktype = {
550550
.default_groups = sugov_groups,
551551
.sysfs_ops = &governor_sysfs_ops,
552552
.release = &sugov_tunables_free,

0 commit comments

Comments
 (0)