Home
last modified time | relevance | path

Searched full:cpu (Results 1 – 25 of 4927) sorted by relevance

12345678910>>...198

/linux/arch/arm/boot/dts/intel/axm/
H A Daxm5516-cpus.dtsi13 cpu-map {
16 cpu = <&CPU0>;
19 cpu = <&CPU1>;
22 cpu = <&CPU2>;
25 cpu = <&CPU3>;
30 cpu = <&CPU4>;
33 cpu = <&CPU5>;
36 cpu = <&CPU6>;
39 cpu = <&CPU7>;
44 cpu = <&CPU8>;
[all …]
/linux/drivers/cpufreq/
H A Dintel_pstate.c21 #include <linux/cpu.h>
33 #include <asm/cpu.h>
100 * to account for cpu idle period
136 * Stores the per cpu model P state limits and current P state.
191 * struct cpudata - Per CPU instance data storage
192 * @cpu: CPU number for this instance data
198 * @pstate: Stores P state limits for this CPU
199 * @vid: Stores VID limits for this CPU
221 * @sched_flags: Store scheduler flags for possible cross CPU updat
230 int cpu; global() member
362 intel_pstate_set_itmt_prio(int cpu) intel_pstate_set_itmt_prio() argument
405 intel_pstate_get_cppc_guaranteed(int cpu) intel_pstate_get_cppc_guaranteed() argument
420 intel_pstate_cppc_get_scaling(int cpu) intel_pstate_cppc_get_scaling() argument
437 intel_pstate_set_itmt_prio(int cpu) intel_pstate_set_itmt_prio() argument
444 struct cpudata *cpu; intel_pstate_init_acpi_perf_limits() local
500 struct cpudata *cpu; intel_pstate_exit_perf_limits() local
524 intel_pstate_get_cppc_guaranteed(int cpu) intel_pstate_get_cppc_guaranteed() argument
529 intel_pstate_cppc_get_scaling(int cpu) intel_pstate_cppc_get_scaling() argument
535 intel_pstate_freq_to_hwp_rel(struct cpudata * cpu,int freq,unsigned int relation) intel_pstate_freq_to_hwp_rel() argument
554 intel_pstate_freq_to_hwp(struct cpudata * cpu,int freq) intel_pstate_freq_to_hwp() argument
570 struct cpudata *cpu = all_cpu_data[0]; min_perf_pct_min() local
672 intel_pstate_set_epp(struct cpudata * cpu,u32 epp) intel_pstate_set_epp() argument
749 struct cpudata *cpu = all_cpu_data[policy->cpu]; store_energy_performance_preference() local
834 struct cpudata *cpu = all_cpu_data[policy->cpu]; show_base_frequency() local
869 hybrid_get_cpu_type(unsigned int cpu) hybrid_get_cpu_type() argument
905 hybrid_has_l3(unsigned int cpu) hybrid_has_l3() argument
942 hybrid_register_perf_domain(unsigned int cpu) hybrid_register_perf_domain() argument
972 unsigned int cpu; hybrid_register_all_perf_domains() local
978 hybrid_update_perf_domain(struct cpudata * cpu) hybrid_update_perf_domain() argument
984 hybrid_register_perf_domain(unsigned int cpu) hybrid_register_perf_domain() argument
986 hybrid_update_perf_domain(struct cpudata * cpu) hybrid_update_perf_domain() argument
989 hybrid_set_cpu_capacity(struct cpudata * cpu) hybrid_set_cpu_capacity() argument
1009 hybrid_get_capacity_perf(struct cpudata * cpu) hybrid_get_capacity_perf() argument
1026 struct cpudata *cpu = all_cpu_data[cpunum]; hybrid_set_capacity_of_cpus() local
1040 struct cpudata *cpu = all_cpu_data[cpunum]; hybrid_update_cpu_capacity_scaling() local
1138 intel_pstate_update_freq_limits(struct cpudata * cpu) intel_pstate_update_freq_limits() argument
1154 __intel_pstate_get_hwp_cap(struct cpudata * cpu) __intel_pstate_get_hwp_cap() argument
1164 intel_pstate_get_hwp_cap(struct cpudata * cpu) intel_pstate_get_hwp_cap() argument
1170 hybrid_update_capacity(struct cpudata * cpu) hybrid_update_capacity() argument
1215 intel_pstate_hwp_set(unsigned int cpu) intel_pstate_hwp_set() argument
1279 intel_pstate_hwp_offline(struct cpudata * cpu) intel_pstate_hwp_offline() argument
1367 intel_pstate_hwp_reenable(struct cpudata * cpu) intel_pstate_hwp_reenable() argument
1375 struct cpudata *cpu = all_cpu_data[policy->cpu]; intel_pstate_suspend() local
1389 struct cpudata *cpu = all_cpu_data[policy->cpu]; intel_pstate_resume() local
1415 int cpu; intel_pstate_update_policies() local
1435 intel_pstate_update_max_freq(int cpu) intel_pstate_update_max_freq() argument
1457 int cpu; intel_pstate_update_limits_for_all() local
1507 struct cpudata *cpu; show_turbo_pct() local
1529 struct cpudata *cpu; show_num_pstates() local
1587 struct cpudata *cpu = all_cpu_data[0]; store_no_turbo() local
1603 update_cpu_qos_request(int cpu,enum freq_qos_req_type type) update_cpu_qos_request() argument
2111 core_get_min_pstate(int cpu) core_get_min_pstate() argument
2119 core_get_max_pstate_physical(int cpu) core_get_max_pstate_physical() argument
2127 core_get_tdp_ratio(int cpu,u64 plat_info) core_get_tdp_ratio() argument
2160 core_get_max_pstate(int cpu) core_get_max_pstate() argument
2195 core_get_turbo_pstate(int cpu) core_get_turbo_pstate() argument
2218 knl_get_turbo_pstate(int cpu) knl_get_turbo_pstate() argument
2231 hwp_get_cpu_scaling(int cpu) hwp_get_cpu_scaling() argument
2256 intel_pstate_get_hwp_pstates(struct cpudata * cpu) intel_pstate_get_hwp_pstates() argument
2305 intel_pstate_get_cpu_pstates(struct cpudata * cpu) intel_pstate_get_cpu_pstates() argument
2338 intel_pstate_hwp_boost_up(struct cpudata * cpu) intel_pstate_hwp_boost_up() argument
2385 intel_pstate_hwp_boost_down(struct cpudata * cpu) intel_pstate_hwp_boost_down() argument
2401 intel_pstate_update_util_hwp_local(struct cpudata * cpu,u64 time) intel_pstate_update_util_hwp_local() argument
2433 struct cpudata *cpu = container_of(data, struct cpudata, update_util); intel_pstate_update_util_hwp() local
2441 intel_pstate_calc_avg_perf(struct cpudata * cpu) intel_pstate_calc_avg_perf() argument
2448 intel_pstate_sample(struct cpudata * cpu,u64 time) intel_pstate_sample() argument
2490 get_avg_frequency(struct cpudata * cpu) get_avg_frequency() argument
2495 get_avg_pstate(struct cpudata * cpu) get_avg_pstate() argument
2501 get_target_pstate(struct cpudata * cpu) get_target_pstate() argument
2536 intel_pstate_prepare_request(struct cpudata * cpu,int pstate) intel_pstate_prepare_request() argument
2544 intel_pstate_update_pstate(struct cpudata * cpu,int pstate) intel_pstate_update_pstate() argument
2553 intel_pstate_adjust_pstate(struct cpudata * cpu) intel_pstate_adjust_pstate() argument
2579 struct cpudata *cpu = container_of(data, struct cpudata, update_util); intel_pstate_update_util() local
2714 struct cpudata *cpu; intel_pstate_init_cpu() local
2756 struct cpudata *cpu = all_cpu_data[cpu_num]; intel_pstate_set_update_util_hook() local
2773 intel_pstate_clear_update_util_hook(unsigned int cpu) intel_pstate_clear_update_util_hook() argument
2785 intel_pstate_get_max_freq(struct cpudata * cpu) intel_pstate_get_max_freq() argument
2791 intel_pstate_update_perf_limits(struct cpudata * cpu,unsigned int policy_min,unsigned int policy_max) intel_pstate_update_perf_limits() argument
2854 intel_pstate_set_pstate(struct cpudata * cpu,int pstate) intel_pstate_set_pstate() argument
2870 struct cpudata *cpu; intel_pstate_set_policy() local
2927 intel_pstate_adjust_policy_max(struct cpudata * cpu,struct cpufreq_policy_data * policy) intel_pstate_adjust_policy_max() argument
2939 intel_pstate_verify_cpu_policy(struct cpudata * cpu,struct cpufreq_policy_data * policy) intel_pstate_verify_cpu_policy() argument
2963 intel_pstate_set_min_pstate(struct cpudata * cpu) intel_pstate_set_min_pstate() argument
2970 struct cpudata *cpu = all_cpu_data[policy->cpu]; intel_cpufreq_cpu_offline() local
2997 struct cpudata *cpu = all_cpu_data[policy->cpu]; intel_pstate_cpu_online() local
3033 struct cpudata *cpu; __intel_pstate_cpu_init() local
3060 struct cpudata *cpu; intel_pstate_cpu_init() local
3096 struct cpudata *cpu = all_cpu_data[policy->cpu]; intel_cpufreq_verify_policy() local
3120 intel_cpufreq_trace(struct cpudata * cpu,unsigned int trace_type,int old_pstate) intel_cpufreq_trace() argument
3142 intel_cpufreq_hwp_update(struct cpudata * cpu,u32 min,u32 max,u32 desired,bool fast_switch) intel_cpufreq_hwp_update() argument
3166 intel_cpufreq_perf_ctl_update(struct cpudata * cpu,u32 target_pstate,bool fast_switch) intel_cpufreq_perf_ctl_update() argument
3180 struct cpudata *cpu = all_cpu_data[policy->cpu]; intel_cpufreq_update_pstate() local
3206 struct cpudata *cpu = all_cpu_data[policy->cpu]; intel_cpufreq_target() local
3228 struct cpudata *cpu = all_cpu_data[policy->cpu]; intel_cpufreq_fast_switch() local
3244 struct cpudata *cpu = all_cpu_data[policy->cpu]; intel_cpufreq_adjust_perf() local
3293 struct cpudata *cpu; intel_cpufreq_cpu_init() local
3386 struct cpudata *cpu = all_cpu_data[policy->cpu]; intel_cpufreq_suspend() local
3421 unsigned int cpu; intel_pstate_driver_cleanup() local
[all...]
/linux/arch/arm/mach-meson/
H A Dplatsmp.c38 static struct reset_control *meson_smp_get_core_reset(int cpu) in meson_smp_get_core_reset() argument
40 struct device_node *np = of_get_cpu_node(cpu, 0); in meson_smp_get_core_reset()
45 static void meson_smp_set_cpu_ctrl(int cpu, bool on_off) in meson_smp_set_cpu_ctrl() argument
50 val |= BIT(cpu); in meson_smp_set_cpu_ctrl()
52 val &= ~BIT(cpu); in meson_smp_set_cpu_ctrl()
116 static void meson_smp_begin_secondary_boot(unsigned int cpu) in meson_smp_begin_secondary_boot() argument
119 * Set the entry point before powering on the CPU through the SCU. This in meson_smp_begin_secondary_boot()
120 * is needed if the CPU is in "warm" state (= after rebooting the in meson_smp_begin_secondary_boot()
121 * system without power-cycling, or when taking the CPU offline and in meson_smp_begin_secondary_boot()
125 sram_base + MESON_SMP_SRAM_CPU_CTRL_ADDR_REG(cpu)); in meson_smp_begin_secondary_boot()
[all …]
/linux/drivers/base/
H A Darch_topology.c3 * Arch specific cpu topology information
12 #include <linux/cpu.h>
74 int cpu; in topology_set_scale_freq_source() local
85 for_each_cpu(cpu, cpus) { in topology_set_scale_freq_source()
86 sfd = rcu_dereference(*per_cpu_ptr(&sft_data, cpu)); in topology_set_scale_freq_source()
90 rcu_assign_pointer(per_cpu(sft_data, cpu), data); in topology_set_scale_freq_source()
91 cpumask_set_cpu(cpu, &scale_freq_counters_mask); in topology_set_scale_freq_source()
105 int cpu; in topology_clear_scale_freq_source() local
109 for_each_cpu(cpu, cpus) { in topology_clear_scale_freq_source()
110 sfd = rcu_dereference(*per_cpu_ptr(&sft_data, cpu)); in topology_clear_scale_freq_source()
[all …]
/linux/tools/perf/pmu-events/arch/s390/cf_z16/
H A Dcrypto6.json3 "Unit": "CPU-M-CF",
7 …counter counts the total number of the pseudorandom-number-generation functions issued by the CPU."
10 "Unit": "CPU-M-CF",
14 …al number of CPU cycles when the DEA/AES/SHA coprocessor is busy performing the pseudorandom- numb…
17 "Unit": "CPU-M-CF",
21 …that are issued by the CPU and are blocked because the DEA/AES/SHA coprocessor is busy performing …
24 "Unit": "CPU-M-CF",
28 …CPU cycles blocked for the pseudorandom-number-generation functions issued by the CPU because the …
31 "Unit": "CPU-M-CF",
35 …"PublicDescription": "This counter counts the total number of the SHA functions issued by the CPU."
[all …]
/linux/tools/perf/pmu-events/arch/s390/cf_z15/
H A Dcrypto6.json3 "Unit": "CPU-M-CF",
7 …counter counts the total number of the pseudorandom-number-generation functions issued by the CPU."
10 "Unit": "CPU-M-CF",
14 …al number of CPU cycles when the DEA/AES/SHA coprocessor is busy performing the pseudorandom- numb…
17 "Unit": "CPU-M-CF",
21 …that are issued by the CPU and are blocked because the DEA/AES/SHA coprocessor is busy performing …
24 "Unit": "CPU-M-CF",
28 …CPU cycles blocked for the pseudorandom-number-generation functions issued by the CPU because the …
31 "Unit": "CPU-M-CF",
35 …"PublicDescription": "This counter counts the total number of the SHA functions issued by the CPU."
[all …]
/linux/tools/perf/pmu-events/arch/s390/cf_z17/
H A Dcrypto6.json3 "Unit": "CPU-M-CF",
7 …counter counts the total number of the pseudorandom-number-generation functions issued by the CPU."
10 "Unit": "CPU-M-CF",
14 …al number of CPU cycles when the DEA/AES/SHA coprocessor is busy performing the pseudorandom- numb…
17 "Unit": "CPU-M-CF",
21 …that are issued by the CPU and are blocked because the DEA/AES/SHA coprocessor is busy performing …
24 "Unit": "CPU-M-CF",
28 …CPU cycles blocked for the pseudorandom-number-generation functions issued by the CPU because the …
31 "Unit": "CPU-M-CF",
35 …"PublicDescription": "This counter counts the total number of the SHA functions issued by the CPU."
[all …]
/linux/tools/perf/tests/
H A Dtopology.c76 struct perf_cpu cpu; in check_cpu_topology()
88 * cpu is a NULL pointer. in check_cpu_topology()
90 * CPU 0 is on core_id 0 and physical_package_id 6 in check_cpu_topology()
91 * CPU 1 is on core_id 1 and physical_package_id 3 in check_cpu_topology()
94 * dependent and might have higher numbers than the CPU id. in check_cpu_topology()
108 if (!env->cpu && e_machine != EM_S390 && e_machine != EM_AARCH64) in check_cpu_topology()
115 * test if physical_package_id returns -1 for cpu from perf_cpu_map. in check_cpu_topology()
122 TEST_ASSERT_VAL("Session header CPU map not set", env->cpu); in check_cpu_topology()
125 cpu in check_cpu_topology()
72 struct perf_cpu cpu; check_cpu_topology() local
[all...]
/linux/arch/arm64/kernel/
H A Dsmp.c23 #include <linux/cpu.h>
43 #include <asm/cpu.h>
84 static void ipi_setup(int cpu);
87 static void ipi_teardown(int cpu);
88 static int op_cpu_kill(unsigned int cpu);
90 static inline int op_cpu_kill(unsigned int cpu) in op_cpu_kill() argument
98 * Boot a secondary CPU, and assign it the specified idle task.
99 * This also gives us the initial stack to use for this CPU.
101 static int boot_secondary(unsigned int cpu, struct task_struct *idle) in boot_secondary() argument
103 const struct cpu_operations *ops = get_cpu_ops(cpu); in boot_secondary()
[all …]
/linux/arch/arm/mach-tegra/
H A Dplatsmp.c36 static void tegra_secondary_init(unsigned int cpu) in tegra_secondary_init() argument
38 cpumask_set_cpu(cpu, &tegra_cpu_init_mask); in tegra_secondary_init()
42 static int tegra20_boot_secondary(unsigned int cpu, struct task_struct *idle) in tegra20_boot_secondary() argument
44 cpu = cpu_logical_map(cpu); in tegra20_boot_secondary()
47 * Force the CPU into reset. The CPU must remain in reset when in tegra20_boot_secondary()
49 * flow controller to stop driving reset if the CPU has been in tegra20_boot_secondary()
51 * effect on first boot of the CPU since it should already be in tegra20_boot_secondary()
54 tegra_put_cpu_in_reset(cpu); in tegra20_boot_secondary()
57 * Unhalt the CPU. If the flow controller was used to in tegra20_boot_secondary()
58 * power-gate the CPU this will cause the flow controller to in tegra20_boot_secondary()
[all …]
/linux/tools/testing/selftests/cpu-hotplug/
H A Dcpu-on-off-test.sh27 if ! ls $SYSFS/devices/system/cpu/cpu*/online > /dev/null 2>&1; then
28 echo $msg cpu hotplug is not supported >&2
32 echo "CPU online/offline summary:"
33 online_cpus=`cat $SYSFS/devices/system/cpu/online`
37 echo "$msg: since there is only one cpu: $online_cpus"
41 present_cpus=`cat $SYSFS/devices/system/cpu/present`
47 offline_cpus=`cat $SYSFS/devices/system/cpu/offline`
63 for cpu in $SYSFS/devices/system/cpu/cp
[all...]
/linux/include/linux/
H A Dcpumask.h7 * set of CPUs in a system, one bit position per CPU number. In general,
85 * cpu_possible_mask- has bit 'cpu' set iff cpu is populatable
86 * cpu_present_mask - has bit 'cpu' set iff cpu is populated
87 * cpu_enabled_mask - has bit 'cpu' set iff cpu can be brought online
88 * cpu_online_mask - has bit 'cpu' set iff cpu available to scheduler
89 * cpu_active_mask - has bit 'cpu' set iff cpu available to migration
93 * The cpu_possible_mask is fixed at boot time, as the set of CPU IDs
109 * assumption that their single CPU is online. The UP
115 * only one CPU.
136 static __always_inline void cpu_max_bits_warn(unsigned int cpu, unsigned int bits) in cpu_max_bits_warn() argument
[all …]
/linux/tools/perf/pmu-events/arch/s390/cf_z14/
H A Dcrypto.json3 "Unit": "CPU-M-CF",
7 …counter counts the total number of the pseudorandom-number-generation functions issued by the CPU."
10 "Unit": "CPU-M-CF",
14 …al number of CPU cycles when the DEA/AES/SHA coprocessor is busy performing the pseudorandom- numb…
17 "Unit": "CPU-M-CF",
21 …that are issued by the CPU and are blocked because the DEA/AES/SHA coprocessor is busy performing …
24 "Unit": "CPU-M-CF",
28 …CPU cycles blocked for the pseudorandom-number-generation functions issued by the CPU because the …
31 "Unit": "CPU-M-CF",
35 …"PublicDescription": "This counter counts the total number of the SHA functions issued by the CPU."
[all …]
/linux/tools/perf/pmu-events/arch/s390/cf_z13/
H A Dcrypto.json3 "Unit": "CPU-M-CF",
7 …counter counts the total number of the pseudorandom-number-generation functions issued by the CPU."
10 "Unit": "CPU-M-CF",
14 …al number of CPU cycles when the DEA/AES/SHA coprocessor is busy performing the pseudorandom- numb…
17 "Unit": "CPU-M-CF",
21 …that are issued by the CPU and are blocked because the DEA/AES/SHA coprocessor is busy performing …
24 "Unit": "CPU-M-CF",
28 …CPU cycles blocked for the pseudorandom-number-generation functions issued by the CPU because the …
31 "Unit": "CPU-M-CF",
35 …"PublicDescription": "This counter counts the total number of the SHA functions issued by the CPU."
[all …]
/linux/tools/perf/pmu-events/arch/s390/cf_z10/
H A Dcrypto.json3 "Unit": "CPU-M-CF",
7 …counter counts the total number of the pseudorandom-number-generation functions issued by the CPU."
10 "Unit": "CPU-M-CF",
14 …al number of CPU cycles when the DEA/AES/SHA coprocessor is busy performing the pseudorandom- numb…
17 "Unit": "CPU-M-CF",
21 …that are issued by the CPU and are blocked because the DEA/AES/SHA coprocessor is busy performing …
24 "Unit": "CPU-M-CF",
28 …CPU cycles blocked for the pseudorandom-number-generation functions issued by the CPU because the …
31 "Unit": "CPU-M-CF",
35 …"PublicDescription": "This counter counts the total number of the SHA functions issued by the CPU."
[all …]
/linux/tools/perf/pmu-events/arch/s390/cf_zec12/
H A Dcrypto.json3 "Unit": "CPU-M-CF",
7 …counter counts the total number of the pseudorandom-number-generation functions issued by the CPU."
10 "Unit": "CPU-M-CF",
14 …al number of CPU cycles when the DEA/AES/SHA coprocessor is busy performing the pseudorandom- numb…
17 "Unit": "CPU-M-CF",
21 …that are issued by the CPU and are blocked because the DEA/AES/SHA coprocessor is busy performing …
24 "Unit": "CPU-M-CF",
28 …CPU cycles blocked for the pseudorandom-number-generation functions issued by the CPU because the …
31 "Unit": "CPU-M-CF",
35 …"PublicDescription": "This counter counts the total number of the SHA functions issued by the CPU."
[all …]
/linux/tools/perf/pmu-events/arch/s390/cf_z196/
H A Dcrypto.json3 "Unit": "CPU-M-CF",
7 …counter counts the total number of the pseudorandom-number-generation functions issued by the CPU."
10 "Unit": "CPU-M-CF",
14 …al number of CPU cycles when the DEA/AES/SHA coprocessor is busy performing the pseudorandom- numb…
17 "Unit": "CPU-M-CF",
21 …that are issued by the CPU and are blocked because the DEA/AES/SHA coprocessor is busy performing …
24 "Unit": "CPU-M-CF",
28 …CPU cycles blocked for the pseudorandom-number-generation functions issued by the CPU because the …
31 "Unit": "CPU-M-CF",
35 …"PublicDescription": "This counter counts the total number of the SHA functions issued by the CPU."
[all …]
/linux/arch/um/kernel/
H A Dsmp.c16 #include <linux/cpu.h>
32 void arch_smp_send_reschedule(int cpu) in arch_smp_send_reschedule() argument
34 os_send_ipi(cpu, UML_IPI_RES); in arch_smp_send_reschedule()
37 void arch_send_call_function_single_ipi(int cpu) in arch_send_call_function_single_ipi() argument
39 os_send_ipi(cpu, UML_IPI_CALL_SINGLE); in arch_send_call_function_single_ipi()
44 int cpu; in arch_send_call_function_ipi_mask() local
46 for_each_cpu(cpu, mask) in arch_send_call_function_ipi_mask()
47 os_send_ipi(cpu, UML_IPI_CALL); in arch_send_call_function_ipi_mask()
52 int cpu, me = smp_processor_id(); in smp_send_stop() local
54 for_each_online_cpu(cpu) { in smp_send_stop()
[all …]
/linux/arch/loongarch/kernel/
H A Dsmp.c12 #include <linux/cpu.h>
28 #include <asm/cpu.h>
44 /* Representing the threads (siblings) of each logical CPU */
48 /* Representing the last level cache shared map of each logical CPU */
52 /* Representing the core map of multi-core chips of each logical CPU */
60 * A logcal cpu mask containing only one VPE per core to
87 unsigned int cpu, i; in show_ipi_list() local
91 for_each_online_cpu(cpu) in show_ipi_list()
92 seq_put_decimal_ull_width(p, " ", per_cpu(irq_stat, cpu).ipi_irqs[i], 10); in show_ipi_list()
97 static inline void set_cpu_core_map(int cpu) in set_cpu_core_map() argument
[all …]
/linux/arch/s390/kernel/
H A Dsmp.c13 * The code outside of smp.c uses logical cpu numbers, only smp.c does
14 * the translation of logical to physical cpu ids. All new code that
15 * operates on physical cpu numbers needs to go into smp.c.
18 #define pr_fmt(fmt) "cpu: " fmt
33 #include <linux/cpu.h>
80 * Pointer to the pcpu area of the boot CPU. This is required when a restart
81 * interrupt is triggered on an offline CPU. For that case accessing percpu
157 /* Status stored condition code is equivalent to cpu not running. */ in pcpu_running()
162 * Find struct pcpu by cpu address.
166 int cpu; in pcpu_find_address() local
[all …]
/linux/arch/arm64/boot/dts/amd/
H A Delba-16core.dtsi11 cpu-map {
13 core0 { cpu = <&cpu0>; };
14 core1 { cpu = <&cpu1>; };
15 core2 { cpu = <&cpu2>; };
16 core3 { cpu = <&cpu3>; };
20 core0 { cpu = <&cpu4>; };
21 core1 { cpu = <&cpu5>; };
22 core2 { cpu = <&cpu6>; };
23 core3 { cpu = <&cpu7>; };
27 core0 { cpu = <&cpu8>; };
[all …]
/linux/arch/arm/mach-bcm/
H A Dplatsmp-brcmstb.c3 * Broadcom STB CPU SMP and hotplug support for ARM
52 * We must quiesce a dying CPU before it can be killed by the boot CPU. Because
59 static int per_cpu_sw_state_rd(u32 cpu) in per_cpu_sw_state_rd() argument
61 sync_cache_r(SHIFT_PERCPU_PTR(&per_cpu_sw_state, per_cpu_offset(cpu))); in per_cpu_sw_state_rd()
62 return per_cpu(per_cpu_sw_state, cpu); in per_cpu_sw_state_rd()
65 static void per_cpu_sw_state_wr(u32 cpu, int val) in per_cpu_sw_state_wr() argument
68 per_cpu(per_cpu_sw_state, cpu) = val; in per_cpu_sw_state_wr()
69 sync_cache_w(SHIFT_PERCPU_PTR(&per_cpu_sw_state, per_cpu_offset(cpu))); in per_cpu_sw_state_wr()
72 static inline void per_cpu_sw_state_wr(u32 cpu, int val) { } in per_cpu_sw_state_wr() argument
75 static void __iomem *pwr_ctrl_get_base(u32 cpu) in pwr_ctrl_get_base() argument
[all …]
/linux/drivers/cpuidle/
H A Dcoupled.c11 #include <linux/cpu.h>
25 * sequencing restrictions (on Tegra 2, cpu 0 must be the last to
26 * power down), or due to HW bugs (on OMAP4460, a cpu powering up
27 * will corrupt the gic state unless the other cpu runs a work
28 * around). Each cpu has a power state that it can enter without
29 * coordinating with the other cpu (usually Wait For Interrupt, or
35 * This file implements a solution, where each cpu will wait in the
45 * each cpu will increment the ready counter, and continue once the
47 * cpu exits idle, the other cpus will decrement their counter and
50 * requested_state stores the deepest coupled idle state each cpu
[all …]
/linux/drivers/xen/
H A Dcpu_hotplug.c10 #include <asm/cpu.h>
12 static void enable_hotplug_cpu(int cpu) in enable_hotplug_cpu() argument
14 if (!cpu_present(cpu)) in enable_hotplug_cpu()
15 xen_arch_register_cpu(cpu); in enable_hotplug_cpu()
17 set_cpu_present(cpu, true); in enable_hotplug_cpu()
20 static void disable_hotplug_cpu(int cpu) in disable_hotplug_cpu() argument
22 if (!cpu_is_hotpluggable(cpu)) in disable_hotplug_cpu()
25 if (cpu_online(cpu)) in disable_hotplug_cpu()
26 device_offline(get_cpu_device(cpu)); in disable_hotplug_cpu()
27 if (!cpu_online(cpu) && cpu_present(cpu)) { in disable_hotplug_cpu()
[all …]
/linux/kernel/sched/ext/
H A Didle.c5 * Built-in idle CPU tracking policy.
17 /* Enable/disable built-in idle CPU selection policy */
36 cpumask_var_t cpu; member
52 * Local per-CPU cpumasks (used to generate temporary idle cpumasks).
69 * Returns the NUMA node ID associated with a @cpu, or NUMA_NO_NODE if
72 static int scx_cpu_node_if_enabled(int cpu) in scx_cpu_node_if_enabled() argument
77 return cpu_to_node(cpu); in scx_cpu_node_if_enabled()
80 static bool scx_idle_test_and_clear_cpu(int cpu) in scx_idle_test_and_clear_cpu() argument
82 int node = scx_cpu_node_if_enabled(cpu); in scx_idle_test_and_clear_cpu()
83 struct cpumask *idle_cpus = idle_cpumask(node)->cpu; in scx_idle_test_and_clear_cpu()
[all …]

12345678910>>...198