Re: [PATCH v1 17/26] x86/cpuid: Remove direct CPUID(0x2) query API
Ingo Molnar <[email protected]>
| Newsgroups | dev.linux.lists.x86-cpuid,org.kernel.vger.linux-kernel |
|---|---|
| Message-ID | <[email protected]> |
* Ahmed S. Darwish <[email protected]> wrote: > All call sites at x86/cpu and x86/cacheinfo has been switched from direct > CPUID(0x2) access to scanned CPUID access. Remove the direct CPUID(0x2) > query APIs at <asm/cpuid/leaf_0x2_api.h>. > > Rename the iterator macro: > > for_each_scanned_leaf_0x2_entry() > > back to: > > for_each_leaf_0x2_entry() > > since the "for_each_scanned_.." name and was just chosen to accommodate > the direct CPUID(0x2) to scanned CPUID(0x2) transition. > > Signed-off-by: Ahmed S. Darwish <[email protected]> > --- > arch/x86/include/asm/cpuid/leaf_0x2_api.h | 72 +---------------------- > arch/x86/kernel/cpu/cacheinfo.c | 2 +- > arch/x86/kernel/cpu/intel.c | 2 +- > 3 files changed, 5 insertions(+), 71 deletions(-) There's one mention of this API orphaned in the for_each_leaf_0x2_entry() comment section: arch/x86/include/asm/cpuid/leaf_0x2_api.h: * for_each_scanned_leaf_0x2_entry(regs, ptr, entry) { Thanks, Ingo