/Linux-v5.15/kernel/events/ |
D | hw_breakpoint.c | 1 // SPDX-License-Identifier: GPL-2.0+ 15 * HW_breakpoint: a unified kernel/user-space hardware breakpoint facility, 16 * using the CPU's debug registers. 17 * This file contains the arch-independent routines. 32 #include <linux/cpu.h> 41 /* Number of pinned cpu breakpoints in a cpu */ 45 /* Number of non-pinned cpu/task breakpoints in a cpu */ 52 static struct bp_cpuinfo *get_bp_info(int cpu, enum bp_type_idx type) in get_bp_info() argument 54 return per_cpu_ptr(bp_cpuinfo + type, cpu); in get_bp_info() 62 /* Gather the number of total pinned and un-pinned bp in a cpuset */ [all …]
|
/Linux-v5.15/drivers/acpi/ |
D | pptt.c | 1 // SPDX-License-Identifier: GPL-2.0 3 * pptt.c - parsing of Processor Properties Topology Table (PPTT) 33 if (pptt_ref + sizeof(struct acpi_subtable_header) > table_hdr->length) in fetch_pptt_subtable() 38 if (entry->length == 0) in fetch_pptt_subtable() 41 if (pptt_ref + entry->length > table_hdr->length) in fetch_pptt_subtable() 65 if (resource >= node->number_of_priv_resources) in acpi_get_pptt_resource() 74 static inline bool acpi_pptt_match_type(int table_type, int type) in acpi_pptt_match_type() argument 76 return ((table_type & ACPI_PPTT_MASK_CACHE_TYPE) == type || in acpi_pptt_match_type() 77 table_type & ACPI_PPTT_CACHE_TYPE_UNIFIED & type); in acpi_pptt_match_type() 81 * acpi_pptt_walk_cache() - Attempt to find the requested acpi_pptt_cache [all …]
|
/Linux-v5.15/arch/arm/boot/dts/ |
D | exynos5422-odroidxu3-common.dtsi | 1 // SPDX-License-Identifier: GPL-2.0 3 * Hardkernel Odroid XU3/XU3-Lite/XU4 boards common device tree source 12 #include <dt-bindings/input/input.h> 13 #include "exynos5422-odroid-core.dtsi" 16 gpio-keys { 17 compatible = "gpio-keys"; 18 pinctrl-names = "default"; 19 pinctrl-0 = <&power_key>; 21 power-key { 32 debounce-interval = <0>; [all …]
|
D | exynos5422-odroidhc1.dts | 1 // SPDX-License-Identifier: GPL-2.0 10 /dts-v1/; 11 #include "exynos5422-odroid-core.dtsi" 15 compatible = "hardkernel,odroid-hc1", "samsung,exynos5800", \ 18 led-controller { 19 compatible = "pwm-leds"; 21 led-1 { 24 pwm-names = "pwm2"; 25 max-brightness = <255>; 26 linux,default-trigger = "heartbeat"; [all …]
|
/Linux-v5.15/drivers/bus/ |
D | mips_cdmm.c | 4 * Copyright (C) 2014-2015 Imagination Technologies Ltd. 13 #include <linux/cpu.h> 53 for (; table->type; ++table) { in mips_cdmm_lookup() 54 ret = (dev->type == table->type); in mips_cdmm_lookup() 67 return mips_cdmm_lookup(cdrv->id_table, cdev) != NULL; in mips_cdmm_match() 75 retval = add_uevent_var(env, "CDMM_CPU=%u", cdev->cpu); in mips_cdmm_uevent() 79 retval = add_uevent_var(env, "CDMM_TYPE=0x%02x", cdev->type); in mips_cdmm_uevent() 83 retval = add_uevent_var(env, "CDMM_REV=%u", cdev->rev); in mips_cdmm_uevent() 87 retval = add_uevent_var(env, "MODALIAS=mipscdmm:t%02X", cdev->type); in mips_cdmm_uevent() 102 CDMM_ATTR(cpu, "%u\n", dev->cpu); [all …]
|
D | arm-cci.c | 17 #include <linux/arm-cci.h> 49 {.compatible = "arm,cci-400", .data = CCI400_PORTS_DATA }, 52 { .compatible = "arm,cci-500", }, 53 { .compatible = "arm,cci-550", }, 59 OF_DEV_AUXDATA("arm,cci-400-pmu", 0, NULL, &cci_ctrl_base), 60 OF_DEV_AUXDATA("arm,cci-400-pmu,r0", 0, NULL, &cci_ctrl_base), 61 OF_DEV_AUXDATA("arm,cci-400-pmu,r1", 0, NULL, &cci_ctrl_base), 62 OF_DEV_AUXDATA("arm,cci-500-pmu,r0", 0, NULL, &cci_ctrl_base), 63 OF_DEV_AUXDATA("arm,cci-550-pmu,r0", 0, NULL, &cci_ctrl_base), 67 #define DRIVER_NAME "ARM-CCI" [all …]
|
/Linux-v5.15/drivers/base/ |
D | cacheinfo.c | 1 // SPDX-License-Identifier: GPL-2.0 3 * cacheinfo support - processor cache information via sysfs 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 29 struct cpu_cacheinfo *get_cpu_cacheinfo(unsigned int cpu) in get_cpu_cacheinfo() argument 31 return ci_cacheinfo(cpu); in get_cpu_cacheinfo() [all …]
|
/Linux-v5.15/tools/perf/util/ |
D | stat-shadow.c | 1 // SPDX-License-Identifier: GPL-2.0 17 * AGGR_GLOBAL: Use CPU 0 18 * AGGR_SOCKET: Use first CPU of socket 19 * AGGR_DIE: Use first CPU of die 20 * AGGR_CORE: Use first CPU of core 21 * AGGR_NONE: Use matching CPU 31 enum stat_type type; member 33 int cpu; member 48 if (a->cpu != b->cpu) in saved_value_cmp() 49 return a->cpu - b->cpu; in saved_value_cmp() [all …]
|
/Linux-v5.15/arch/arm64/boot/dts/exynos/ |
D | exynos7-trip-points.dtsi | 1 // SPDX-License-Identifier: GPL-2.0 10 cpu-alert-0 { 13 type = "passive"; 15 cpu-alert-1 { 18 type = "passive"; 20 cpu-alert-2 { 23 type = "passive"; 25 cpu-alert-3 { 28 type = "passive"; 30 cpu-alert-4 { [all …]
|
/Linux-v5.15/arch/ia64/kernel/ |
D | topology.c | 9 * Populate cpu entries in sysfs for non-numa systems as well 10 * Intel Corporation - Ashok Raj 12 * Populate cpu cache entries in sysfs for cpu cache info 15 #include <linux/cpu.h> 27 #include <asm/cpu.h> 34 if (cpu_data(num)->socket_id == -1) in arch_fix_phys_package_id() 35 cpu_data(num)->socket_id = slot; in arch_fix_phys_package_id() 45 * If CPEI can be re-targeted or if this is not in arch_register_cpu() 49 sysfs_cpus[num].cpu.hotpluggable = 1; in arch_register_cpu() 51 return register_cpu(&sysfs_cpus[num].cpu, num); in arch_register_cpu() [all …]
|
/Linux-v5.15/include/linux/ |
D | percpu-defs.h | 1 /* SPDX-License-Identifier: GPL-2.0-only */ 3 * linux/percpu-defs.h - basic definitions for percpu areas 40 * Base implementations of per-CPU variable declarations and definitions, where 86 #define DECLARE_PER_CPU_SECTION(type, name, sec) \ argument 88 extern __PCPU_ATTRS(sec) __typeof__(type) name 90 #define DEFINE_PER_CPU_SECTION(type, name, sec) \ argument 94 extern __PCPU_ATTRS(sec) __typeof__(type) name; \ 95 __PCPU_ATTRS(sec) __weak __typeof__(type) name 100 #define DECLARE_PER_CPU_SECTION(type, name, sec) \ argument 101 extern __PCPU_ATTRS(sec) __typeof__(type) name [all …]
|
/Linux-v5.15/Documentation/devicetree/bindings/csky/ |
D | cpus.txt | 2 C-SKY CPU Bindings 6 the "cpus" node, which in turn contains a number of subnodes (ie "cpu") 7 defining properties for every cpu. 13 cpus and cpu node bindings definition 16 - cpus node 18 Description: Container of cpu nodes 24 - #address-cells 26 Value type: <u32> 28 - #size-cells 30 Value type: <u32> [all …]
|
/Linux-v5.15/kernel/bpf/ |
D | bpf_lru_list.c | 1 // SPDX-License-Identifier: GPL-2.0-only 17 #define LOCAL_LIST_IDX(t) ((t) - BPF_LOCAL_LIST_T_OFFSET) 22 static int get_next_cpu(int cpu) in get_next_cpu() argument 24 cpu = cpumask_next(cpu, cpu_possible_mask); in get_next_cpu() 25 if (cpu >= nr_cpu_ids) in get_next_cpu() 26 cpu = cpumask_first(cpu_possible_mask); in get_next_cpu() 27 return cpu; in get_next_cpu() 33 return &loc_l->lists[LOCAL_FREE_LIST_IDX]; in local_free_list() 38 return &loc_l->lists[LOCAL_PENDING_LIST_IDX]; in local_pending_list() 44 return node->ref; in bpf_lru_node_is_ref() [all …]
|
/Linux-v5.15/Documentation/devicetree/bindings/powerpc/ |
D | ibm,powerpc-cpu-features.txt | 3 (skiboot/doc/device-tree/ibm,powerpc-cpu-features/binding.txt) 9 ibm,powerpc-cpu-features binding 12 This device tree binding describes CPU features available to software, with 19 /cpus/ibm,powerpc-cpu-features node binding 20 ------------------------------------------- 22 Node: ibm,powerpc-cpu-features 24 Description: Container of CPU feature nodes. 26 The node name must be "ibm,powerpc-cpu-features". 35 - compatible 37 Value type: string [all …]
|
/Linux-v5.15/tools/bpf/bpftool/ |
D | map_perf_ring.c | 1 // SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) 25 #include <perf-sys.h> 36 unsigned int cpu; member 61 int cpu; member 66 print_bpf_output(void *private_data, int cpu, struct perf_event_header *event) in print_bpf_output() argument 75 int idx = ctx->all_cpus ? cpu : ctx->idx; in print_bpf_output() 79 jsonw_name(json_wtr, "type"); in print_bpf_output() 80 jsonw_uint(json_wtr, e->header.type); in print_bpf_output() 81 jsonw_name(json_wtr, "cpu"); in print_bpf_output() 82 jsonw_uint(json_wtr, cpu); in print_bpf_output() [all …]
|
/Linux-v5.15/tools/perf/tests/ |
D | perf-record.c | 1 // SPDX-License-Identifier: GPL-2.0 19 int i, cpu = -1, nrcpus = 1024; in sched__get_first_possible_cpu() local 23 if (sched_getaffinity(pid, sizeof(*maskp), maskp) == -1) { in sched__get_first_possible_cpu() 29 return -1; in sched__get_first_possible_cpu() 34 if (cpu == -1) in sched__get_first_possible_cpu() 35 cpu = i; in sched__get_first_possible_cpu() 41 return cpu; in sched__get_first_possible_cpu() 68 int err = -1, errs = 0, i, wakeups = 0; in test__PERF_RECORD() 69 u32 cpu; in test__PERF_RECORD() local 83 * we start with all threads and cpus (-1, -1) but then in in test__PERF_RECORD() [all …]
|
/Linux-v5.15/Documentation/devicetree/bindings/sound/ |
D | qcom,sdm845.txt | 5 - compatible: 7 Value type: <stringlist> 9 "qcom,sdm845-sndcard" 10 "qcom,db845c-sndcard" 11 "lenovo,yoga-c630-sndcard" 13 - audio-routing: 15 Value type: <stringlist> 22 - model: 24 Value type: <stringlist> 25 Definition: The user-visible name of this sound card. [all …]
|
D | qcom,apq8096.txt | 5 - compatible: 7 Value type: <stringlist> 8 Definition: must be "qcom,apq8096-sndcard" 10 - audio-routing: 12 Value type: <stringlist> 53 - model: 55 Value type: <stringlist> 56 Definition: The user-visible name of this sound card. 58 - aux-devs 60 Value type: <array of phandles> [all …]
|
/Linux-v5.15/kernel/ |
D | smp.c | 1 // SPDX-License-Identifier: GPL-2.0-only 20 #include <linux/cpu.h> 32 #define CSD_TYPE(_csd) ((_csd)->node.u_flags & CSD_FLAG_TYPE_MASK) 41 u64 type:4; member 63 [CFD_SEQ_DEQUEUE] = "dequeue (src CPU 0 == empty)", 66 [CFD_SEQ_HDLEND] = "hdlend (src CPU 0 == early)", 101 int smpcfd_prepare_cpu(unsigned int cpu) in smpcfd_prepare_cpu() argument 103 struct call_function_data *cfd = &per_cpu(cfd_data, cpu); in smpcfd_prepare_cpu() 105 if (!zalloc_cpumask_var_node(&cfd->cpumask, GFP_KERNEL, in smpcfd_prepare_cpu() 106 cpu_to_node(cpu))) in smpcfd_prepare_cpu() [all …]
|
/Linux-v5.15/net/core/ |
D | gen_stats.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 24 gnet_stats_copy(struct gnet_dump *d, int type, void *buf, int size, int padattr) in gnet_stats_copy() argument 26 if (nla_put_64bit(d->skb, type, size, buf, padattr)) in gnet_stats_copy() 31 if (d->lock) in gnet_stats_copy() 32 spin_unlock_bh(d->lock); in gnet_stats_copy() 33 kfree(d->xstats); in gnet_stats_copy() 34 d->xstats = NULL; in gnet_stats_copy() 35 d->xstats_len = 0; in gnet_stats_copy() 36 return -1; in gnet_stats_copy() 40 * gnet_stats_start_copy_compat - start dumping procedure in compatibility mode [all …]
|
/Linux-v5.15/Documentation/power/ |
D | suspend-and-cpuhotplug.rst | 2 Interaction of Suspend code (S3) with the CPU hotplug infrastructure 5 (C) 2011 - 2014 Srivatsa S. Bhat <srivatsa.bhat@linux.vnet.ibm.com> 8 I. Differences between CPU hotplug and Suspend-to-RAM 11 How does the regular CPU hotplug code differ from how the Suspend-to-RAM 14 Well, a picture is worth a thousand words... So ASCII art follows :-) 17 interactions involving the freezer and CPU hotplug and also tries to explain 21 What happens when regular CPU hotplug and Suspend-to-RAM race with each other 24 On a high level, the suspend-resume cycle goes like this:: 26 |Freeze| -> |Disable nonboot| -> |Do suspend| -> |Enable nonboot| -> |Thaw | 33 ----------------- [all …]
|
/Linux-v5.15/arch/s390/kernel/ |
D | cache.c | 1 // SPDX-License-Identifier: GPL-2.0 3 * Extract CPU cache information and expose them via sysfs. 10 #include <linux/cpu.h> 44 unsigned char type : 2; member 77 for (idx = 0; idx < this_cpu_ci->num_leaves; idx++) { in show_cacheinfo() 78 cache = this_cpu_ci->info_list + idx; in show_cacheinfo() 79 seq_printf(m, "cache%-11d: ", idx); in show_cacheinfo() 80 seq_printf(m, "level=%d ", cache->level); in show_cacheinfo() 81 seq_printf(m, "type=%s ", cache_type_string[cache->type]); in show_cacheinfo() 83 cache->disable_sysfs ? "Shared" : "Private"); in show_cacheinfo() [all …]
|
/Linux-v5.15/Documentation/devicetree/bindings/arm/ |
D | cci.txt | 5 ARM multi-cluster systems maintain intra-cluster coherency through a 24 - compatible 26 Value type: <string> 28 "arm,cci-400" 29 "arm,cci-500" 30 "arm,cci-550" 32 - reg 34 Value type: Integer cells. A register entry, expressed as a pair 40 - ranges: 42 Value type: Integer cells. An array of range entries, expressed [all …]
|
/Linux-v5.15/arch/x86/kernel/acpi/ |
D | cstate.c | 1 // SPDX-License-Identifier: GPL-2.0-only 5 * - Added _PDC for SMP C-states on Intel CPUs 12 #include <linux/cpu.h> 20 * Initialize bm_flags based on the CPU cache properties 22 * - When cache is not shared among all CPUs, we flush cache 24 * - When cache is shared among all CPUs, we use bm_check 30 unsigned int cpu) in acpi_processor_power_init_bm_check() argument 32 struct cpuinfo_x86 *c = &cpu_data(cpu); in acpi_processor_power_init_bm_check() 34 flags->bm_check = 0; in acpi_processor_power_init_bm_check() 36 flags->bm_check = 1; in acpi_processor_power_init_bm_check() [all …]
|
/Linux-v5.15/arch/x86/events/intel/ |
D | uncore.c | 1 // SPDX-License-Identifier: GPL-2.0-only 5 #include <asm/intel-family.h> 42 int die_id = -1; in uncore_pcibus_to_dieid() 46 if (map->segment == pci_domain_nr(bus)) { in uncore_pcibus_to_dieid() 47 die_id = map->pbus_to_dieid[bus->number]; in uncore_pcibus_to_dieid() 65 return bus ? pci_domain_nr(bus) : -EINVAL; in uncore_die_to_segment() 73 list_del(&map->list); in uncore_free_pcibus_map() 87 if (map->segment == segment) in __find_pci2phy_map() 104 map->segment = segment; in __find_pci2phy_map() 106 map->pbus_to_dieid[i] = -1; in __find_pci2phy_map() [all …]
|