Home
last modified time | relevance | path

Searched refs:cpus (Results 1 - 15 of 15) sorted by relevance

/device/soc/rockchip/common/sdk_linux/drivers/cpufreq/
H A Dcpufreq-dt.c31 cpumask_var_t cpus; member
52 if (cpumask_test_cpu(cpu, priv->cpus)) { in cpufreq_dt_find_data()
137 cpumask_copy(policy->cpus, priv->cpus); in cpufreq_init()
155 dev_pm_opp_of_register_em(cpu_dev, policy->cpus); in cpufreq_init()
223 if (!alloc_cpumask_var(&priv->cpus, GFP_KERNEL)) { in dt_cpufreq_early_init()
227 cpumask_set_cpu(cpu, priv->cpus); in dt_cpufreq_early_init()
247 ret = dev_pm_opp_of_get_sharing_cpus(cpu_dev, priv->cpus); in dt_cpufreq_early_init()
258 if (dev_pm_opp_get_sharing_cpus(cpu_dev, priv->cpus)) { in dt_cpufreq_early_init()
264 * Initialize OPP tables for all priv->cpus in dt_cpufreq_early_init()
[all...]
/device/soc/rockchip/common/sdk_linux/include/trace/events/
H A Dcpuhp.h50 TRACE_EVENT(cpuhp_pause, TP_PROTO(struct cpumask *cpus, u64 start_time, unsigned char pause),
52 TP_ARGS(cpus, start_time, pause),
54 TP_STRUCT__entry(__field(unsigned int, cpus) __field(unsigned int, active_cpus) __field(unsigned int, time)
57 TP_fast_assign(__entry->cpus = cpumask_bits(cpus)[0];
61 TP_printk("req_cpus=0x%x act_cpus=0x%x time=%u us paused=%d", __entry->cpus, __entry->active_cpus,
/device/soc/rockchip/common/sdk_linux/kernel/power/
H A Denergy_model.c77 debugfs_create_file("cpus", FILE_PROPERTY, d, dev->em_pd->cpus, &em_debug_cpus_fops); in em_debug_create_pd()
185 static int em_create_pd(struct device *dev, int nr_states, struct em_data_callback *cb, cpumask_t *cpus) in em_create_pd() argument
197 cpumask_copy(em_span_cpus(pd), cpus); in em_create_pd() local
212 for_each_cpu(cpu, cpus) in em_create_pd()
266 * @cpus : Pointer to cpumask_t, which in case of a CPU device is
267 * obligatory. It can be taken from i.e. 'policy->cpus'. For other
285 cpumask_t *cpus, bool milliwatts) in em_dev_register_perf_domain()
306 if (!cpus) { in em_dev_register_perf_domain()
312 for_each_cpu(cpu, cpus) in em_dev_register_perf_domain()
284 em_dev_register_perf_domain(struct device *dev, unsigned int nr_states, struct em_data_callback *cb, cpumask_t *cpus, bool milliwatts) em_dev_register_perf_domain() argument
[all...]
H A Dpower.h15 int cpus; member
/device/soc/rockchip/rk3588/kernel/include/trace/hooks/
H A Dtopology.h15 TP_PROTO(const struct cpumask *cpus, unsigned long freq,
17 TP_ARGS(cpus, freq, max, scale));
H A Dsched.h109 TP_PROTO(struct cpumask *cpus, int *err),
110 TP_ARGS(cpus, err), 1);
/device/soc/rockchip/common/sdk_linux/include/linux/
H A Denergy_model.h34 * @cpus: Cpumask covering the CPUs of the domain. It's here
42 * a 1-to-1 mapping with CPUFreq policies. In case of other devices the @cpus
49 unsigned long cpus[]; member
52 #define em_span_cpus(em) (to_cpumask((em)->cpus))
135 cpu = cpumask_first(to_cpumask(pd->cpus)); in em_cpu_energy()
/device/soc/rockchip/common/kernel/drivers/net/wireless/rockchip_wlan/rkwifi/bcmdhd_wifi6/
H A Ddhd_linux_lb.c63 uint32 cpus, num_cpus = num_possible_cpus(); in dhd_cpumasks_init() local
84 DHD_ERROR(("%s max cpus must be 32, %d too big\n", __FUNCTION__, num_cpus)); in dhd_cpumasks_init()
88 cpus = DHD_LB_PRIMARY_CPUS; in dhd_cpumasks_init()
90 if (isset(&cpus, id)) in dhd_cpumasks_init()
94 cpus = DHD_LB_SECONDARY_CPUS; in dhd_cpumasks_init()
96 if (isset(&cpus, id)) in dhd_cpumasks_init()
132 uint32 primary_available_cpus; /* count of primary available cpus */ in dhd_select_cpu_candidacy()
133 uint32 secondary_available_cpus; /* count of secondary available cpus */ in dhd_select_cpu_candidacy()
176 DHD_INFO(("%s Available secondary cpus %d nr_cpu_ids %d\n", in dhd_select_cpu_candidacy()
1022 * dhd_napi_schedule - Place the napi struct into the current cpus softne
1135 cpumask_t cpus; dhd_lb_rx_napi_dispatch() local
[all...]
H A Ddhd_linux.c19433 map->cpus[i++] = cpu; in custom_rps_map_set()
/device/soc/rockchip/common/vendor/drivers/cpufreq/
H A Drockchip-cpufreq.c43 cpumask_t cpus; member
306 if (cpumask_test_cpu(cpu, &cluster->cpus)) { in rockchip_cluster_info_lookup()
442 ret = dev_pm_opp_of_get_sharing_cpus(dev, &cluster->cpus); in rockchip_cpufreq_cluster_init()
444 dev_err(dev, "Failed to get sharing cpus\n"); in rockchip_cpufreq_cluster_init()
571 cpumask_copy(&mdevp->allowed_cpus, policy->cpus); in rockchip_cpufreq_notifier()
/device/soc/rockchip/rk3588/kernel/drivers/cpufreq/
H A Drockchip-cpufreq.c48 cpumask_t cpus; member
319 if (cpumask_test_cpu(cpu, &cluster->cpus)) in rockchip_cluster_info_lookup()
481 ret = dev_pm_opp_of_get_sharing_cpus(dev, &cluster->cpus); in rockchip_cpufreq_cluster_init()
483 dev_err(dev, "Failed to get sharing cpus\n"); in rockchip_cpufreq_cluster_init()
611 cpumask_copy(&mdevp->allowed_cpus, policy->cpus); in rockchip_cpufreq_notifier()
/device/soc/rockchip/common/sdk_linux/kernel/sched/
H A Dfair.c200 unsigned int cpus = min_t(unsigned int, num_online_cpus(), 8); in get_update_sysctl_factor() local
208 factor = cpus; in get_update_sysctl_factor()
212 factor = 1 + ilog2(cpus); in get_update_sysctl_factor()
6399 struct cpumask *cpus = this_cpu_cpumask_var_ptr(select_idle_mask); in select_idle_core() local
6410 cpumask_and(cpus, sched_domain_span(sd), p->cpus_ptr); in select_idle_core()
6412 cpumask_andnot(cpus, cpus, cpu_isolated_mask); in select_idle_core()
6415 for_each_cpu_wrap(core, cpus, target) in select_idle_core()
6426 cpumask_andnot(cpus, cpus, cpu_smt_mas in select_idle_core()
6489 struct cpumask *cpus = this_cpu_cpumask_var_ptr(select_idle_mask); select_idle_cpu() local
6553 struct cpumask *cpus; select_idle_capacity() local
7870 struct cpumask *cpus; global() member
8737 __maybe_unused cpumask_t *cpus = sched_group_span(group); update_group_capacity() local
10101 cpumask_t cpus; group_balance_cpu_not_isolated() local
10159 struct cpumask *cpus = this_cpu_cpumask_var_ptr(load_balance_mask); load_balance() local
10294 __cpumask_clear_cpu(cpu_of(busiest), cpus); load_balance() local
11074 cpumask_t cpus; _nohz_idle_balance() local
[all...]
H A Dsched.h116 struct cpumask cpus; member
122 int efficiency; /* Differentiate cpus with different IPC capability */
371 static inline void __dl_sub(struct dl_bw *dl_b, u64 tsk_bw, int cpus) in __dl_sub() argument
374 __dl_update(dl_b, (s32)tsk_bw / cpus); in __dl_sub()
377 static inline void __dl_add(struct dl_bw *dl_b, u64 tsk_bw, int cpus) in __dl_add() argument
380 __dl_update(dl_b, -((s32)tsk_bw / cpus)); in __dl_add()
873 /* Indicate one or more cpus over-utilized (tipping point) */
1450 extern int sched_numa_find_closest(const struct cpumask *cpus, int cpu);
1461 static inline int sched_numa_find_closest(const struct cpumask *cpus, int cpu) in sched_numa_find_closest() argument
2711 #define perf_domain_span(pd) (to_cpumask(((pd)->em_pd->cpus)))
[all...]
H A Dtopology.c302 printk(KERN_CONT " pd%d:{ cpus=%*pbl nr_pstate=%d }", cpumask_first(perf_domain_span(pd)), in perf_domain_debug()
1855 int sched_numa_find_closest(const struct cpumask *cpus, int cpu) in sched_numa_find_closest() argument
1860 cpu = cpumask_any_and(cpus, sched_domains_numa_masks[i][j]); in sched_numa_find_closest()
/device/soc/rockchip/common/sdk_linux/drivers/opp/
H A Dof.c1309 * @cpus : CPUs for which an Energy Model has to be registered. For
1317 int dev_pm_opp_of_register_em(struct device *dev, struct cpumask *cpus) in dev_pm_opp_of_register_em() argument
1356 ret = em_dev_register_perf_domain(dev, nr_opp, &em_cb, cpus, true); in dev_pm_opp_of_register_em()

Completed in 47 milliseconds