static int devfreq_cpubw_hwmon_get_freq(struct devfreq *df,
					unsigned long *freq,
					u32 *flag)
{
	unsigned long mbps;

	mbps = measure_bw_and_set_irq();
	compute_bw(mbps, freq, df->data);
	prev_ab = *(unsigned long *) df->data;

	return 0;
}
static int devfreq_cpubw_hwmon_get_freq(struct devfreq *df,
					unsigned long *freq,
					u32 *flag)
{
	unsigned long mbps;

	mbps = measure_bw_and_set_irq();
	compute_bw(mbps, freq, df->data);

	if (*freq < msm_cpufreq_get_bw())
		*freq = msm_cpufreq_get_bw();
	return 0;
}