Loading drivers/devfreq/governor_msm_adreno_tz.c +3 −2 Original line number Diff line number Diff line Loading @@ -92,13 +92,14 @@ static ssize_t gpu_load_show(struct device *dev, struct device_attribute *attr, char *buf) { unsigned long sysfs_busy_perc; unsigned long sysfs_busy_perc = 0; /* * Average out the samples taken since last read * This will keep the average value in sync with * with the client sampling duration. */ spin_lock(&sample_lock); if (acc_total) sysfs_busy_perc = (acc_relative_busy * 100) / acc_total; /* Reset the parameters */ Loading Loading
drivers/devfreq/governor_msm_adreno_tz.c +3 −2 Original line number Diff line number Diff line Loading @@ -92,13 +92,14 @@ static ssize_t gpu_load_show(struct device *dev, struct device_attribute *attr, char *buf) { unsigned long sysfs_busy_perc; unsigned long sysfs_busy_perc = 0; /* * Average out the samples taken since last read * This will keep the average value in sync with * with the client sampling duration. */ spin_lock(&sample_lock); if (acc_total) sysfs_busy_perc = (acc_relative_busy * 100) / acc_total; /* Reset the parameters */ Loading