summaryrefslogtreecommitdiff
path: root/common
diff options
context:
space:
mode:
Diffstat (limited to 'common')
-rw-r--r--common/acpi.c9
1 files changed, 7 insertions, 2 deletions
diff --git a/common/acpi.c b/common/acpi.c
index e741fc2abc..68134a86e0 100644
--- a/common/acpi.c
+++ b/common/acpi.c
@@ -111,9 +111,14 @@ int acpi_dptf_set_profile_num(int n)
{
int ret = acpi_dptf_is_profile_valid(n);
- if (ret == EC_SUCCESS)
+ if (ret == EC_SUCCESS) {
current_dptf_profile = n;
-
+ if (IS_ENABLED(CONFIG_DPTF_MULTI_PROFILE) &&
+ IS_ENABLED(CONFIG_HOSTCMD_EVENTS)) {
+ /* Notify kernel to update DPTF profile */
+ host_set_single_event(EC_HOST_EVENT_MODE_CHANGE);
+ }
+ }
return ret;
}