/linux/tools/power/cpupower/utils/helpers/ |
A D | cpuid.c | 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() 135 if (cpu_info->family >= 0x17) in get_cpu_info() 166 if (cpu_info->family == 6) { in get_cpu_info() [all …]
|
A D | helpers.h | 98 extern int get_cpu_info(struct cpupower_cpu_info *cpu_info);
|
/linux/arch/x86/kernel/cpu/ |
A D | transmeta.c | 27 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() 67 (void *)&cpu_info[16], in init_transmeta() 68 (void *)&cpu_info[20], in init_transmeta() 69 (void *)&cpu_info[24], in init_transmeta() 72 (void *)&cpu_info[32], in init_transmeta() 73 (void *)&cpu_info[36], in init_transmeta() 74 (void *)&cpu_info[40], in init_transmeta() [all …]
|
A D | cacheinfo.c | 267 size_in_kb = __this_cpu_read(cpu_info.x86_cache_size); in amd_cpuid4() 289 eax->split.num_cores_on_die = __this_cpu_read(cpu_info.x86_max_cores) - 1; in amd_cpuid4()
|
/linux/arch/sparc/kernel/ |
A D | cpu.c | 34 struct cpu_info { struct 50 struct cpu_info cpu_info[NOCPU]; argument 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/arch/s390/hypfs/ |
A D | hypfs_diag.c | 479 cpu_info)); in hypfs_create_cpu_files() 493 cpu_info)); in hypfs_create_cpu_files() 507 void *cpu_info; in hypfs_create_lpar_files() local 521 rc = hypfs_create_cpu_files(cpus_dir, cpu_info); in hypfs_create_lpar_files() 524 cpu_info += cpu_info__size(diag204_info_type); in hypfs_create_lpar_files() 526 return cpu_info; in hypfs_create_lpar_files() 536 cpu_info)); in hypfs_create_phys_cpu_files() 552 void *cpu_info; in hypfs_create_phys_files() local 561 rc = hypfs_create_phys_cpu_files(cpus_dir, cpu_info); in hypfs_create_phys_files() 564 cpu_info += phys_cpu__size(diag204_info_type); in hypfs_create_phys_files() [all …]
|
/linux/arch/parisc/kernel/ |
A D | processor.c | 84 struct pdc_pat_cpu_num cpu_info = { }; in processor_probe() local 103 cpu_info.cpu_num = cpu_info.cpu_loc = cpuid; in processor_probe() 129 status = pdc_pat_cpu_get_number(&cpu_info, dev->hpa.start); in processor_probe() 134 cpuid, cpu_info.cpu_num, cpu_info.cpu_loc, in processor_probe() 144 if (cpu_info.cpu_num >= NR_CPUS) { in processor_probe() 148 &dev->hpa.start, cpu_info.cpu_num, NR_CPUS); in processor_probe() 153 cpuid = cpu_info.cpu_num; in processor_probe() 170 p->cpu_num = cpu_info.cpu_num; in processor_probe() 171 p->cpu_loc = cpu_info.cpu_loc; in processor_probe()
|
A D | firmware.c | 1430 int pdc_pat_cpu_get_number(struct pdc_pat_cpu_num *cpu_info, unsigned long hpa) in pdc_pat_cpu_get_number() argument 1438 memcpy(cpu_info, pdc_result, sizeof(*cpu_info)); in pdc_pat_cpu_get_number()
|
/linux/arch/s390/kernel/ |
A D | processor.c | 33 struct cpu_info { struct 39 static DEFINE_PER_CPU(struct cpu_info, cpu_info); argument 53 struct cpu_info *c; in update_cpu_mhz() 56 c = this_cpu_ptr(&cpu_info); in update_cpu_mhz() 88 struct cpuid *id = this_cpu_ptr(&cpu_info.cpu_id); in cpu_init() 162 struct cpuid *id = &per_cpu(cpu_info.cpu_id, cpu); in show_cpu_summary() 323 struct cpuid *id = &per_cpu(cpu_info.cpu_id, n); in show_cpu_ids() 332 struct cpu_info *c = per_cpu_ptr(&cpu_info, n); in show_cpu_mhz()
|
/linux/arch/mips/sgi-ip27/ |
A D | ip27-smp.c | 41 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/arch/arm/include/asm/ |
A D | smp_plat.h | 38 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/net/dsa/ |
A D | master.c | 46 struct ethtool_drvinfo *cpu_info; in dsa_master_get_regs() local 60 cpu_info = (struct ethtool_drvinfo *)data; in dsa_master_get_regs() 61 strlcpy(cpu_info->driver, "dsa", sizeof(cpu_info->driver)); in dsa_master_get_regs() 62 data += sizeof(*cpu_info); in dsa_master_get_regs()
|
/linux/arch/parisc/include/asm/ |
A D | pdcpat.h | 327 unsigned long cpu_info; member 369 extern int pdc_pat_cpu_get_number(struct pdc_pat_cpu_num *cpu_info, unsigned long hpa);
|
/linux/arch/mips/kernel/ |
A D | pm-cps.c | 238 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/arch/x86/include/asm/ |
A D | processor.h | 182 DECLARE_PER_CPU_READ_MOSTLY(struct cpuinfo_x86, cpu_info); 183 #define cpu_data(cpu) per_cpu(cpu_info, cpu) 185 #define cpu_info boot_cpu_data macro
|
A D | cpufeature.h | 128 (unsigned long __percpu *)&cpu_info.x86_capability))
|
/linux/arch/arm/kernel/ |
A D | smp.c | 397 struct cpuinfo_arm *cpu_info = &per_cpu(cpu_data, cpuid); in smp_store_cpu_info() local 399 cpu_info->loops_per_jiffy = loops_per_jiffy; in smp_store_cpu_info() 400 cpu_info->cpuid = read_cpuid_id(); in smp_store_cpu_info()
|
/linux/arch/ia64/kernel/ |
A D | setup.c | 944 struct cpuinfo_ia64 *cpu_info; in cpu_init() local 977 cpu_info = cpu_data + ((char *) &__ia64_per_cpu_var(ia64_cpu_info) - __per_cpu_start); in cpu_init() 978 identify_cpu(cpu_info); in cpu_init() 985 if (cpu_info->family == 0x1f) { in cpu_init()
|
/linux/arch/x86/kernel/ |
A D | smp.c | 217 mcheck_cpu_clear(this_cpu_ptr(&cpu_info)); in native_stop_other_cpus()
|
A D | smpboot.c | 107 DEFINE_PER_CPU_READ_MOSTLY(struct cpuinfo_x86, cpu_info); 108 EXPORT_PER_CPU_SYMBOL(cpu_info); 1763 if (__this_cpu_read(cpu_info.cpuid_level) < CPUID_MWAIT_LEAF) in mwait_play_dead() 1818 if (__this_cpu_read(cpu_info.x86) >= 4) in hlt_play_dead()
|
/linux/arch/um/include/asm/ |
A D | cpufeature.h | 42 (unsigned long __percpu *)&cpu_info.x86_capability))
|
/linux/arch/x86/kernel/acpi/ |
A D | sleep.c | 92 if (__this_cpu_read(cpu_info.cpuid_level) >= 0) { in x86_acpi_suspend_lowlevel()
|
/linux/arch/x86/kernel/cpu/mce/ |
A D | core.c | 1542 if (mce_available(this_cpu_ptr(&cpu_info))) { in mce_timer_fn() 2246 __mcheck_cpu_init_vendor(raw_cpu_ptr(&cpu_info)); in mce_syscore_resume() 2262 if (!mce_available(raw_cpu_ptr(&cpu_info))) in mce_cpu_restart() 2279 if (!mce_available(raw_cpu_ptr(&cpu_info))) in mce_disable_cmci() 2286 if (!mce_available(raw_cpu_ptr(&cpu_info))) in mce_enable_ce() 2533 if (!mce_available(raw_cpu_ptr(&cpu_info))) in mce_disable_cpu() 2547 if (!mce_available(raw_cpu_ptr(&cpu_info))) in mce_reenable_cpu()
|
A D | intel.c | 347 if (!mce_available(raw_cpu_ptr(&cpu_info)) || !cmci_supported(&banks)) in cmci_recheck()
|
/linux/arch/x86/lib/ |
A D | delay.c | 209 unsigned long lpj = this_cpu_read(cpu_info.loops_per_jiffy) ? : loops_per_jiffy; in __const_udelay()
|