Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1544996
| From | Thomas Gleixner <tglx@linutronix.de> |
|---|---|
| Newsgroups | linux.kernel |
| Subject | Re: [tip:x86/urgent] x86/cpu: Probe CPUID leaf 6 even when cpuid_level == 6 |
| Date | 2016-12-20 10:40 +0100 |
| Message-ID | <sQp3P-3Nb-7@gated-at.bofh.it> (permalink) |
| References | <sOINk-G7-5@gated-at.bofh.it> <sQ3PH-6CU-15@gated-at.bofh.it> <sQmIF-2l2-13@gated-at.bofh.it> |
| Organization | linux.* mail to news gateway |
On Mon, 19 Dec 2016, H. Peter Anvin wrote: > P.S. I would love to (a) move the CPUID bits into a structure instead of > passing all those crazy pointers around, and (b) stop passing struct > cpuinfo * around when we only use it for the current processor anyway (a > lot of these functions are in fact completely invalid if we don't); we > could define this_cpu_info as (*this_cpu_ptr(&cpu_info)) -- basically > what I have above -- or directly use percpu functions to access these > variables. The whole cpu identify code wants to be rewritten completely. It's full of conditionals and places which read the same cpuid leaf over and over. The whole thing is just insane. The proper solution is to have a single function which reads all available leafs into a data structure and then do all the conditional computations and decisions based on that. Thanks, tglx
Back to linux.kernel | Previous | Next — Previous in thread | Find similar | Unroll thread
[PATCH] x86/cpu: Probe CPUID leaf 6 even when cpuid_level == 6 Andy Lutomirski <luto@kernel.org> - 2016-12-15 19:20 +0100
Re: [PATCH] x86/cpu: Probe CPUID leaf 6 even when cpuid_level == 6 Borislav Petkov <bp@alien8.de> - 2016-12-15 20:20 +0100
[tip:x86/urgent] x86/cpu: Probe CPUID leaf 6 even when cpuid_level == 6 tip-bot for Andy Lutomirski <tipbot@zytor.com> - 2016-12-19 12:00 +0100
Re: [tip:x86/urgent] x86/cpu: Probe CPUID leaf 6 even when cpuid_level == 6 "H. Peter Anvin" <hpa@zytor.com> - 2016-12-20 08:10 +0100
Re: [tip:x86/urgent] x86/cpu: Probe CPUID leaf 6 even when cpuid_level == 6 Thomas Gleixner <tglx@linutronix.de> - 2016-12-20 10:40 +0100
csiph-web