Home
last modified time | relevance | path

Searched +full:cpu +full:- +full:type (Results 1 – 25 of 1072) sorted by relevance

12345678910>>...43

/kernel/linux/linux-6.6/kernel/events/
Dhw_breakpoint.c1 // 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.
24 #include <linux/cpu.h>
32 #include <linux/percpu-rwsem.h>
51 * Per-CPU constraints data.
54 /* Number of pinned CPU breakpoints in a CPU. */
56 /* Histogram of pinned task breakpoints in a CPU. */
62 static struct bp_cpuinfo *get_bp_info(int cpu, enum bp_type_idx type) in get_bp_info() argument
[all …]
/kernel/linux/linux-5.10/kernel/events/
Dhw_breakpoint.c1 // 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 …]
/kernel/linux/linux-6.6/drivers/acpi/
Dpptt.c1 // 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 …]
/kernel/linux/linux-5.10/drivers/acpi/
Dpptt.c1 // 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 …]
/kernel/linux/linux-6.6/drivers/base/
Dcacheinfo.c1 // 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
28 #define per_cpu_cacheinfo_idx(cpu, idx) \ argument
29 (per_cpu_cacheinfo(cpu) + (idx))
[all …]
/kernel/linux/linux-6.6/arch/arm/boot/dts/samsung/
Dexynos5422-odroidxu3-common.dtsi1 // 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"
20 gpio-keys {
21 compatible = "gpio-keys";
22 pinctrl-names = "default";
23 pinctrl-0 = <&power_key>;
25 power-key {
36 debounce-interval = <0>;
[all …]
Dexynos5422-odroidhc1.dts1 // SPDX-License-Identifier: GPL-2.0
10 /dts-v1/;
11 #include <dt-bindings/leds/common.h>
12 #include "exynos5422-odroid-core.dtsi"
16 compatible = "hardkernel,odroid-hc1", "samsung,exynos5800", \
19 led-controller {
20 compatible = "pwm-leds";
22 led-1 {
26 pwm-names = "pwm2";
27 max-brightness = <255>;
[all …]
/kernel/linux/linux-5.10/arch/arm/boot/dts/
Dexynos5422-odroidxu3-common.dtsi1 // 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"
17 compatible = "gpio-keys";
18 pinctrl-names = "default";
19 pinctrl-0 = <&power_key>;
32 debounce-interval = <0>;
33 wakeup-source;
38 pinctrl-0 = <&emmc_nrst_pin>;
[all …]
Dexynos5422-odroidhc1.dts1 // SPDX-License-Identifier: GPL-2.0
10 /dts-v1/;
11 #include "exynos5422-odroid-core.dtsi"
15 compatible = "hardkernel,odroid-hc1", "samsung,exynos5800", \
19 compatible = "pwm-leds";
24 pwm-names = "pwm2";
25 max-brightness = <255>;
26 linux,default-trigger = "heartbeat";
30 thermal-zones {
31 cpu0_thermal: cpu0-thermal {
[all …]
/kernel/linux/linux-6.6/drivers/bus/
Dmips_cdmm.c4 * 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 …]
/kernel/linux/linux-5.10/drivers/bus/
Dmips_cdmm.c4 * 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 …]
/kernel/linux/linux-6.6/kernel/sched/
Disolation.c1 // SPDX-License-Identifier: GPL-2.0-only
4 * any CPU: unbound workqueues, timers, kthreads and any offloadable work.
7 * Copyright (C) 2017-2018 SUSE, Frederic Weisbecker
33 bool housekeeping_enabled(enum hk_type type) in housekeeping_enabled() argument
35 return !!(housekeeping.flags & BIT(type)); in housekeeping_enabled()
39 int housekeeping_any_cpu(enum hk_type type) in housekeeping_any_cpu() argument
41 int cpu; in housekeeping_any_cpu() local
44 if (housekeeping.flags & BIT(type)) { in housekeeping_any_cpu()
45 cpu = sched_numa_find_closest(housekeeping.cpumasks[type], smp_processor_id()); in housekeeping_any_cpu()
46 if (cpu < nr_cpu_ids) in housekeeping_any_cpu()
[all …]
/kernel/linux/linux-5.10/drivers/base/
Dcacheinfo.c1 // 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 …]
/kernel/linux/linux-6.6/include/linux/
Dpercpu-defs.h1 /* 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 …]
/kernel/linux/linux-6.6/arch/arm64/boot/dts/exynos/
Dexynos7-trip-points.dtsi1 // 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 …]
/kernel/linux/linux-5.10/arch/arm64/boot/dts/exynos/
Dexynos7-trip-points.dtsi1 // 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 …]
/kernel/linux/linux-5.10/tools/perf/util/
Dstat-shadow.c1 // SPDX-License-Identifier: GPL-2.0
14 * AGGR_GLOBAL: Use CPU 0
15 * AGGR_SOCKET: Use first CPU of socket
16 * AGGR_DIE: Use first CPU of die
17 * AGGR_CORE: Use first CPU of core
18 * AGGR_NONE: Use matching CPU
28 enum stat_type type; member
30 int cpu; member
44 if (a->cpu != b->cpu) in saved_value_cmp()
45 return a->cpu - b->cpu; in saved_value_cmp()
[all …]
/kernel/linux/linux-5.10/arch/ia64/kernel/
Dtopology.c10 * Populate cpu entries in sysfs for non-numa systems as well
11 * Intel Corporation - Ashok Raj
13 * Populate cpu cache entries in sysfs for cpu cache info
16 #include <linux/cpu.h>
28 #include <asm/cpu.h>
35 if (cpu_data(num)->socket_id == -1) in arch_fix_phys_package_id()
36 cpu_data(num)->socket_id = slot; in arch_fix_phys_package_id()
46 * If CPEI can be re-targeted or if this is not in arch_register_cpu()
50 sysfs_cpus[num].cpu.hotpluggable = 1; in arch_register_cpu()
52 return register_cpu(&sysfs_cpus[num].cpu, num); in arch_register_cpu()
[all …]
/kernel/linux/linux-6.6/arch/ia64/kernel/
Dtopology.c9 * 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 …]
/kernel/linux/linux-5.10/include/linux/
Dpercpu-defs.h1 /* 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 …]
/kernel/linux/linux-6.6/Documentation/devicetree/bindings/csky/
Dcpus.txt2 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 …]
/kernel/linux/linux-5.10/Documentation/devicetree/bindings/csky/
Dcpus.txt2 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 …]
/kernel/linux/linux-5.10/kernel/bpf/
Dbpf_lru_list.c1 // 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 READ_ONCE(node->ref); in bpf_lru_node_is_ref()
[all …]
/kernel/linux/linux-6.6/kernel/bpf/
Dbpf_lru_list.c1 // 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 READ_ONCE(node->ref); in bpf_lru_node_is_ref()
[all …]
/kernel/linux/linux-5.10/Documentation/devicetree/bindings/powerpc/
Dibm,powerpc-cpu-features.txt3 (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 …]

12345678910>>...43