Skip to content

Commit 37a6853

Browse files
superm1ij-intel
authored andcommitted
ACPI: platform_profile: Notify class device from platform_profile_notify()
When a driver has called platform_profile_notify() both the legacy sysfs interface and the class device should be notified as userspace may listen to either. Reviewed-by: Armin Wolf <[email protected]> Reviewed-by: Mark Pearson <[email protected]> Reviewed-by: Ilpo Järvinen <[email protected]> Signed-off-by: Mario Limonciello <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Ilpo Järvinen <[email protected]>
1 parent 70246f8 commit 37a6853

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

drivers/acpi/platform_profile.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -412,6 +412,9 @@ void platform_profile_notify(struct platform_profile_handler *pprof)
412412
{
413413
if (!cur_profile)
414414
return;
415+
scoped_cond_guard(mutex_intr, return, &profile_lock) {
416+
_notify_class_profile(pprof->class_dev, NULL);
417+
}
415418
sysfs_notify(acpi_kobj, NULL, "platform_profile");
416419
}
417420
EXPORT_SYMBOL_GPL(platform_profile_notify);

0 commit comments

Comments
 (0)