Home
last modified time | relevance | path

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

/linux-6.1.9/include/trace/events/
Ddevfreq.h21 __field(unsigned long, busy_time)
29 __entry->busy_time = devfreq->last_status.busy_time;
36 (100 * __entry->busy_time) / __entry->total_time)
46 __field(unsigned long, busy_time)
54 __entry->busy_time = devfreq->last_status.busy_time;
63 (100 * __entry->busy_time) / __entry->total_time)
Dthermal.h151 __field(u32, busy_time)
159 __entry->busy_time = status->busy_time;
167 (100 * __entry->busy_time) / __entry->total_time,
/linux-6.1.9/drivers/gpu/drm/msm/
Dmsm_gpu_devfreq.c61 u64 busy_cycles, busy_time; in get_raw_dev_status() local
74 status->busy_time = 0; in get_raw_dev_status()
79 busy_time = busy_cycles - df->busy_cycles; in get_raw_dev_status()
84 busy_time *= USEC_PER_SEC; in get_raw_dev_status()
85 busy_time = div64_ul(busy_time, sample_rate); in get_raw_dev_status()
86 if (WARN_ON(busy_time > ~0LU)) in get_raw_dev_status()
87 busy_time = ~0LU; in get_raw_dev_status()
89 status->busy_time = busy_time; in get_raw_dev_status()
130 avg->busy_time = div_u64( in update_average_dev_status()
131 mul_u32_u32(avg->busy_time, new_total_time), in update_average_dev_status()
[all …]
/linux-6.1.9/drivers/gpu/drm/lima/
Dlima_devfreq.c27 devfreq->busy_time += ktime_sub(now, last); in lima_devfreq_update_utilization()
49 devfreq->busy_time = 0; in lima_devfreq_reset()
67 status->total_time = ktime_to_ns(ktime_add(devfreq->busy_time, in lima_devfreq_get_dev_status()
69 status->busy_time = ktime_to_ns(devfreq->busy_time); in lima_devfreq_get_dev_status()
76 status->busy_time, status->total_time, in lima_devfreq_get_dev_status()
77 status->busy_time / (status->total_time / 100), in lima_devfreq_get_dev_status()
Dlima_devfreq.h21 ktime_t busy_time; member
/linux-6.1.9/drivers/devfreq/
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()
Dexynos-bus.c131 stat->total_time = stat->busy_time = 0; in exynos_bus_get_dev_status()
135 stat->busy_time = (edata.load_count * 100) / bus->ratio; in exynos_bus_get_dev_status()
138 dev_dbg(dev, "Usage of devfreq-event : %lu/%lu\n", stat->busy_time, in exynos_bus_get_dev_status()
Dsun8i-a33-mbus.c246 stat->busy_time = sun8i_a33_mbus_get_peak_bw(priv); in sun8i_a33_mbus_get_dram_status()
253 stat->busy_time, stat->total_time, in sun8i_a33_mbus_get_dram_status()
254 DIV_ROUND_CLOSEST(stat->busy_time * 100, stat->total_time), in sun8i_a33_mbus_get_dram_status()
Dtegra30-devfreq.c673 stat->busy_time = device_readl(actmon_dev, ACTMON_DEV_AVG_COUNT); in tegra_devfreq_get_dev_status()
676 stat->busy_time *= 100 / BUS_SATURATION_RATIO; in tegra_devfreq_get_dev_status()
681 stat->busy_time = min(stat->busy_time, stat->total_time); in tegra_devfreq_get_dev_status()
Drk3399_dmc.c230 stat->busy_time = edata.load_count; in rk3399_dmcfreq_get_dev_status()
/linux-6.1.9/drivers/gpu/drm/panfrost/
Dpanfrost_devfreq.c21 pfdevfreq->busy_time += ktime_sub(now, last); in panfrost_devfreq_update_utilization()
43 pfdevfreq->busy_time = 0; in panfrost_devfreq_reset()
61 status->total_time = ktime_to_ns(ktime_add(pfdevfreq->busy_time, in panfrost_devfreq_get_dev_status()
64 status->busy_time = ktime_to_ns(pfdevfreq->busy_time); in panfrost_devfreq_get_dev_status()
71 status->busy_time, status->total_time, in panfrost_devfreq_get_dev_status()
72 status->busy_time / (status->total_time / 100), in panfrost_devfreq_get_dev_status()
Dpanfrost_devfreq.h22 ktime_t busy_time; member
/linux-6.1.9/drivers/powercap/
Ddtpm_devfreq.c80 status->busy_time >>= 10; in _normalize_load()
83 status->busy_time <<= 10; in _normalize_load()
84 status->busy_time /= status->total_time ? : 1; in _normalize_load()
86 status->busy_time = status->busy_time ? : 1; in _normalize_load()
114 power *= status.busy_time; in get_pd_power_uw()
/linux-6.1.9/drivers/thermal/
Ddevfreq_cooling.c168 status->busy_time >>= 10; in _normalize_load()
171 status->busy_time <<= 10; in _normalize_load()
172 status->busy_time /= status->total_time ? : 1; in _normalize_load()
174 status->busy_time = status->busy_time ? : 1; in _normalize_load()
231 *power *= status.busy_time; in devfreq_cooling_get_requested_power()
284 est_power /= status.busy_time; in devfreq_cooling_power2state()
/linux-6.1.9/drivers/cpufreq/
Dcpufreq.c128 u64 busy_time; in get_cpu_idle_time_jiffy() local
134 busy_time = kcpustat.cpustat[CPUTIME_USER]; in get_cpu_idle_time_jiffy()
135 busy_time += kcpustat.cpustat[CPUTIME_SYSTEM]; in get_cpu_idle_time_jiffy()
136 busy_time += kcpustat.cpustat[CPUTIME_IRQ]; in get_cpu_idle_time_jiffy()
137 busy_time += kcpustat.cpustat[CPUTIME_SOFTIRQ]; in get_cpu_idle_time_jiffy()
138 busy_time += kcpustat.cpustat[CPUTIME_STEAL]; in get_cpu_idle_time_jiffy()
139 busy_time += kcpustat.cpustat[CPUTIME_NICE]; in get_cpu_idle_time_jiffy()
141 idle_time = cur_wall_time - busy_time; in get_cpu_idle_time_jiffy()
/linux-6.1.9/include/linux/
Ddevfreq.h62 unsigned long busy_time; member
/linux-6.1.9/drivers/net/wireless/mediatek/mt76/mt7921/
Dmac.c812 u64 busy_time, tx_time, rx_time, obss_time; in mt7921_phy_update_channel() local
815 busy_time = mt76_get_field(dev, MT_MIB_SDR9(idx), in mt7921_phy_update_channel()
831 state->cc_busy += busy_time; in mt7921_phy_update_channel()
/linux-6.1.9/drivers/memory/samsung/
Dexynos5422-dmc.c942 stat->busy_time = dmc->load; in exynos5_dmc_get_status()
950 stat->busy_time = load >> 10; in exynos5_dmc_get_status()
/linux-6.1.9/kernel/sched/
Dfair.c7042 unsigned long busy_time, max_cap = arch_scale_cpu_capacity(prev_cpu); in eenv_task_busy_time() local
7046 busy_time = max_cap; in eenv_task_busy_time()
7048 busy_time = scale_irq_capacity(task_util_est(p), irq, max_cap); in eenv_task_busy_time()
7050 eenv->task_busy_time = busy_time; in eenv_task_busy_time()
7078 unsigned long busy_time = 0; in eenv_pd_busy_time() local
7084 busy_time += effective_cpu_util(cpu, util, ENERGY_UTIL, NULL); in eenv_pd_busy_time()
7087 eenv->pd_busy_time = min(eenv->pd_cap, busy_time); in eenv_pd_busy_time()
7133 unsigned long busy_time = eenv->pd_busy_time; in compute_energy() local
7136 busy_time = min(eenv->pd_cap, busy_time + eenv->task_busy_time); in compute_energy()
7138 return em_cpu_energy(pd->em_pd, max_util, busy_time, eenv->cpu_cap); in compute_energy()
/linux-6.1.9/drivers/net/wireless/mediatek/mt76/mt7615/
Dmac.c1934 u64 busy_time, tx_time, rx_time, obss_time; in mt7615_phy_update_channel() local
1938 busy_time = mt76_get_field(dev, MT_MIB_SDR9(idx), in mt7615_phy_update_channel()
1953 state->cc_busy += busy_time; in mt7615_phy_update_channel()
/linux-6.1.9/drivers/memory/tegra/
Dtegra20-emc.c1152 stat->busy_time = readl_relaxed(emc->regs + EMC_STAT_PWR_COUNT); in tegra_emc_devfreq_get_dev_status()
/linux-6.1.9/drivers/net/wireless/ath/wil6210/
Dwmi.h2480 __le16 busy_time; member
/linux-6.1.9/drivers/scsi/lpfc/
Dlpfc_init.c1296 u64 wall, wall_idle, diff_wall, diff_idle, busy_time; in lpfc_idle_stat_delay_work() local
1327 busy_time = 0; in lpfc_idle_stat_delay_work()
1329 busy_time = diff_wall - diff_idle; in lpfc_idle_stat_delay_work()
1331 idle_percent = div64_u64(100 * busy_time, diff_wall); in lpfc_idle_stat_delay_work()
/linux-6.1.9/drivers/ufs/core/
Dufshcd.c1436 stat->busy_time = scaling->tot_busy_t; in ufshcd_devfreq_get_dev_status()