| /Linux-v5.4/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.4/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.4/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.4/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.4/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.4/arch/arm64/kernel/ |
| D | smp.c | 23 #include <linux/cpu.h> 38 #include <asm/cpu.h> 79 static int op_cpu_kill(unsigned int cpu); 81 static inline int op_cpu_kill(unsigned int cpu) in op_cpu_kill() argument 89 * Boot a secondary CPU, and assign it the specified idle task. 90 * This also gives us the initial stack to use for this CPU. 92 static int boot_secondary(unsigned int cpu, struct task_struct *idle) in boot_secondary() argument 94 if (cpu_ops[cpu]->cpu_boot) in boot_secondary() 95 return cpu_ops[cpu]->cpu_boot(cpu); in boot_secondary() 102 int __cpu_up(unsigned int cpu, struct task_struct *idle) in __cpu_up() argument [all …]
|
| /Linux-v5.4/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.4/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.4/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.4/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.4/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.4/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.4/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.4/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.4/tools/power/x86/intel-speed-select/ |
| D | isst-core.c | 9 int isst_get_ctdp_levels(int cpu, struct isst_pkg_ctdp *pkg_dev) in isst_get_ctdp_levels() argument 14 ret = isst_send_mbox_command(cpu, CONFIG_TDP, in isst_get_ctdp_levels() 19 debug_printf("cpu:%d CONFIG_TDP_GET_LEVELS_INFO resp:%x\n", cpu, resp); in isst_get_ctdp_levels() 30 int isst_get_ctdp_control(int cpu, int config_index, in isst_get_ctdp_control() argument 36 ret = isst_send_mbox_command(cpu, CONFIG_TDP, in isst_get_ctdp_control() 48 …"cpu:%d CONFIG_TDP_GET_TDP_CONTROL resp:%x fact_support:%d pbf_support: %d fact_enabled:%d pbf_ena… in isst_get_ctdp_control() 49 cpu, resp, ctdp_level->fact_support, ctdp_level->pbf_support, in isst_get_ctdp_control() 55 int isst_get_tdp_info(int cpu, int config_index, in isst_get_tdp_info() argument 61 ret = isst_send_mbox_command(cpu, CONFIG_TDP, CONFIG_TDP_GET_TDP_INFO, in isst_get_tdp_info() 70 "cpu:%d ctdp:%d CONFIG_TDP_GET_TDP_INFO resp:%x tdp_ratio:%d pkg_tdp:%d\n", in isst_get_tdp_info() [all …]
|
| /Linux-v5.4/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.4/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() 36 init_idle(tsk, cpu); in idle_thread_get() 46 * idle_init - Initialize the idle thread for a cpu 47 * @cpu: The cpu for which the idle thread should be initialized 51 static inline void idle_init(unsigned int cpu) in idle_init() argument 53 struct task_struct *tsk = per_cpu(idle_threads, cpu); in idle_init() 56 tsk = fork_idle(cpu); in idle_init() [all …]
|
| /Linux-v5.4/drivers/cpufreq/ |
| D | intel_pstate.c | 20 #include <linux/cpu.h> 104 * to account for cpu idle period 139 * Stores the per cpu model P state limits and current P state. 194 * struct cpudata - Per CPU instance data storage 195 * @cpu: CPU number for this instance data 201 * @pstate: Stores P state limits for this CPU 202 * @vid: Stores VID limits for this CPU 206 * calculate CPU busy. 223 * @epp_saved: Saved EPP/EPB during system suspend or CPU offline 228 * @sched_flags: Store scheduler flags for possible cross CPU update [all …]
|
| D | cppc_cpufreq.c | 16 #include <linux/cpu.h> 33 * These structs contain information parsed from per CPU 35 * e.g. For each CPU the highest, lowest supported 61 static unsigned int cppc_cpufreq_perf_to_khz(struct cppc_cpudata *cpu, 140 static unsigned int cppc_cpufreq_perf_to_khz(struct cppc_cpudata *cpu, in cppc_cpufreq_perf_to_khz() argument 144 struct cppc_perf_caps *caps = &cpu->perf_caps; in cppc_cpufreq_perf_to_khz() 159 div = cpu->perf_caps.highest_perf; in cppc_cpufreq_perf_to_khz() 164 static unsigned int cppc_cpufreq_khz_to_perf(struct cppc_cpudata *cpu, in cppc_cpufreq_khz_to_perf() argument 168 struct cppc_perf_caps *caps = &cpu->perf_caps; in cppc_cpufreq_khz_to_perf() 182 mul = cpu->perf_caps.highest_perf; in cppc_cpufreq_khz_to_perf() [all …]
|
| /Linux-v5.4/drivers/base/ |
| D | arch_topology.c | 3 * Arch specific cpu topology information 10 #include <linux/cpu.h> 40 void topology_set_cpu_scale(unsigned int cpu, unsigned long capacity) in topology_set_cpu_scale() argument 42 per_cpu(cpu_scale, cpu) = capacity; in topology_set_cpu_scale() 49 struct cpu *cpu = container_of(dev, struct cpu, dev); in cpu_capacity_show() local 51 return sprintf(buf, "%lu\n", topology_get_cpu_scale(cpu->dev.id)); in cpu_capacity_show() 62 struct device *cpu; in register_cpu_capacity_sysctl() local 65 cpu = get_cpu_device(i); in register_cpu_capacity_sysctl() 66 if (!cpu) { in register_cpu_capacity_sysctl() 67 pr_err("%s: too early to get CPU%d device!\n", in register_cpu_capacity_sysctl() [all …]
|
| /Linux-v5.4/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.4/arch/powerpc/kernel/ |
| D | smp.c | 29 #include <linux/cpu.h> 71 /* State of each CPU during hotplug phases */ 98 * On big-cores system, cpu_l1_cache_map for each CPU corresponds to 112 * Returns 1 if the specified cpu should be brought up during boot. 246 void smp_muxed_ipi_set_message(int cpu, int msg) in smp_muxed_ipi_set_message() argument 248 struct cpu_messages *info = &per_cpu(ipi_message, cpu); in smp_muxed_ipi_set_message() 258 void smp_muxed_ipi_message_pass(int cpu, int msg) in smp_muxed_ipi_message_pass() argument 260 smp_muxed_ipi_set_message(cpu, msg); in smp_muxed_ipi_message_pass() 266 smp_ops->cause_ipi(cpu); in smp_muxed_ipi_message_pass() 320 static inline void do_message_pass(int cpu, int msg) in do_message_pass() argument [all …]
|
| D | watchdog.c | 16 #include <linux/cpu.h> 32 * The powerpc watchdog ensures that each CPU is able to service timers. 33 * The watchdog sets up a simple timer on each CPU to run once per timer 34 * period, and updates a per-cpu timestamp and a "pending" cpumask. This is 40 * The soft-NMI checker can detect lockups on the local CPU. When interrupts 47 * The soft-NMI checker will compare the heartbeat timestamp for this CPU 58 * CPU clears their pending bit in their heartbeat timer. When the bitmask 59 * becomes empty, the last CPU to clear its pending bit updates a global 62 * In the heartbeat timer, if any CPU notices that the global timestamp has 64 * means the CPU(s) with their bit still set in the pending mask have had [all …]
|
| /Linux-v5.4/include/linux/ |
| D | cpumask.h | 7 * set of CPU's in a system, one bit position per CPU number. In general, 54 * cpu_possible_mask- has bit 'cpu' set iff cpu is populatable 55 * cpu_present_mask - has bit 'cpu' set iff cpu is populated 56 * cpu_online_mask - has bit 'cpu' set iff cpu available to scheduler 57 * cpu_active_mask - has bit 'cpu' set iff cpu available to migration 61 * The cpu_possible_mask is fixed at boot time, as the set of CPU id's 81 * assumption that their single CPU is online. The UP 87 * only one CPU. 107 * concurrent CPU hotplug operations unless invoked from a cpuhp_lock held 117 #define cpu_online(cpu) cpumask_test_cpu((cpu), cpu_online_mask) argument [all …]
|
| /Linux-v5.4/arch/arm/kernel/ |
| D | smp.c | 20 #include <linux/cpu.h> 34 #include <asm/cpu.h> 102 static int secondary_biglittle_prepare(unsigned int cpu) in secondary_biglittle_prepare() argument 104 if (!cpu_vtable[cpu]) in secondary_biglittle_prepare() 105 cpu_vtable[cpu] = kzalloc(sizeof(*cpu_vtable[cpu]), GFP_KERNEL); in secondary_biglittle_prepare() 107 return cpu_vtable[cpu] ? 0 : -ENOMEM; in secondary_biglittle_prepare() 115 static int secondary_biglittle_prepare(unsigned int cpu) in secondary_biglittle_prepare() argument 125 int __cpu_up(unsigned int cpu, struct task_struct *idle) in __cpu_up() argument 132 ret = secondary_biglittle_prepare(cpu); in __cpu_up() 152 * Now bring the CPU into our world. in __cpu_up() [all …]
|