Home
last modified time | relevance | path

Searched refs:busy_time (Results 1 – 25 of 46) sorted by relevance

12

/OK3568_Linux_fs/kernel/drivers/devfreq/
H A Dgovernor_simpleondemand.c51 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 Dexynos-bus.c130 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 Dtegra30-devfreq.c663 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 Dimx-bus.c53 stat->busy_time = 0; in imx_bus_get_dev_status()
H A Dtegra20-devfreq.c84 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 Dpanfrost_devfreq.c21 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 Dpanfrost_devfreq.h22 ktime_t busy_time; member
/OK3568_Linux_fs/kernel/include/trace/events/
H A Ddevfreq.h18 __field(unsigned long, busy_time)
26 __entry->busy_time = devfreq->last_status.busy_time;
35 (100 * __entry->busy_time) / __entry->total_time)
H A Dthermal.h172 __entry->load = (100 * status->busy_time) / status->total_time;
/OK3568_Linux_fs/kernel/drivers/gpu/drm/lima/
H A Dlima_devfreq.c27 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 Dlima_devfreq.h23 ktime_t busy_time; member
/OK3568_Linux_fs/kernel/drivers/thermal/
H A Ddevfreq_cooling.c272 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 Dmali_kbase_config_rk.c382 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 Drk.c109 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 Dmali_kbase_config_rk.c464 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 Dmali_kbase_ipa.c561 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 Da6xx_gpu.c1190 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 Da5xx_gpu.c1474 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 Drve_drv.c62 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 Dcpufreq.c132 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 Drknpu_drv.h81 __u32 busy_time; member
/OK3568_Linux_fs/kernel/drivers/video/rockchip/rve/include/
H A Drve_drv.h159 u32 busy_time; member
/OK3568_Linux_fs/kernel/include/linux/
H A Ddevfreq.h62 unsigned long busy_time; member
/OK3568_Linux_fs/kernel/drivers/video/rockchip/rga3/include/
H A Drga_drv.h318 u32 busy_time; member
/OK3568_Linux_fs/kernel/drivers/rknpu/
H A Drknpu_drv.c616 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()

12