Home
last modified time | relevance | path

Searched refs:cpu_info (Results 1 – 25 of 31) sorted by relevance

12

/linux-6.6.21/tools/power/cpupower/utils/helpers/
Dcpuid.c46 int get_cpu_info(struct cpupower_cpu_info *cpu_info) in get_cpu_info() argument
56 cpu_info->vendor = X86_VENDOR_UNKNOWN; in get_cpu_info()
57 cpu_info->family = unknown; in get_cpu_info()
58 cpu_info->model = unknown; in get_cpu_info()
59 cpu_info->stepping = unknown; in get_cpu_info()
60 cpu_info->caps = 0; in get_cpu_info()
81 cpu_info->vendor = x; in get_cpu_info()
86 &cpu_info->family); in get_cpu_info()
89 &cpu_info->model); in get_cpu_info()
92 &cpu_info->stepping); in get_cpu_info()
[all …]
Dhelpers.h100 extern int get_cpu_info(struct cpupower_cpu_info *cpu_info);
/linux-6.6.21/arch/x86/kernel/cpu/
Dtransmeta.c27 char cpu_info[65]; in init_transmeta() local
62 (void *)&cpu_info[0], in init_transmeta()
63 (void *)&cpu_info[4], in init_transmeta()
64 (void *)&cpu_info[8], in init_transmeta()
65 (void *)&cpu_info[12]); in init_transmeta()
67 (void *)&cpu_info[16], in init_transmeta()
68 (void *)&cpu_info[20], in init_transmeta()
69 (void *)&cpu_info[24], in init_transmeta()
70 (void *)&cpu_info[28]); in init_transmeta()
72 (void *)&cpu_info[32], in init_transmeta()
[all …]
/linux-6.6.21/arch/s390/hypfs/
Dhypfs_diag_fs.c202 static int hypfs_create_cpu_files(struct dentry *cpus_dir, void *cpu_info) in hypfs_create_cpu_files() argument
209 cpu_info)); in hypfs_create_cpu_files()
212 cpu_info__acc_time(diag204_get_info_type(), cpu_info) - in hypfs_create_cpu_files()
213 cpu_info__lp_time(diag204_get_info_type(), cpu_info)); in hypfs_create_cpu_files()
217 cpu_info__lp_time(diag204_get_info_type(), cpu_info)); in hypfs_create_cpu_files()
223 cpu_info)); in hypfs_create_cpu_files()
227 diag224_idx2name(cpu_info__ctidx(diag204_get_info_type(), cpu_info), buffer); in hypfs_create_cpu_files()
237 void *cpu_info; in hypfs_create_lpar_files() local
248 cpu_info = part_hdr + part_hdr__size(diag204_get_info_type()); in hypfs_create_lpar_files()
252 rc = hypfs_create_cpu_files(cpus_dir, cpu_info); in hypfs_create_lpar_files()
[all …]
/linux-6.6.21/arch/sparc/kernel/
Dcpu.c34 struct cpu_info { struct
50 struct cpu_info cpu_info[NOCPU]; member
67 .cpu_info = {
86 .cpu_info = {
107 .cpu_info = {
118 .cpu_info = {
127 .cpu_info = {
146 .cpu_info = {
156 .cpu_info = {
165 .cpu_info = {
[all …]
/linux-6.6.21/arch/s390/kernel/
Dprocessor.c32 struct cpu_info { struct
38 static DEFINE_PER_CPU(struct cpu_info, cpu_info); argument
52 struct cpu_info *c; in update_cpu_mhz()
55 c = this_cpu_ptr(&cpu_info); in update_cpu_mhz()
87 struct cpuid *id = this_cpu_ptr(&cpu_info.cpu_id); in cpu_init()
152 struct cpuid *id = &per_cpu(cpu_info.cpu_id, cpu); in show_cpu_summary()
301 struct cpuid *id = &per_cpu(cpu_info.cpu_id, n); in show_cpu_ids()
310 struct cpu_info *c = per_cpu_ptr(&cpu_info, n); in show_cpu_mhz()
/linux-6.6.21/arch/parisc/kernel/
Dprocessor.c86 struct pdc_pat_cpu_num cpu_info = { }; in processor_probe() local
105 cpu_info.cpu_num = cpu_info.cpu_loc = cpuid; in processor_probe()
131 status = pdc_pat_cpu_get_number(&cpu_info, dev->hpa.start); in processor_probe()
136 cpuid, cpu_info.cpu_num, cpu_info.cpu_loc, in processor_probe()
146 if (cpu_info.cpu_num >= NR_CPUS) { in processor_probe()
150 &dev->hpa.start, cpu_info.cpu_num, NR_CPUS); in processor_probe()
155 cpuid = cpu_info.cpu_num; in processor_probe()
172 p->cpu_num = cpu_info.cpu_num; in processor_probe()
173 p->cpu_loc = cpu_info.cpu_loc; in processor_probe()
Dfirmware.c1539 int pdc_pat_cpu_get_number(struct pdc_pat_cpu_num *cpu_info, unsigned long hpa) in pdc_pat_cpu_get_number() argument
1547 memcpy(cpu_info, pdc_result, sizeof(*cpu_info)); in pdc_pat_cpu_get_number()
/linux-6.6.21/arch/mips/sgi-ip27/
Dip27-smp.c41 cpuid = acpu->cpu_info.virtid; in node_scan_cpus()
43 if ((acpu->cpu_info.flags & KLINFO_ENABLE) && in node_scan_cpus()
49 cputoslice(cpus_found) = acpu->cpu_info.physid; in node_scan_cpus()
/linux-6.6.21/arch/arm/include/asm/
Dsmp_plat.h38 struct cpuinfo_arm *cpu_info = &per_cpu(cpu_data, cpu); in smp_cpuid_part() local
40 return is_smp() ? cpu_info->cpuid & ARM_CPU_PART_MASK : in smp_cpuid_part()
/linux-6.6.21/drivers/hwmon/peci/
Dcputemp.c35 struct cpu_info { struct
59 const struct cpu_info *gen_info; argument
495 priv->gen_info = (const struct cpu_info *)id->driver_data; in peci_cputemp_probe()
542 static const struct cpu_info cpu_hsx = {
548 static const struct cpu_info cpu_skx = {
554 static const struct cpu_info cpu_icx = {
560 static const struct cpu_info cpu_spr = {
/linux-6.6.21/net/dsa/
Dmaster.c54 struct ethtool_drvinfo *cpu_info; in dsa_master_get_regs() local
68 cpu_info = (struct ethtool_drvinfo *)data; in dsa_master_get_regs()
69 strscpy(cpu_info->driver, "dsa", sizeof(cpu_info->driver)); in dsa_master_get_regs()
70 data += sizeof(*cpu_info); in dsa_master_get_regs()
/linux-6.6.21/arch/parisc/include/asm/
Dpdcpat.h328 unsigned long cpu_info; member
370 extern int pdc_pat_cpu_get_number(struct pdc_pat_cpu_num *cpu_info, unsigned long hpa);
/linux-6.6.21/arch/x86/include/asm/
Dprocessor.h175 DECLARE_PER_CPU_READ_MOSTLY(struct cpuinfo_x86, cpu_info);
176 #define cpu_data(cpu) per_cpu(cpu_info, cpu)
178 #define cpu_info boot_cpu_data macro
Dcpufeature.h129 (unsigned long __percpu *)&cpu_info.x86_capability))
/linux-6.6.21/arch/mips/kernel/
Dpm-cps.c238 const struct cpuinfo_mips *cpu_info, in cps_gen_flush_fsb() argument
244 unsigned line_size = cpu_info->dcache.linesz; in cps_gen_flush_fsb()
246 unsigned revision = cpu_info->processor_id & PRID_REV_MASK; in cps_gen_flush_fsb()
252 switch (__get_cpu_type(cpu_info->cputype)) { in cps_gen_flush_fsb()
/linux-6.6.21/arch/arm/kernel/
Dsmp.c391 struct cpuinfo_arm *cpu_info = &per_cpu(cpu_data, cpuid); in smp_store_cpu_info() local
393 cpu_info->loops_per_jiffy = loops_per_jiffy; in smp_store_cpu_info()
394 cpu_info->cpuid = read_cpuid_id(); in smp_store_cpu_info()
/linux-6.6.21/arch/ia64/kernel/
Dsetup.c941 struct cpuinfo_ia64 *cpu_info; in cpu_init() local
974 cpu_info = cpu_data + ((char *) &__ia64_per_cpu_var(ia64_cpu_info) - __per_cpu_start); in cpu_init()
975 identify_cpu(cpu_info); in cpu_init()
982 if (cpu_info->family == 0x1f) { in cpu_init()
/linux-6.6.21/arch/x86/kernel/
Dsmp.c230 mcheck_cpu_clear(this_cpu_ptr(&cpu_info)); in native_stop_other_cpus()
Dsmpboot.c104 DEFINE_PER_CPU_READ_MOSTLY(struct cpuinfo_x86, cpu_info);
105 EXPORT_PER_CPU_SYMBOL(cpu_info);
1495 if (__this_cpu_read(cpu_info.cpuid_level) < CPUID_MWAIT_LEAF) in mwait_play_dead()
1592 if (__this_cpu_read(cpu_info.x86) >= 4) in hlt_play_dead()
/linux-6.6.21/arch/um/include/asm/
Dcpufeature.h42 (unsigned long __percpu *)&cpu_info.x86_capability))
/linux-6.6.21/arch/x86/kernel/acpi/
Dsleep.c94 if (__this_cpu_read(cpu_info.cpuid_level) >= 0) { in x86_acpi_suspend_lowlevel()
/linux-6.6.21/arch/x86/lib/
Ddelay.c209 unsigned long lpj = this_cpu_read(cpu_info.loops_per_jiffy) ? : loops_per_jiffy; in __const_udelay()
/linux-6.6.21/arch/x86/kernel/cpu/mce/
Dcore.c1666 if (mce_available(this_cpu_ptr(&cpu_info))) { in mce_timer_fn()
2379 __mcheck_cpu_init_vendor(raw_cpu_ptr(&cpu_info)); in mce_syscore_resume()
2395 if (!mce_available(raw_cpu_ptr(&cpu_info))) in mce_cpu_restart()
2413 if (!mce_available(raw_cpu_ptr(&cpu_info))) in mce_disable_cmci()
2420 if (!mce_available(raw_cpu_ptr(&cpu_info))) in mce_enable_ce()
2665 if (!mce_available(raw_cpu_ptr(&cpu_info))) in mce_disable_cpu()
2679 if (!mce_available(raw_cpu_ptr(&cpu_info))) in mce_reenable_cpu()
Dintel.c354 if (!mce_available(raw_cpu_ptr(&cpu_info)) || !cmci_supported(&banks)) in cmci_recheck()

12