Home
last modified time | relevance | path

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

12

/Linux-v5.4/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 …]
Dmisc.c11 struct cpupower_cpu_info cpu_info; in cpufreq_has_boost_support() local
17 ret = get_cpu_info(&cpu_info); in cpufreq_has_boost_support()
29 if (cpu_info.family == 0x17 || cpu_info.family == 0x18) { in cpufreq_has_boost_support()
Dhelpers.h94 extern int get_cpu_info(struct cpupower_cpu_info *cpu_info);
/Linux-v5.4/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-v5.4/arch/sparc/kernel/
Dcpu.c34 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-v5.4/arch/s390/hypfs/
Dhypfs_diag.c472 static int hypfs_create_cpu_files(struct dentry *cpus_dir, void *cpu_info) in hypfs_create_cpu_files() argument
479 cpu_info)); in hypfs_create_cpu_files()
482 cpu_info__acc_time(diag204_info_type, cpu_info) - in hypfs_create_cpu_files()
483 cpu_info__lp_time(diag204_info_type, cpu_info)); in hypfs_create_cpu_files()
487 cpu_info__lp_time(diag204_info_type, cpu_info)); in hypfs_create_cpu_files()
493 cpu_info)); in hypfs_create_cpu_files()
497 diag224_idx2name(cpu_info__ctidx(diag204_info_type, cpu_info), buffer); in hypfs_create_cpu_files()
507 void *cpu_info; in hypfs_create_lpar_files() local
518 cpu_info = part_hdr + part_hdr__size(diag204_info_type); in hypfs_create_lpar_files()
521 rc = hypfs_create_cpu_files(cpus_dir, cpu_info); in hypfs_create_lpar_files()
[all …]
/Linux-v5.4/arch/s390/kernel/
Dprocessor.c28 struct cpu_info { struct
34 static DEFINE_PER_CPU(struct cpu_info, cpu_info); argument
48 struct cpu_info *c; in update_cpu_mhz()
51 c = this_cpu_ptr(&cpu_info); in update_cpu_mhz()
83 struct cpuid *id = this_cpu_ptr(&cpu_info.cpu_id); in cpu_init()
144 struct cpuid *id = &per_cpu(cpu_info.cpu_id, cpu); in show_cpu_summary()
156 struct cpu_info *c = per_cpu_ptr(&cpu_info, n); in show_cpu_mhz()
/Linux-v5.4/arch/parisc/kernel/
Dprocessor.c84 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()
171 p->cpu_num = cpu_info.cpu_num; in processor_probe()
172 p->cpu_loc = cpu_info.cpu_loc; in processor_probe()
/Linux-v5.4/arch/mips/sgi-ip27/
Dip27-klconfig.c93 if ((acpu->cpu_info.physid) == slice) in nasid_slice_to_cpuinfo()
122 if (acpu && acpu->cpu_info.virtid == cpu) in sn_get_cpuinfo()
134 return acpu->cpu_info.physid; in get_cpu_slice()
Dip27-smp.c74 cpuid = acpu->cpu_info.virtid; in do_cpumask()
81 if ((acpu->cpu_info.flags & KLINFO_ENABLE) && in do_cpumask()
/Linux-v5.4/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-v5.4/net/dsa/
Dmaster.c46 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-v5.4/arch/parisc/include/asm/
Dpdcpat.h327 unsigned long cpu_info; member
369 extern int pdc_pat_cpu_get_number(struct pdc_pat_cpu_num *cpu_info, unsigned long hpa);
/Linux-v5.4/arch/x86/oprofile/
Dop_model_ppro.c87 __this_cpu_read(cpu_info.x86) == 6 && in ppro_setup_ctrs()
88 __this_cpu_read(cpu_info.x86_model) == 15)) { in ppro_setup_ctrs()
/Linux-v5.4/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-v5.4/arch/arm/kernel/
Dsmp.c367 struct cpuinfo_arm *cpu_info = &per_cpu(cpu_data, cpuid); in smp_store_cpu_info() local
369 cpu_info->loops_per_jiffy = loops_per_jiffy; in smp_store_cpu_info()
370 cpu_info->cpuid = read_cpuid_id(); in smp_store_cpu_info()
/Linux-v5.4/arch/x86/lib/
Ddelay.c167 unsigned long lpj = this_cpu_read(cpu_info.loops_per_jiffy) ? : loops_per_jiffy; in __const_udelay()
/Linux-v5.4/arch/x86/include/asm/
Dprocessor.h165 DECLARE_PER_CPU_READ_MOSTLY(struct cpuinfo_x86, cpu_info);
166 #define cpu_data(cpu) per_cpu(cpu_info, cpu)
168 #define cpu_info boot_cpu_data macro
Dcpufeature.h124 (unsigned long __percpu *)&cpu_info.x86_capability))
/Linux-v5.4/arch/ia64/kernel/
Dsetup.c947 struct cpuinfo_ia64 *cpu_info; in cpu_init() local
980 cpu_info = cpu_data + ((char *) &__ia64_per_cpu_var(ia64_cpu_info) - __per_cpu_start); in cpu_init()
981 identify_cpu(cpu_info); in cpu_init()
988 if (cpu_info->family == 0x1f) { in cpu_init()
/Linux-v5.4/arch/x86/kernel/
Dsmp.c218 mcheck_cpu_clear(this_cpu_ptr(&cpu_info)); in native_stop_other_cpus()
Dsmpboot.c99 DEFINE_PER_CPU_READ_MOSTLY(struct cpuinfo_x86, cpu_info);
100 EXPORT_PER_CPU_SYMBOL(cpu_info);
1668 if (__this_cpu_read(cpu_info.cpuid_level) < CPUID_MWAIT_LEAF) in mwait_play_dead()
1726 if (__this_cpu_read(cpu_info.x86) >= 4) in hlt_play_dead()
/Linux-v5.4/arch/x86/kernel/acpi/
Dsleep.c81 if (__this_cpu_read(cpu_info.cpuid_level) >= 0) { in x86_acpi_suspend_lowlevel()
/Linux-v5.4/arch/x86/kernel/cpu/mce/
Dcore.c1416 if (mce_available(this_cpu_ptr(&cpu_info))) { in mce_timer_fn()
2050 __mcheck_cpu_init_vendor(raw_cpu_ptr(&cpu_info)); in mce_syscore_resume()
2066 if (!mce_available(raw_cpu_ptr(&cpu_info))) in mce_cpu_restart()
2083 if (!mce_available(raw_cpu_ptr(&cpu_info))) in mce_disable_cmci()
2090 if (!mce_available(raw_cpu_ptr(&cpu_info))) in mce_enable_ce()
2335 if (!mce_available(raw_cpu_ptr(&cpu_info))) in mce_disable_cpu()
2349 if (!mce_available(raw_cpu_ptr(&cpu_info))) in mce_reenable_cpu()
Dintel.c344 if (!mce_available(raw_cpu_ptr(&cpu_info)) || !cmci_supported(&banks)) in cmci_recheck()

12