static bool ocr_probed;
static bool ocr_reg_init_defer;
static bool hotplug_enabled;
+static bool interrupt_mode_enable;
static bool msm_thermal_probed;
static bool gfx_crit_phase_ctrl_enabled;
static bool gfx_warm_phase_ctrl_enabled;
static void interrupt_mode_init(void)
{
- if (!msm_thermal_probed)
+ if (!msm_thermal_probed) {
+ interrupt_mode_enable = true;
return;
-
+ }
if (polling_enabled) {
polling_enabled = 0;
create_sensor_zone_id_map();
if (ret)
goto probe_exit;
msm_thermal_probed = true;
+ if (interrupt_mode_enable) {
+ interrupt_mode_init();
+ interrupt_mode_enable = false;
+ }
probe_exit:
return ret;
}
}
msm_thermal_add_mx_nodes();
+ interrupt_mode_init();
create_cpu_topology_sysfs();
create_thermal_debugfs();
msm_thermal_add_bucket_info_nodes();