Home
last modified time | relevance | path

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

/linux-6.6.21/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)
/linux-6.6.21/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.6.21/drivers/gpu/drm/msm/ !
Dmsm_gpu_devfreq.c82 u64 busy_cycles, busy_time; in msm_devfreq_get_dev_status() local
95 status->busy_time = 0; in msm_devfreq_get_dev_status()
100 busy_time = busy_cycles - df->busy_cycles; in msm_devfreq_get_dev_status()
105 busy_time *= USEC_PER_SEC; in msm_devfreq_get_dev_status()
106 busy_time = div64_ul(busy_time, sample_rate); in msm_devfreq_get_dev_status()
107 if (WARN_ON(busy_time > ~0LU)) in msm_devfreq_get_dev_status()
108 busy_time = ~0LU; in msm_devfreq_get_dev_status()
110 status->busy_time = busy_time; in msm_devfreq_get_dev_status()
/linux-6.6.21/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.6.21/drivers/gpu/drm/panfrost/ !
Dpanfrost_devfreq.c22 pfdevfreq->busy_time += ktime_sub(now, last); in panfrost_devfreq_update_utilization()
44 pfdevfreq->busy_time = 0; in panfrost_devfreq_reset()
62 status->total_time = ktime_to_ns(ktime_add(pfdevfreq->busy_time, in panfrost_devfreq_get_dev_status()
65 status->busy_time = ktime_to_ns(pfdevfreq->busy_time); in panfrost_devfreq_get_dev_status()
72 status->busy_time, status->total_time, in panfrost_devfreq_get_dev_status()
73 status->busy_time / (status->total_time / 100), in panfrost_devfreq_get_dev_status()
Dpanfrost_devfreq.h22 ktime_t busy_time; member
/linux-6.6.21/drivers/powercap/ !
Ddtpm_devfreq.c75 status->busy_time >>= 10; in _normalize_load()
78 status->busy_time <<= 10; in _normalize_load()
79 status->busy_time /= status->total_time ? : 1; in _normalize_load()
81 status->busy_time = status->busy_time ? : 1; in _normalize_load()
109 power *= status.busy_time; in get_pd_power_uw()
/linux-6.6.21/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()
Dthermal_trace.h151 __field(u32, busy_time)
159 __entry->busy_time = status->busy_time;
167 (100 * __entry->busy_time) / __entry->total_time,
/linux-6.6.21/drivers/net/wireless/mediatek/mt76/ !
Dmt792x_mac.c228 u64 busy_time, tx_time, rx_time, obss_time; in mt792x_phy_update_channel() local
231 busy_time = mt76_get_field(dev, MT_MIB_SDR9(idx), in mt792x_phy_update_channel()
247 state->cc_busy += busy_time; in mt792x_phy_update_channel()
/linux-6.6.21/drivers/cpufreq/ !
Dcpufreq.c134 u64 busy_time; in get_cpu_idle_time_jiffy() local
140 busy_time = kcpustat.cpustat[CPUTIME_USER]; in get_cpu_idle_time_jiffy()
141 busy_time += kcpustat.cpustat[CPUTIME_SYSTEM]; in get_cpu_idle_time_jiffy()
142 busy_time += kcpustat.cpustat[CPUTIME_IRQ]; in get_cpu_idle_time_jiffy()
143 busy_time += kcpustat.cpustat[CPUTIME_SOFTIRQ]; in get_cpu_idle_time_jiffy()
144 busy_time += kcpustat.cpustat[CPUTIME_STEAL]; in get_cpu_idle_time_jiffy()
145 busy_time += kcpustat.cpustat[CPUTIME_NICE]; in get_cpu_idle_time_jiffy()
147 idle_time = cur_wall_time - busy_time; in get_cpu_idle_time_jiffy()
/linux-6.6.21/include/linux/ !
Ddevfreq.h62 unsigned long busy_time; member
/linux-6.6.21/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.6.21/kernel/sched/ !
Dfair.c7677 unsigned long busy_time, max_cap = arch_scale_cpu_capacity(prev_cpu); in eenv_task_busy_time() local
7681 busy_time = max_cap; in eenv_task_busy_time()
7683 busy_time = scale_irq_capacity(task_util_est(p), irq, max_cap); in eenv_task_busy_time()
7685 eenv->task_busy_time = busy_time; in eenv_task_busy_time()
7713 unsigned long busy_time = 0; in eenv_pd_busy_time() local
7719 busy_time += effective_cpu_util(cpu, util, ENERGY_UTIL, NULL); in eenv_pd_busy_time()
7722 eenv->pd_busy_time = min(eenv->pd_cap, busy_time); in eenv_pd_busy_time()
7768 unsigned long busy_time = eenv->pd_busy_time; in compute_energy() local
7771 busy_time = min(eenv->pd_cap, busy_time + eenv->task_busy_time); in compute_energy()
7773 return em_cpu_energy(pd->em_pd, max_util, busy_time, eenv->cpu_cap); in compute_energy()
/linux-6.6.21/drivers/net/wireless/mediatek/mt76/mt7615/ !
Dmac.c1921 u64 busy_time, tx_time, rx_time, obss_time; in mt7615_phy_update_channel() local
1925 busy_time = mt76_get_field(dev, MT_MIB_SDR9(idx), in mt7615_phy_update_channel()
1940 state->cc_busy += busy_time; in mt7615_phy_update_channel()
/linux-6.6.21/drivers/memory/tegra/ !
Dtegra20-emc.c1139 stat->busy_time = readl_relaxed(emc->regs + EMC_STAT_PWR_COUNT); in tegra_emc_devfreq_get_dev_status()
/linux-6.6.21/drivers/net/wireless/ath/wil6210/ !
Dwmi.h2480 __le16 busy_time; member
/linux-6.6.21/drivers/scsi/lpfc/ !
Dlpfc_init.c1298 u64 wall, wall_idle, diff_wall, diff_idle, busy_time; in lpfc_idle_stat_delay_work() local
1329 busy_time = 0; in lpfc_idle_stat_delay_work()
1331 busy_time = diff_wall - diff_idle; in lpfc_idle_stat_delay_work()
1333 idle_percent = div64_u64(100 * busy_time, diff_wall); in lpfc_idle_stat_delay_work()
/linux-6.6.21/drivers/ufs/core/ !
Dufshcd.c1472 stat->busy_time = scaling->tot_busy_t; in ufshcd_devfreq_get_dev_status()