if (kbase_devfreq_init_freq_table(kbdev, dp))
return -EFAULT;
+ of_property_read_u32(kbdev->dev->of_node, "upthreshold",
+ &kbdev->ondemand_data.upthreshold);
+ of_property_read_u32(kbdev->dev->of_node, "downdifferential",
+ &kbdev->ondemand_data.downdifferential);
+
kbdev->devfreq = devfreq_add_device(kbdev->dev, dp,
- "simple_ondemand", NULL);
+ "simple_ondemand",
+ &kbdev->ondemand_data);
if (IS_ERR(kbdev->devfreq)) {
kbase_devfreq_term_freq_table(kbdev);
return PTR_ERR(kbdev->devfreq);
struct devfreq *devfreq;
unsigned long current_freq;
unsigned long current_voltage;
+ struct devfreq_simple_ondemand_data ondemand_data;
#ifdef CONFIG_DEVFREQ_THERMAL
#if LINUX_VERSION_CODE < KERNEL_VERSION(4, 4, 0)
struct devfreq_cooling_device *devfreq_cooling;