This patch restores correct value of cs_dbs_info pointer for conservative
governor at CPUFREQ_GOV_STOP event.
Without this patch the NULL pointer dereference error shows up and cpufreq
subsystem hangs.
To trigger the behavior one needs to compile ondemand as default one. Then
enable conservative governor and afterwards enable ondemand again.
Change-Id: Iefd933f5984abb1a46d15357b9ea5f8492deeb08
Signed-off-by: Lukasz Majewski <l.majewski@samsung.com>
break;
case CPUFREQ_GOV_STOP:
- if (governor == GOV_CONSERVATIVE)
+ if (governor == GOV_CONSERVATIVE) {
+ cs_dbs_info = dbs_data->cdata->get_cpu_dbs_info_s(cpu);
cs_dbs_info->enable = 0;
-
+ }
gov_cancel_work(dbs_data, policy);
mutex_lock(&dbs_data->mutex);