/* Finally, clear out the local values */
profile->dev_stat.total_time = 0;
profile->dev_stat.busy_time = 0;
- profile->last_event_type = DEVICE_UNKNOWN;
return 0;
}
if (!profile)
return;
profile->pdev = pdev;
- profile->last_event_type = DEVICE_UNKNOWN;
+ profile->last_event_type = DEVICE_IDLE;
/* Initialize devfreq related structures */
profile->dev_stat.private_data = &profile->ext_stat;
profile->ext_stat.min_freq = gk20a_clk_round_rate(g, 0);
profile->ext_stat.max_freq = gk20a_clk_round_rate(g, UINT_MAX);
- profile->ext_stat.busy = DEVICE_UNKNOWN;
+ profile->ext_stat.busy = DEVICE_IDLE;
if (profile->ext_stat.min_freq == profile->ext_stat.max_freq) {
dev_warn(&pdev->dev, "max rate = min rate (%lu), disabling scaling\n",
cancel_delayed_work(&podgov->idle_timer);
*freq = scaling_state_check(df, now);
break;
- case DEVICE_UNKNOWN:
- *freq = scaling_state_check(df, now);
- break;
-
}
if (!(*freq) || (*freq == df->previous_freq))
/* Finally, clear out the local values */
profile->dev_stat.total_time = 0;
profile->dev_stat.busy_time = 0;
- profile->last_event_type = DEVICE_UNKNOWN;
return 0;
}
pdata->power_profile = profile;
profile->pdev = pdev;
profile->clk = pdata->clk[0];
- profile->last_event_type = DEVICE_UNKNOWN;
+ profile->last_event_type = DEVICE_IDLE;
/* Initialize devfreq related structures */
profile->dev_stat.private_data = &profile->ext_stat;
clk_round_rate(clk_get_parent(profile->clk), 0);
profile->ext_stat.max_freq =
clk_round_rate(clk_get_parent(profile->clk), UINT_MAX);
- profile->ext_stat.busy = DEVICE_UNKNOWN;
+ profile->ext_stat.busy = DEVICE_IDLE;
if (profile->ext_stat.min_freq == profile->ext_stat.max_freq) {
dev_warn(&pdev->dev, "max rate = min rate (%lu), disabling scaling\n",
}
enum nvhost_devfreq_busy {
- DEVICE_UNKNOWN = 0,
- DEVICE_IDLE = 1,
- DEVICE_BUSY = 2
+ DEVICE_IDLE = 0,
+ DEVICE_BUSY = 1
};
struct nvhost_devfreq_ext_stat {