The non-standard h/w resource doesn't depend on the any specific linux
kernel subsystem. But, any h/w resources are able to be affected from
temperature. So that add support of thermal operation
for PASS_RESOURCE_NONSTANDARD_ID to control the over-temperature
with the proper behaviors.
Change-Id: I1fb20b5ee10aa876a95fde899bdcfdd537c7633c
Signed-off-by: Chanwoo Choi <cw00.choi@samsung.com>
/*
* Define the resource structure for nonstandard H/W.
*
+ * @tmu : function lists for the TMU (Thermal Management Unit).
+ *
* Following function is Deprecated. (Not recommended for use)
* @set_pmqos_data : function to bypass the scenario data to HAL.
*
* according to PMQoS scenario or other cases.
*/
struct pass_resource_nonstandard {
+ struct pass_resource_tmu_ops tmu;
+
/*
* NOTE: It is not propper method. But PASS must need to keep
* the backwards compatibility, set the PMQoS's data from
if (funcs && funcs->battery)
tmu = &(funcs->battery->tmu);
break;
+ case PASS_RESOURCE_NONSTANDARD_ID:
+ if (funcs && funcs->nonstandard)
+ tmu = &(funcs->nonstandard->tmu);
+ break;
}
return tmu;