[pm:bleeding-edge 5/6] arch/x86/kernel/cpu/proc.c:83: undefined reference to `aperfmperf_get_khz'
From: kbuild test robot <hidden>
Date: 2017-11-15 15:50:15
Also in:
linux-acpi
tree: https://git.kernel.org/pub/scm/linux/kernel/git/rafael/linux-pm.git bleeding-edge head: f379d4b265627033aa2f4d68464df7ae3a6a11c9 commit: a1823cba722b8f403f6ad83ec79b17773817fb27 [5/6] x86 / CPU: Always show current CPU frequency in /proc/cpuinfo config: i386-randconfig-s0-201746 (attached as .config) compiler: gcc-6 (Debian 6.4.0-9) 6.4.0 20171026 reproduce: git checkout a1823cba722b8f403f6ad83ec79b17773817fb27 # save the attached .config to linux build tree make ARCH=i386 All errors (new ones prefixed by >>): arch/x86/kernel/cpu/proc.o: In function `show_cpuinfo':
quoted
arch/x86/kernel/cpu/proc.c:83: undefined reference to `aperfmperf_get_khz'
vim +83 arch/x86/kernel/cpu/proc.c
56
57 static int show_cpuinfo(struct seq_file *m, void *v)
58 {
59 struct cpuinfo_x86 *c = v;
60 unsigned int cpu;
61 int i;
62
63 cpu = c->cpu_index;
64 seq_printf(m, "processor\t: %u\n"
65 "vendor_id\t: %s\n"
66 "cpu family\t: %d\n"
67 "model\t\t: %u\n"
68 "model name\t: %s\n",
69 cpu,
70 c->x86_vendor_id[0] ? c->x86_vendor_id : "unknown",
71 c->x86,
72 c->x86_model,
73 c->x86_model_id[0] ? c->x86_model_id : "unknown");
74
75 if (c->x86_mask || c->cpuid_level >= 0)
76 seq_printf(m, "stepping\t: %d\n", c->x86_mask);
77 else
78 seq_puts(m, "stepping\t: unknown\n");
79 if (c->microcode)
80 seq_printf(m, "microcode\t: 0x%x\n", c->microcode);
81
82 if (cpu_has(c, X86_FEATURE_TSC)) {
> 83 unsigned int freq = aperfmperf_get_khz(cpu);
84
85 if (!freq)
86 freq = cpufreq_quick_get(cpu);
87 if (!freq)
88 freq = cpu_khz;
89 seq_printf(m, "cpu MHz\t\t: %u.%03u\n",
90 freq / 1000, (freq % 1000));
91 }
92
93 /* Cache size */
94 if (c->x86_cache_size >= 0)
95 seq_printf(m, "cache size\t: %d KB\n", c->x86_cache_size);
96
97 show_cpuinfo_core(m, c, cpu);
98 show_cpuinfo_misc(m, c);
99
100 seq_puts(m, "flags\t\t:");
101 for (i = 0; i < 32*NCAPINTS; i++)
102 if (cpu_has(c, i) && x86_cap_flags[i] != NULL)
103 seq_printf(m, " %s", x86_cap_flags[i]);
104
105 seq_puts(m, "\nbugs\t\t:");
106 for (i = 0; i < 32*NBUGINTS; i++) {
107 unsigned int bug_bit = 32*NCAPINTS + i;
108
109 if (cpu_has_bug(c, bug_bit) && x86_bug_flags[i])
110 seq_printf(m, " %s", x86_bug_flags[i]);
111 }
112
113 seq_printf(m, "\nbogomips\t: %lu.%02lu\n",
114 c->loops_per_jiffy/(500000/HZ),
115 (c->loops_per_jiffy/(5000/HZ)) % 100);
116
---
0-DAY kernel test infrastructure Open Source Technology Center
https://lists.01.org/pipermail/kbuild-all Intel Corporation Attachments
- .config.gz [application/gzip] 31033 bytes