| /OK3568_Linux_fs/kernel/drivers/devfreq/ |
| H A D | governor_simpleondemand.c | 51 if (stat->busy_time >= (1 << 24) || stat->total_time >= (1 << 24)) { in devfreq_simple_ondemand_func() 52 stat->busy_time >>= 7; in devfreq_simple_ondemand_func() 57 if (stat->busy_time * 100 > in devfreq_simple_ondemand_func() 70 if (stat->busy_time * 100 > in devfreq_simple_ondemand_func() 77 a = stat->busy_time; in devfreq_simple_ondemand_func()
|
| H A D | exynos-bus.c | 130 stat->total_time = stat->busy_time = 0; in exynos_bus_get_dev_status() 134 stat->busy_time = (edata.load_count * 100) / bus->ratio; in exynos_bus_get_dev_status() 137 dev_dbg(dev, "Usage of devfreq-event : %lu/%lu\n", stat->busy_time, in exynos_bus_get_dev_status()
|
| H A D | tegra30-devfreq.c | 663 stat->busy_time = device_readl(actmon_dev, ACTMON_DEV_AVG_COUNT); in tegra_devfreq_get_dev_status() 666 stat->busy_time *= 100 / BUS_SATURATION_RATIO; in tegra_devfreq_get_dev_status() 671 stat->busy_time = min(stat->busy_time, stat->total_time); in tegra_devfreq_get_dev_status()
|
| H A D | imx-bus.c | 53 stat->busy_time = 0; in imx_bus_get_dev_status()
|
| H A D | tegra20-devfreq.c | 84 stat->busy_time = readl_relaxed(tegra->regs + MC_STAT_EMC_COUNT); in tegra_devfreq_get_dev_status()
|
| /OK3568_Linux_fs/kernel/drivers/gpu/drm/panfrost/ |
| H A D | panfrost_devfreq.c | 21 pfdevfreq->busy_time += ktime_sub(now, last); in panfrost_devfreq_update_utilization() 48 pfdevfreq->busy_time = 0; in panfrost_devfreq_reset() 66 status->total_time = ktime_to_ns(ktime_add(pfdevfreq->busy_time, in panfrost_devfreq_get_dev_status() 69 status->busy_time = ktime_to_ns(pfdevfreq->busy_time); in panfrost_devfreq_get_dev_status() 76 status->busy_time, status->total_time, in panfrost_devfreq_get_dev_status() 77 status->busy_time / (status->total_time / 100), in panfrost_devfreq_get_dev_status()
|
| H A D | panfrost_devfreq.h | 22 ktime_t busy_time; member
|
| /OK3568_Linux_fs/kernel/include/trace/events/ |
| H A D | devfreq.h | 18 __field(unsigned long, busy_time) 26 __entry->busy_time = devfreq->last_status.busy_time; 35 (100 * __entry->busy_time) / __entry->total_time)
|
| H A D | thermal.h | 172 __entry->load = (100 * status->busy_time) / status->total_time;
|
| /OK3568_Linux_fs/kernel/drivers/gpu/drm/lima/ |
| H A D | lima_devfreq.c | 27 devfreq->busy_time += ktime_sub(now, last); in lima_devfreq_update_utilization() 54 devfreq->busy_time = 0; in lima_devfreq_reset() 72 status->total_time = ktime_to_ns(ktime_add(devfreq->busy_time, in lima_devfreq_get_dev_status() 74 status->busy_time = ktime_to_ns(devfreq->busy_time); in lima_devfreq_get_dev_status() 81 status->busy_time, status->total_time, in lima_devfreq_get_dev_status() 82 status->busy_time / (status->total_time / 100), in lima_devfreq_get_dev_status()
|
| H A D | lima_devfreq.h | 23 ktime_t busy_time; member
|
| /OK3568_Linux_fs/kernel/drivers/thermal/ |
| H A D | devfreq_cooling.c | 272 dyn_power *= status->busy_time; in devfreq_cooling_get_requested_power() 315 unsigned long busy_time; in devfreq_cooling_power2state() local 332 busy_time = status->busy_time ?: 1; in devfreq_cooling_power2state() 333 est_power = (dyn_power * status->total_time) / busy_time; in devfreq_cooling_power2state()
|
| /OK3568_Linux_fs/kernel/drivers/gpu/arm/midgard/platform/rk/ |
| H A D | mali_kbase_config_rk.c | 382 unsigned long busy_time; in utilisation_show() local 387 kbase_pm_get_dvfs_utilisation(kbdev, &total_time, &busy_time); in utilisation_show() 393 D("total_time : %lu, busy_time : %lu.", total_time, busy_time); in utilisation_show() 395 utilisation = busy_time * 100 / total_time; in utilisation_show()
|
| /OK3568_Linux_fs/kernel/drivers/gpu/arm/mali400/mali/platform/rk/ |
| H A D | rk.c | 109 unsigned long busy_time; in utilisation_show() local 114 mali_pm_get_dvfs_utilisation(mdev, &total_time, &busy_time); in utilisation_show() 121 D("total_time : %lu, busy_time : %lu.", total_time, busy_time); in utilisation_show() 123 utilisation = busy_time / (total_time / 100); in utilisation_show()
|
| /OK3568_Linux_fs/kernel/drivers/gpu/arm/bifrost/platform/rk/ |
| H A D | mali_kbase_config_rk.c | 464 u32 busy_time = 0; in utilisation_show() local 474 busy_time = metrics_diff.time_busy; in utilisation_show() 475 D("total_time : %u, busy_time : %u.", total_time, busy_time); in utilisation_show() 477 utilisation = busy_time * 100 / total_time; in utilisation_show()
|
| /OK3568_Linux_fs/kernel/drivers/gpu/arm/midgard/ipa/ |
| H A D | mali_kbase_ipa.c | 561 u64 busy_time = min(status->busy_time, total_time); in kbase_get_real_power() local 565 *power = div_u64_rem(((u64) *power * (u64) busy_time), total_time, &remainder); in kbase_get_real_power()
|
| /OK3568_Linux_fs/kernel/drivers/gpu/drm/msm/adreno/ |
| H A D | a6xx_gpu.c | 1190 u64 busy_cycles, busy_time; in a6xx_gpu_busy() local 1201 busy_time = (busy_cycles - gpu->devfreq.busy_cycles) * 10; in a6xx_gpu_busy() 1202 do_div(busy_time, 192); in a6xx_gpu_busy() 1208 if (WARN_ON(busy_time > ~0LU)) in a6xx_gpu_busy() 1211 return (unsigned long)busy_time; in a6xx_gpu_busy()
|
| H A D | a5xx_gpu.c | 1474 u64 busy_cycles, busy_time; in a5xx_gpu_busy() local 1483 busy_time = busy_cycles - gpu->devfreq.busy_cycles; in a5xx_gpu_busy() 1484 do_div(busy_time, clk_get_rate(gpu->core_clk) / 1000000); in a5xx_gpu_busy() 1490 if (WARN_ON(busy_time > ~0LU)) in a5xx_gpu_busy() 1493 return (unsigned long)busy_time; in a5xx_gpu_busy()
|
| /OK3568_Linux_fs/kernel/drivers/video/rockchip/rve/ |
| H A D | rve_drv.c | 62 scheduler->timer.busy_time += ktime_us_delta(now, job->hw_recoder_time); in hrtimer_handler() 66 scheduler->timer.busy_time_record = scheduler->timer.busy_time; in hrtimer_handler() 67 scheduler->timer.busy_time = 0; in hrtimer_handler()
|
| /OK3568_Linux_fs/kernel/drivers/cpufreq/ |
| H A D | cpufreq.c | 132 u64 busy_time; in get_cpu_idle_time_jiffy() local 138 busy_time = kcpustat.cpustat[CPUTIME_USER]; in get_cpu_idle_time_jiffy() 139 busy_time += kcpustat.cpustat[CPUTIME_SYSTEM]; in get_cpu_idle_time_jiffy() 140 busy_time += kcpustat.cpustat[CPUTIME_IRQ]; in get_cpu_idle_time_jiffy() 141 busy_time += kcpustat.cpustat[CPUTIME_SOFTIRQ]; in get_cpu_idle_time_jiffy() 142 busy_time += kcpustat.cpustat[CPUTIME_STEAL]; in get_cpu_idle_time_jiffy() 143 busy_time += kcpustat.cpustat[CPUTIME_NICE]; in get_cpu_idle_time_jiffy() 145 idle_time = cur_wall_time - busy_time; in get_cpu_idle_time_jiffy()
|
| /OK3568_Linux_fs/kernel/drivers/rknpu/include/ |
| H A D | rknpu_drv.h | 81 __u32 busy_time; member
|
| /OK3568_Linux_fs/kernel/drivers/video/rockchip/rve/include/ |
| H A D | rve_drv.h | 159 u32 busy_time; member
|
| /OK3568_Linux_fs/kernel/include/linux/ |
| H A D | devfreq.h | 62 unsigned long busy_time; member
|
| /OK3568_Linux_fs/kernel/drivers/video/rockchip/rga3/include/ |
| H A D | rga_drv.h | 318 u32 busy_time; member
|
| /OK3568_Linux_fs/kernel/drivers/rknpu/ |
| H A D | rknpu_drv.c | 616 subcore_data->timer.busy_time += in hrtimer_handler() 622 subcore_data->timer.busy_time; in hrtimer_handler() 623 subcore_data->timer.busy_time = 0; in hrtimer_handler() 1373 rknpu_dev->devfreq->last_status.busy_time = 1; in rknpu_devfreq_init() 1511 rknpu_dev->devfreq->last_status.busy_time = 1; in rknpu_devfreq_init()
|