Home
last modified time | relevance | path

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

12345678910>>...234

/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 update
224 * @pd_registered: Set when a perf domain is registered for this CPU.
[all …]
/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/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 …]
H A Dcacheinfo.c5 * Based on arch/x86/kernel/cpu/intel_cacheinfo.c
15 #include <linux/cpu.h>
24 /* pointer to per cpu cacheinfo */
26 #define ci_cacheinfo(cpu) (&per_cpu(ci_cpu_cacheinfo, cpu)) argument
27 #define cache_leaves(cpu) (ci_cacheinfo(cpu)->num_leaves) argument
28 #define per_cpu_cacheinfo(cpu) (ci_cacheinfo(cpu)->info_list) argument
29 #define per_cpu_cacheinfo_idx(cpu, idx) \ argument
30 (per_cpu_cacheinfo(cpu) + (idx))
35 struct cpu_cacheinfo *get_cpu_cacheinfo(unsigned int cpu) in get_cpu_cacheinfo() argument
37 return ci_cacheinfo(cpu); in get_cpu_cacheinfo()
[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",
28CPU 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",
28CPU 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",
28CPU 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.c72 struct perf_cpu cpu; in check_cpu_topology() local
83 * cpu is a NULL pointer. in check_cpu_topology()
85 * CPU 0 is on core_id 0 and physical_package_id 6 in check_cpu_topology()
86 * CPU 1 is on core_id 1 and physical_package_id 3 in check_cpu_topology()
89 * dependent and might have higher numbers than the CPU id. in check_cpu_topology()
101 if (!env->cpu && strncmp(env->arch, "s390", 4) && strncmp(env->arch, "aarch64", 7)) in check_cpu_topology()
108 * test if physical_package_id returns -1 for cpu from perf_cpu_map. in check_cpu_topology()
115 TEST_ASSERT_VAL("Session header CPU map not set", env->cpu); in check_cpu_topology()
118 cpu.cpu = i; in check_cpu_topology()
119 if (!perf_cpu_map__has(map, cpu)) in check_cpu_topology()
[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* > /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/cpu*; do
64 if [ -f $cpu/online ] && grep -q $state $cpu/online; then
65 echo ${cpu##/*/cpu}
[all …]
/linux/include/linux/
H A Dcpumask.h7 * set of CPUs in a system, one bit position per CPU number. In general,
84 * cpu_possible_mask- has bit 'cpu' set iff cpu is populatable
85 * cpu_present_mask - has bit 'cpu' set iff cpu is populated
86 * cpu_enabled_mask - has bit 'cpu' set iff cpu can be brought online
87 * cpu_online_mask - has bit 'cpu' set iff cpu available to scheduler
88 * cpu_active_mask - has bit 'cpu' set iff cpu available to migration
92 * The cpu_possible_mask is fixed at boot time, as the set of CPU IDs
108 * assumption that their single CPU is online. The UP
114 * only one CPU.
135 static __always_inline void cpu_max_bits_warn(unsigned int cpu, unsigned int bits) in cpu_max_bits_warn() argument
[all …]
/linux/arch/powerpc/kernel/
H A Dsmp.c29 #include <linux/cpu.h>
76 /* State of each CPU during hotplug phases */
117 * On big-cores system, thread_group_l1_cache_map for each CPU corresponds to
123 * On some big-cores system, thread_group_l2_cache_map for each CPU
130 * On P10, thread_group_l3_cache_map for each CPU is equal to the
144 * Returns 1 if the specified cpu should be brought up during boot.
278 void smp_muxed_ipi_set_message(int cpu, int msg) in smp_muxed_ipi_set_message() argument
280 struct cpu_messages *info = &per_cpu(ipi_message, cpu); in smp_muxed_ipi_set_message()
290 void smp_muxed_ipi_message_pass(int cpu, int msg) in smp_muxed_ipi_message_pass() argument
292 smp_muxed_ipi_set_message(cpu, msg); in smp_muxed_ipi_message_pass()
[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",
28CPU 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",
28CPU 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",
28CPU 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",
28CPU 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",
28CPU 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/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>
81 * Pointer to the pcpu area of the boot CPU. This is required when a restart
82 * interrupt is triggered on an offline CPU. For that case accessing percpu
158 /* Status stored condition code is equivalent to cpu not running. */ in pcpu_running()
163 * Find struct pcpu by cpu address.
167 int cpu; in pcpu_find_address() local
[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/kernel/
H A Dcpu.c2 /* CPU control.
16 #include <linux/cpu.h>
48 * struct cpuhp_cpu_state - Per cpu hotplug state storage
49 * @state: The current cpu state
51 * @fail: Current CPU hotplug callback state
57 * @node: Remote CPU node; for multi-instance, do a
63 * @done_up: Signal completion to the issuer of the task for cpu-up
64 * @done_down: Signal completion to the issuer of the task for cpu-down
128 int (*single)(unsigned int cpu);
129 int (*multi)(unsigned int cpu,
170 cpuhp_invoke_callback(unsigned int cpu,enum cpuhp_state state,bool bringup,struct hlist_node * node,struct hlist_node ** lastp) cpuhp_invoke_callback() argument
309 cpuhp_wait_for_sync_state(unsigned int cpu,enum cpuhp_sync_state state,enum cpuhp_sync_state next_state) cpuhp_wait_for_sync_state() argument
355 arch_cpuhp_cleanup_dead_cpu(unsigned int cpu) arch_cpuhp_cleanup_dead_cpu() argument
361 cpuhp_bp_sync_dead(unsigned int cpu) cpuhp_bp_sync_dead() argument
382 cpuhp_bp_sync_dead(unsigned int cpu) cpuhp_bp_sync_dead() argument
403 cpuhp_can_boot_ap(unsigned int cpu) cpuhp_can_boot_ap() argument
431 arch_cpuhp_cleanup_kick_cpu(unsigned int cpu) arch_cpuhp_cleanup_kick_cpu() argument
437 cpuhp_bp_sync_alive(unsigned int cpu) cpuhp_bp_sync_alive() argument
454 cpuhp_bp_sync_alive(unsigned int cpu) cpuhp_bp_sync_alive() argument
455 cpuhp_can_boot_ap(unsigned int cpu) cpuhp_can_boot_ap() argument
664 cpu_smt_thread_allowed(unsigned int cpu) cpu_smt_thread_allowed() argument
673 cpu_bootable(unsigned int cpu) cpu_bootable() argument
707 cpu_bootable(unsigned int cpu) cpu_bootable() argument
711 cpuhp_set_state(int cpu,struct cpuhp_cpu_state * st,enum cpuhp_state target) cpuhp_set_state() argument
729 cpuhp_reset_state(int cpu,struct cpuhp_cpu_state * st,enum cpuhp_state prev_state) cpuhp_reset_state() argument
778 cpuhp_kick_ap(int cpu,struct cpuhp_cpu_state * st,enum cpuhp_state target) cpuhp_kick_ap() argument
794 bringup_wait_for_ap_online(unsigned int cpu) bringup_wait_for_ap_online() argument
819 cpuhp_kick_ap_alive(unsigned int cpu) cpuhp_kick_ap_alive() argument
827 cpuhp_bringup_ap(unsigned int cpu) cpuhp_bringup_ap() argument
859 bringup_cpu(unsigned int cpu) bringup_cpu() argument
904 finish_cpu(unsigned int cpu) finish_cpu() argument
957 __cpuhp_invoke_callback_range(bool bringup,unsigned int cpu,struct cpuhp_cpu_state * st,enum cpuhp_state target,bool nofail) __cpuhp_invoke_callback_range() argument
988 cpuhp_invoke_callback_range(bool bringup,unsigned int cpu,struct cpuhp_cpu_state * st,enum cpuhp_state target) cpuhp_invoke_callback_range() argument
996 cpuhp_invoke_callback_range_nofail(bool bringup,unsigned int cpu,struct cpuhp_cpu_state * st,enum cpuhp_state target) cpuhp_invoke_callback_range_nofail() argument
1017 cpuhp_up_callbacks(unsigned int cpu,struct cpuhp_cpu_state * st,enum cpuhp_state target) cpuhp_up_callbacks() argument
1040 cpuhp_should_run(unsigned int cpu) cpuhp_should_run() argument
1061 cpuhp_thread_fun(unsigned int cpu) cpuhp_thread_fun() argument
1128 cpuhp_invoke_ap_callback(int cpu,enum cpuhp_state state,bool bringup,struct hlist_node * node) cpuhp_invoke_ap_callback() argument
1178 cpuhp_kick_ap_work(unsigned int cpu) cpuhp_kick_ap_work() argument
1208 int cpu; cpuhp_init_state() local
1226 arch_clear_mm_cpumask_cpu(cpu,mm) global() argument
1241 clear_tasks_mm_cpumask(int cpu) clear_tasks_mm_cpumask() argument
1275 int err, cpu = smp_processor_id(); take_cpu_down() local
1298 takedown_cpu(unsigned int cpu) takedown_cpu() argument
1376 cpuhp_down_callbacks(unsigned int cpu,struct cpuhp_cpu_state * st,enum cpuhp_state target) cpuhp_down_callbacks() argument
1399 _cpu_down(unsigned int cpu,int tasks_frozen,enum cpuhp_state target) _cpu_down() argument
1460 unsigned int cpu; global() member
1471 cpu_down_maps_locked(unsigned int cpu,enum cpuhp_state target) cpu_down_maps_locked() argument
1497 cpu_down(unsigned int cpu,enum cpuhp_state target) cpu_down() argument
1522 remove_cpu(unsigned int cpu) remove_cpu() argument
1536 unsigned int cpu; smp_shutdown_nonboot_cpus() local
1587 notify_cpu_starting(unsigned int cpu) notify_cpu_starting() argument
1627 _cpu_up(unsigned int cpu,int tasks_frozen,enum cpuhp_state target) _cpu_up() argument
1692 cpu_up(unsigned int cpu,enum cpuhp_state target) cpu_up() argument
1738 add_cpu(unsigned int cpu) add_cpu() argument
1778 unsigned int cpu; cpuhp_bringup_mask() local
1899 int cpu, error = 0; freeze_secondary_cpus() local
1965 int cpu, error; thaw_secondary_cpus() local
2300 cpuhp_store_callbacks(enum cpuhp_state state,const char * name,int (* startup)(unsigned int cpu),int (* teardown)(unsigned int cpu),bool multi_instance) cpuhp_store_callbacks() argument
2301 cpuhp_store_callbacks(enum cpuhp_state state,const char * name,int (* startup)(unsigned int cpu),int (* teardown)(unsigned int cpu),bool multi_instance) cpuhp_store_callbacks() argument
2345 cpuhp_issue_call(int cpu,enum cpuhp_state state,bool bringup,struct hlist_node * node) cpuhp_issue_call() argument
2388 int cpu; cpuhp_rollback_install() local
2409 int cpu; __cpuhp_state_add_instance_cpuslocked() local
2481 __cpuhp_setup_state_cpuslocked(enum cpuhp_state state,const char * name,bool invoke,int (* startup)(unsigned int cpu),int (* teardown)(unsigned int cpu),bool multi_instance) __cpuhp_setup_state_cpuslocked() argument
2482 __cpuhp_setup_state_cpuslocked(enum cpuhp_state state,const char * name,bool invoke,int (* startup)(unsigned int cpu),int (* teardown)(unsigned int cpu),bool multi_instance) __cpuhp_setup_state_cpuslocked() argument
2485 int cpu, ret = 0; __cpuhp_setup_state_cpuslocked() local
2540 __cpuhp_setup_state(enum cpuhp_state state,const char * name,bool invoke,int (* startup)(unsigned int cpu),int (* teardown)(unsigned int cpu),bool multi_instance) __cpuhp_setup_state() argument
2541 __cpuhp_setup_state(enum cpuhp_state state,const char * name,bool invoke,int (* startup)(unsigned int cpu),int (* teardown)(unsigned int cpu),bool multi_instance) __cpuhp_setup_state() argument
2558 int cpu; __cpuhp_state_remove_instance() local
2605 int cpu; __cpuhp_remove_state_cpuslocked() local
2649 cpuhp_offline_cpu_device(unsigned int cpu) cpuhp_offline_cpu_device() argument
2658 cpuhp_online_cpu_device(unsigned int cpu) cpuhp_online_cpu_device() argument
2669 int cpu, ret = 0; cpuhp_smt_disable() local
2707 topology_is_core_online(unsigned int cpu) topology_is_core_online() argument
2715 int cpu, ret = 0; cpuhp_smt_enable() local
3036 int cpu, ret; cpuhp_sysfs_init() local
3132 set_cpu_online(unsigned int cpu,bool online) set_cpu_online() argument
3157 set_cpu_possible(unsigned int cpu,bool possible) set_cpu_possible() argument
3173 int cpu = smp_processor_id(); boot_cpu_init() local
[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/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/arch/arm/kernel/
H A Dsmp.c20 #include <linux/cpu.h>
35 #include <asm/cpu.h>
86 static void ipi_setup(int cpu);
108 static int secondary_biglittle_prepare(unsigned int cpu) in secondary_biglittle_prepare() argument
110 if (!cpu_vtable[cpu]) in secondary_biglittle_prepare()
111 cpu_vtable[cpu] = kzalloc_obj(*cpu_vtable[cpu]); in secondary_biglittle_prepare()
113 return cpu_vtable[cpu] ? 0 : -ENOMEM; in secondary_biglittle_prepare()
121 static int secondary_biglittle_prepare(unsigned int cpu) in secondary_biglittle_prepare() argument
131 int __cpu_up(unsigned int cpu, struct task_struct *idle) in __cpu_up() argument
138 ret = secondary_biglittle_prepare(cpu); in __cpu_up()
[all …]

12345678910>>...234