summaryrefslogtreecommitdiff
path: root/thermalUtilsNetlink.h
diff options
context:
space:
mode:
authorManaf Meethalavalappu Pallikunhi <quic_manafm@quicinc.com>2022-05-14 01:53:29 +0530
committerManaf Meethalavalappu Pallikunhi <quic_manafm@quicinc.com>2022-06-03 13:19:34 +0530
commitab1e3c58366864a0795dd1fff31d74a20c61a70d (patch)
tree1e7226a8c8035f5f3c7030b981659054e63dbfe9 /thermalUtilsNetlink.h
parent5ad97e6421bf7beeb5f55043ffee80c150878663 (diff)
thermal-hal: Add support to monitor TZ_CREATE netlink notification
There are some thermal zones those can be created post thermal hal initialization. It leads to a case where thermal zone sensor init is failing due to configured sensor is not present in available thermal zones. To avoid this issue, earlier added a workaround to restart thermal-hal later. thermal netlink protocol supports one event notification for thermal zone creation. Add support to monitor thermal zone creation event and re-initialize hal sensors. Remove earlier workaround to restart hal service. Change-Id: Id1aa6c3b08ada05f4c276d5b749e2c452a3fe2c6
Diffstat (limited to 'thermalUtilsNetlink.h')
-rw-r--r--thermalUtilsNetlink.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/thermalUtilsNetlink.h b/thermalUtilsNetlink.h
index 7d9abff..dc72f5c 100644
--- a/thermalUtilsNetlink.h
+++ b/thermalUtilsNetlink.h
@@ -1,5 +1,6 @@
/*
* Copyright (c) 2021, The Linux Foundation. All rights reserved.
+ * Copyright (c) 2022 Qualcomm Innovation Center, Inc. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are
@@ -81,6 +82,7 @@ class ThermalUtils {
void eventParse(int tzn, int trip);
void sampleParse(int tzn, int temp);
+ void eventCreateParse(int tzn, const char *name);
void Notify(struct therm_sensor& sens);
};