/Linux-v5.15/arch/arm/boot/dts/ |
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-v5.15/tools/testing/selftests/cpu-hotplug/ |
D | cpu-on-off-test.sh | 26 if ! ls $SYSFS/devices/system/cpu/cpu* > /dev/null 2>&1; then 27 echo $msg cpu hotplug is not supported >&2 31 echo "CPU online/offline summary:" 32 online_cpus=`cat $SYSFS/devices/system/cpu/online` 36 echo "$msg: since there is only one cpu: $online_cpus" 40 present_cpus=`cat $SYSFS/devices/system/cpu/present` 46 offline_cpus=`cat $SYSFS/devices/system/cpu/offline` 62 for cpu in $SYSFS/devices/system/cpu/cpu*; do 63 if [ -f $cpu/online ] && grep -q $state $cpu/online; then 64 echo ${cpu##/*/cpu} [all …]
|
/Linux-v5.15/drivers/cpufreq/ |
D | intel_pstate.c | 20 #include <linux/cpu.h> 95 * to account for cpu idle period 131 * Stores the per cpu model P state limits and current P state. 188 * struct cpudata - Per CPU instance data storage 189 * @cpu: CPU number for this instance data 195 * @pstate: Stores P state limits for this CPU 196 * @vid: Stores VID limits for this CPU 219 * @sched_flags: Store scheduler flags for possible cross CPU update 223 * This structure stores per CPU instance data for all CPUs. 226 int cpu; member [all …]
|
/Linux-v5.15/Documentation/devicetree/bindings/cpu/ |
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-v5.15/arch/arm/mach-meson/ |
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() 114 static void meson_smp_begin_secondary_boot(unsigned int cpu) in meson_smp_begin_secondary_boot() argument 117 * Set the entry point before powering on the CPU through the SCU. This in meson_smp_begin_secondary_boot() 118 * is needed if the CPU is in "warm" state (= after rebooting the in meson_smp_begin_secondary_boot() 119 * system without power-cycling, or when taking the CPU offline and in meson_smp_begin_secondary_boot() 123 sram_base + MESON_SMP_SRAM_CPU_CTRL_ADDR_REG(cpu)); in meson_smp_begin_secondary_boot() [all …]
|
/Linux-v5.15/arch/arm64/boot/dts/cavium/ |
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-v5.15/tools/perf/pmu-events/arch/s390/cf_zec12/ |
D | crypto.json | 3 "Unit": "CPU-M-CF", 7 "PublicDescription": "Total number of the PRNG functions issued by the CPU" 10 "Unit": "CPU-M-CF", 14 …Description": "Total number of CPU cycles when the DEA/AES coprocessor is busy performing PRNG fun… 17 "Unit": "CPU-M-CF", 21 …s that are issued by the CPU and are blocked because the DEA/AES coprocessor is busy performing a … 24 "Unit": "CPU-M-CF", 28 …r of CPU cycles blocked for the PRNG functions issued by the CPU because the DEA/AES coprocessor i… 31 "Unit": "CPU-M-CF", 35 "PublicDescription": "Total number of SHA functions issued by the CPU" [all …]
|
/Linux-v5.15/tools/perf/pmu-events/arch/s390/cf_z10/ |
D | crypto.json | 3 "Unit": "CPU-M-CF", 7 "PublicDescription": "Total number of the PRNG functions issued by the CPU" 10 "Unit": "CPU-M-CF", 14 …Description": "Total number of CPU cycles when the DEA/AES coprocessor is busy performing PRNG fun… 17 "Unit": "CPU-M-CF", 21 …s that are issued by the CPU and are blocked because the DEA/AES coprocessor is busy performing a … 24 "Unit": "CPU-M-CF", 28 …r of CPU cycles blocked for the PRNG functions issued by the CPU because the DEA/AES coprocessor i… 31 "Unit": "CPU-M-CF", 35 "PublicDescription": "Total number of SHA functions issued by the CPU" [all …]
|
/Linux-v5.15/tools/perf/pmu-events/arch/s390/cf_z13/ |
D | crypto.json | 3 "Unit": "CPU-M-CF", 7 "PublicDescription": "Total number of the PRNG functions issued by the CPU" 10 "Unit": "CPU-M-CF", 14 …Description": "Total number of CPU cycles when the DEA/AES coprocessor is busy performing PRNG fun… 17 "Unit": "CPU-M-CF", 21 …s that are issued by the CPU and are blocked because the DEA/AES coprocessor is busy performing a … 24 "Unit": "CPU-M-CF", 28 …r of CPU cycles blocked for the PRNG functions issued by the CPU because the DEA/AES coprocessor i… 31 "Unit": "CPU-M-CF", 35 "PublicDescription": "Total number of SHA functions issued by the CPU" [all …]
|
/Linux-v5.15/tools/perf/pmu-events/arch/s390/cf_z14/ |
D | crypto.json | 3 "Unit": "CPU-M-CF", 7 "PublicDescription": "Total number of the PRNG functions issued by the CPU" 10 "Unit": "CPU-M-CF", 14 …Description": "Total number of CPU cycles when the DEA/AES coprocessor is busy performing PRNG fun… 17 "Unit": "CPU-M-CF", 21 …s that are issued by the CPU and are blocked because the DEA/AES coprocessor is busy performing a … 24 "Unit": "CPU-M-CF", 28 …r of CPU cycles blocked for the PRNG functions issued by the CPU because the DEA/AES coprocessor i… 31 "Unit": "CPU-M-CF", 35 "PublicDescription": "Total number of SHA functions issued by the CPU" [all …]
|
/Linux-v5.15/tools/perf/pmu-events/arch/s390/cf_z15/ |
D | crypto.json | 3 "Unit": "CPU-M-CF", 7 "PublicDescription": "Total number of the PRNG functions issued by the CPU" 10 "Unit": "CPU-M-CF", 14 …Description": "Total number of CPU cycles when the DEA/AES coprocessor is busy performing PRNG fun… 17 "Unit": "CPU-M-CF", 21 …s that are issued by the CPU and are blocked because the DEA/AES coprocessor is busy performing a … 24 "Unit": "CPU-M-CF", 28 …r of CPU cycles blocked for the PRNG functions issued by the CPU because the DEA/AES coprocessor i… 31 "Unit": "CPU-M-CF", 35 "PublicDescription": "Total number of SHA functions issued by the CPU" [all …]
|
/Linux-v5.15/tools/perf/pmu-events/arch/s390/cf_z196/ |
D | crypto.json | 3 "Unit": "CPU-M-CF", 7 "PublicDescription": "Total number of the PRNG functions issued by the CPU" 10 "Unit": "CPU-M-CF", 14 …Description": "Total number of CPU cycles when the DEA/AES coprocessor is busy performing PRNG fun… 17 "Unit": "CPU-M-CF", 21 …s that are issued by the CPU and are blocked because the DEA/AES coprocessor is busy performing a … 24 "Unit": "CPU-M-CF", 28 …r of CPU cycles blocked for the PRNG functions issued by the CPU because the DEA/AES coprocessor i… 31 "Unit": "CPU-M-CF", 35 "PublicDescription": "Total number of SHA functions issued by the CPU" [all …]
|
/Linux-v5.15/arch/arm/mach-tegra/ |
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-v5.15/tools/power/x86/intel-speed-select/ |
D | isst-core.c | 9 int isst_write_pm_config(int cpu, int cp_state) in isst_write_pm_config() argument 19 ret = isst_send_mbox_command(cpu, WRITE_PM_CONFIG, PM_FEATURE, 0, req, in isst_write_pm_config() 24 debug_printf("cpu:%d WRITE_PM_CONFIG resp:%x\n", cpu, resp); in isst_write_pm_config() 29 int isst_read_pm_config(int cpu, int *cp_state, int *cp_cap) in isst_read_pm_config() argument 34 ret = isst_send_mbox_command(cpu, READ_PM_CONFIG, PM_FEATURE, 0, 0, in isst_read_pm_config() 39 debug_printf("cpu:%d READ_PM_CONFIG resp:%x\n", cpu, resp); in isst_read_pm_config() 47 int isst_get_ctdp_levels(int cpu, struct isst_pkg_ctdp *pkg_dev) in isst_get_ctdp_levels() argument 52 ret = isst_send_mbox_command(cpu, CONFIG_TDP, in isst_get_ctdp_levels() 63 debug_printf("cpu:%d CONFIG_TDP_GET_LEVELS_INFO resp:%x\n", cpu, resp); in isst_get_ctdp_levels() 74 int isst_get_ctdp_control(int cpu, int config_index, in isst_get_ctdp_control() argument [all …]
|
/Linux-v5.15/arch/x86/xen/ |
D | smp.c | 3 #include <linux/cpu.h> 33 void xen_smp_intr_free(unsigned int cpu) in xen_smp_intr_free() argument 35 if (per_cpu(xen_resched_irq, cpu).irq >= 0) { in xen_smp_intr_free() 36 unbind_from_irqhandler(per_cpu(xen_resched_irq, cpu).irq, NULL); in xen_smp_intr_free() 37 per_cpu(xen_resched_irq, cpu).irq = -1; in xen_smp_intr_free() 38 kfree(per_cpu(xen_resched_irq, cpu).name); in xen_smp_intr_free() 39 per_cpu(xen_resched_irq, cpu).name = NULL; in xen_smp_intr_free() 41 if (per_cpu(xen_callfunc_irq, cpu).irq >= 0) { in xen_smp_intr_free() 42 unbind_from_irqhandler(per_cpu(xen_callfunc_irq, cpu).irq, NULL); in xen_smp_intr_free() 43 per_cpu(xen_callfunc_irq, cpu).irq = -1; in xen_smp_intr_free() [all …]
|
/Linux-v5.15/kernel/ |
D | smpboot.c | 3 * Common SMP CPU bringup/teardown functions 5 #include <linux/cpu.h> 30 struct task_struct *idle_thread_get(unsigned int cpu) in idle_thread_get() argument 32 struct task_struct *tsk = per_cpu(idle_threads, cpu); in idle_thread_get() 45 * idle_init - Initialize the idle thread for a cpu 46 * @cpu: The cpu for which the idle thread should be initialized 50 static __always_inline void idle_init(unsigned int cpu) in idle_init() argument 52 struct task_struct *tsk = per_cpu(idle_threads, cpu); in idle_init() 55 tsk = fork_idle(cpu); in idle_init() 57 pr_err("SMP: fork_idle() failed for CPU %u\n", cpu); in idle_init() [all …]
|
/Linux-v5.15/arch/arm64/kernel/ |
D | smp.c | 23 #include <linux/cpu.h> 40 #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-v5.15/Documentation/ABI/testing/ |
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/cpu#/ 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 …]
|
/Linux-v5.15/drivers/base/ |
D | arch_topology.c | 3 * Arch specific cpu topology information 10 #include <linux/cpu.h> 61 int cpu; in topology_set_scale_freq_source() local 72 for_each_cpu(cpu, cpus) { in topology_set_scale_freq_source() 73 sfd = rcu_dereference(*per_cpu_ptr(&sft_data, cpu)); in topology_set_scale_freq_source() 77 rcu_assign_pointer(per_cpu(sft_data, cpu), data); in topology_set_scale_freq_source() 78 cpumask_set_cpu(cpu, &scale_freq_counters_mask); in topology_set_scale_freq_source() 92 int cpu; in topology_clear_scale_freq_source() local 96 for_each_cpu(cpu, cpus) { in topology_clear_scale_freq_source() 97 sfd = rcu_dereference(*per_cpu_ptr(&sft_data, cpu)); in topology_clear_scale_freq_source() [all …]
|
/Linux-v5.15/arch/powerpc/kernel/ |
D | smp.c | 29 #include <linux/cpu.h> 73 /* State of each CPU during hotplug phases */ 123 * On big-cores system, thread_group_l1_cache_map for each CPU corresponds to 129 * On some big-cores system, thread_group_l2_cache_map for each CPU 136 * On P10, thread_group_l3_cache_map for each CPU is equal to the 150 * Returns 1 if the specified cpu should be brought up during boot. 284 void smp_muxed_ipi_set_message(int cpu, int msg) in smp_muxed_ipi_set_message() argument 286 struct cpu_messages *info = &per_cpu(ipi_message, cpu); in smp_muxed_ipi_set_message() 296 void smp_muxed_ipi_message_pass(int cpu, int msg) in smp_muxed_ipi_message_pass() argument 298 smp_muxed_ipi_set_message(cpu, msg); in smp_muxed_ipi_message_pass() [all …]
|
D | watchdog.c | 16 #include <linux/cpu.h> 35 * The powerpc watchdog ensures that each CPU is able to service timers. 36 * The watchdog sets up a simple timer on each CPU to run once per timer 37 * period, and updates a per-cpu timestamp and a "pending" cpumask. This is 43 * The soft-NMI checker can detect lockups on the local CPU. When interrupts 50 * The soft-NMI checker will compare the heartbeat timestamp for this CPU 61 * CPU clears their pending bit in their heartbeat timer. When the bitmask 62 * becomes empty, the last CPU to clear its pending bit updates a global 65 * In the heartbeat timer, if any CPU notices that the global timestamp has 67 * means the CPU(s) with their bit still set in the pending mask have had [all …]
|
/Linux-v5.15/drivers/xen/ |
D | cpu_hotplug.c | 10 #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-v5.15/arch/arm/kernel/ |
D | smp.c | 20 #include <linux/cpu.h> 35 #include <asm/cpu.h> 87 static void ipi_setup(int cpu); 109 static int secondary_biglittle_prepare(unsigned int cpu) in secondary_biglittle_prepare() argument 111 if (!cpu_vtable[cpu]) in secondary_biglittle_prepare() 112 cpu_vtable[cpu] = kzalloc(sizeof(*cpu_vtable[cpu]), GFP_KERNEL); in secondary_biglittle_prepare() 114 return cpu_vtable[cpu] ? 0 : -ENOMEM; in secondary_biglittle_prepare() 122 static int secondary_biglittle_prepare(unsigned int cpu) in secondary_biglittle_prepare() argument 132 int __cpu_up(unsigned int cpu, struct task_struct *idle) in __cpu_up() argument 139 ret = secondary_biglittle_prepare(cpu); in __cpu_up() [all …]
|
/Linux-v5.15/arch/arc/kernel/ |
D | setup.c | 15 #include <linux/cpu.h> 70 static void read_decode_ccm_bcr(struct cpuinfo_arc *cpu) in read_decode_ccm_bcr() argument 78 cpu->iccm.sz = 4096 << iccm.sz; /* 8K to 512K */ in read_decode_ccm_bcr() 79 cpu->iccm.base_addr = iccm.base << 16; in read_decode_ccm_bcr() 85 cpu->dccm.sz = 2048 << dccm.sz; /* 2K to 256K */ in read_decode_ccm_bcr() 88 cpu->dccm.base_addr = base & ~0xF; in read_decode_ccm_bcr() 97 cpu->iccm.sz = 256 << iccm.sz00; /* 512B to 16M */ in read_decode_ccm_bcr() 99 cpu->iccm.sz <<= iccm.sz01; in read_decode_ccm_bcr() 102 cpu->iccm.base_addr = region & 0xF0000000; in read_decode_ccm_bcr() 107 cpu->dccm.sz = 256 << dccm.sz0; in read_decode_ccm_bcr() [all …]
|
/Linux-v5.15/arch/arm/mach-bcm/ |
D | platsmp-brcmstb.c | 2 * Broadcom STB CPU SMP and hotplug support for ARM 60 * We must quiesce a dying CPU before it can be killed by the boot CPU. Because 67 static int per_cpu_sw_state_rd(u32 cpu) in per_cpu_sw_state_rd() argument 69 sync_cache_r(SHIFT_PERCPU_PTR(&per_cpu_sw_state, per_cpu_offset(cpu))); in per_cpu_sw_state_rd() 70 return per_cpu(per_cpu_sw_state, cpu); in per_cpu_sw_state_rd() 73 static void per_cpu_sw_state_wr(u32 cpu, int val) in per_cpu_sw_state_wr() argument 76 per_cpu(per_cpu_sw_state, cpu) = val; in per_cpu_sw_state_wr() 77 sync_cache_w(SHIFT_PERCPU_PTR(&per_cpu_sw_state, per_cpu_offset(cpu))); in per_cpu_sw_state_wr() 80 static inline void per_cpu_sw_state_wr(u32 cpu, int val) { } in per_cpu_sw_state_wr() argument 83 static void __iomem *pwr_ctrl_get_base(u32 cpu) in pwr_ctrl_get_base() argument [all …]
|