/linux/arch/arm/boot/dts/intel/axm/ |
H A D | axm5516-cpus.dtsi | 13 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/Documentation/devicetree/bindings/cpu/ |
H A D | cpu-topology.txt | 2 CPU topology binding description 20 For instance in a system where CPUs support SMT, "cpu" nodes represent all 22 In systems where SMT is not supported "cpu" nodes represent all cores present 25 CPU topology bindings allow one to associate cpu nodes with hierarchical groups 29 Currently, only ARM/RISC-V intend to use this cpu topology binding but it may be 32 The cpu nodes, as per bindings defined in [4], represent the devices that 35 A topology description containing phandles to cpu nodes that are not compliant 39 2 - cpu-map node 42 The ARM/RISC-V CPU topology is defined within the cpu-map node, which is a direct 46 - cpu-map node [all …]
|
/linux/arch/arm/mach-meson/ |
H A D | platsmp.c | 38 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/tools/perf/pmu-events/arch/s390/cf_z16/ |
H A D | crypto6.json | 3 "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 D | crypto6.json | 3 "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/arm64/boot/dts/cavium/ |
H A D | thunder-88xx.dtsi | 65 cpu@0 { 66 device_type = "cpu"; 71 cpu@1 { 72 device_type = "cpu"; 77 cpu@2 { 78 device_type = "cpu"; 83 cpu@3 { 84 device_type = "cpu"; 89 cpu@4 { 90 device_type = "cpu"; [all …]
|
/linux/arch/arm64/kernel/ |
H A D | smp.c | 23 #include <linux/cpu.h> 42 #include <asm/cpu.h> 90 static void ipi_setup(int cpu); 93 static void ipi_teardown(int cpu); 94 static int op_cpu_kill(unsigned int cpu); 96 static inline int op_cpu_kill(unsigned int cpu) in op_cpu_kill() argument 104 * Boot a secondary CPU, and assign it the specified idle task. 105 * This also gives us the initial stack to use for this CPU. 107 static int boot_secondary(unsigned int cpu, struct task_struct *idle) in boot_secondary() argument 109 const struct cpu_operations *ops = get_cpu_ops(cpu); in boot_secondary() [all …]
|
/linux/drivers/base/ |
H A D | arch_topology.c | 3 * Arch specific cpu topology information 12 #include <linux/cpu.h> 66 int cpu; in topology_set_scale_freq_source() local 77 for_each_cpu(cpu, cpus) { in topology_set_scale_freq_source() 78 sfd = rcu_dereference(*per_cpu_ptr(&sft_data, cpu)); in topology_set_scale_freq_source() 82 rcu_assign_pointer(per_cpu(sft_data, cpu), data); in topology_set_scale_freq_source() 83 cpumask_set_cpu(cpu, &scale_freq_counters_mask); in topology_set_scale_freq_source() 97 int cpu; in topology_clear_scale_freq_source() local 101 for_each_cpu(cpu, cpus) { in topology_clear_scale_freq_source() 102 sfd = rcu_dereference(*per_cpu_ptr(&sft_data, cpu)); in topology_clear_scale_freq_source() [all …]
|
H A D | cacheinfo.c | 5 * Based on arch/x86/kernel/cpu/intel_cacheinfo.c 14 #include <linux/cpu.h> 23 /* pointer to per cpu cacheinfo */ 25 #define ci_cacheinfo(cpu) (&per_cpu(ci_cpu_cacheinfo, cpu)) argument 26 #define cache_leaves(cpu) (ci_cacheinfo(cpu)->num_leaves) argument 27 #define per_cpu_cacheinfo(cpu) (ci_cacheinfo(cpu)->info_list) argument 28 #define per_cpu_cacheinfo_idx(cpu, idx) \ argument 29 (per_cpu_cacheinfo(cpu) + (idx)) 34 struct cpu_cacheinfo *get_cpu_cacheinfo(unsigned int cpu) in get_cpu_cacheinfo() argument 36 return ci_cacheinfo(cpu); in get_cpu_cacheinfo() [all …]
|
/linux/arch/arm/mach-tegra/ |
H A D | platsmp.c | 36 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 D | cpu-on-off-test.sh | 27 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/arch/powerpc/kernel/ |
H A D | smp.c | 29 #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 D | crypto.json | 3 "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 D | crypto.json | 3 "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 D | crypto.json | 3 "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 D | crypto.json | 3 "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 D | crypto.json | 3 "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/include/linux/ |
H A D | cpumask.h | 7 * set of CPUs in a system, one bit position per CPU number. In general, 82 * cpu_possible_mask- has bit 'cpu' set iff cpu is populatable 83 * cpu_present_mask - has bit 'cpu' set iff cpu is populated 84 * cpu_enabled_mask - has bit 'cpu' set iff cpu can be brought online 85 * cpu_online_mask - has bit 'cpu' set iff cpu available to scheduler 86 * cpu_active_mask - has bit 'cpu' set iff cpu available to migration 90 * The cpu_possible_mask is fixed at boot time, as the set of CPU IDs 106 * assumption that their single CPU is online. The UP 112 * only one CPU. 132 static __always_inline void cpu_max_bits_warn(unsigned int cpu, unsigned int bits) in cpu_max_bits_warn() argument [all …]
|
/linux/arch/arm64/boot/dts/amd/ |
H A D | elba-16core.dtsi | 11 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/kernel/ |
H A D | cpu.c | 1 /* CPU control. 17 #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, [all …]
|
/linux/arch/arm/mach-bcm/ |
H A D | platsmp-brcmstb.c | 3 * 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/x86/xen/ |
H A D | smp.c | 3 #include <linux/cpu.h> 32 void xen_smp_intr_free(unsigned int cpu) in xen_smp_intr_free() argument 34 kfree(per_cpu(xen_resched_irq, cpu).name); in xen_smp_intr_free() 35 per_cpu(xen_resched_irq, cpu).name = NULL; in xen_smp_intr_free() 36 if (per_cpu(xen_resched_irq, cpu).irq >= 0) { in xen_smp_intr_free() 37 unbind_from_irqhandler(per_cpu(xen_resched_irq, cpu).irq, NULL); in xen_smp_intr_free() 38 per_cpu(xen_resched_irq, cpu).irq = -1; in xen_smp_intr_free() 40 kfree(per_cpu(xen_callfunc_irq, cpu).name); in xen_smp_intr_free() 41 per_cpu(xen_callfunc_irq, cpu).name = NULL; in xen_smp_intr_free() 42 if (per_cpu(xen_callfunc_irq, cpu).irq >= 0) { in xen_smp_intr_free() [all …]
|
/linux/arch/arm/kernel/ |
H A D | smp.c | 20 #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(sizeof(*cpu_vtable[cpu]), GFP_KERNEL); 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 …]
|
/linux/arch/loongarch/kernel/ |
H A D | smp.c | 12 #include <linux/cpu.h> 29 #include <asm/cpu.h> 45 /* Representing the threads (siblings) of each logical CPU */ 49 /* Representing the core map of multi-core chips of each logical CPU */ 57 * A logcal cpu mask containing only one VPE per core to 81 unsigned int cpu, i; in show_ipi_list() local 85 for_each_online_cpu(cpu) in show_ipi_list() 86 seq_put_decimal_ull_width(p, " ", per_cpu(irq_stat, cpu).ipi_irqs[i], 10); in show_ipi_list() 91 static inline void set_cpu_core_map(int cpu) in set_cpu_core_map() argument 95 cpumask_set_cpu(cpu, &cpu_core_setup_map); in set_cpu_core_map() [all …]
|
/linux/Documentation/ABI/testing/ |
H A D | sysfs-devices-system-cpu | 1 What: /sys/devices/system/cpu/ 5 A collection of both global and individual CPU attributes 7 Individual CPU attributes are contained in subdirectories 8 named by the kernel's logical CPU number, e.g.: 10 /sys/devices/system/cpu/cpuX/ 12 What: /sys/devices/system/cpu/kernel_max 13 /sys/devices/system/cpu/offline 14 /sys/devices/system/cpu/online 15 /sys/devices/system/cpu/possible 16 /sys/devices/system/cpu/present [all …]
|