x86: Drop unnecessary cpu code for TPL
authorSimon Glass <sjg@chromium.org>
Sat, 7 Dec 2019 04:41:51 +0000 (21:41 -0700)
committerBin Meng <bmeng.cn@gmail.com>
Sun, 15 Dec 2019 03:44:10 +0000 (11:44 +0800)
commitcaca13f60a526349a00fcc316bd3c0d903b2cd7c
tree3ef50991f9337c3bffeaca851374beb0650292d0
parent642e8487ec629b43b1c5caf846098bfc952be5c0
x86: Drop unnecessary cpu code for TPL

We don't need to know every detail about the CPU in TPL. Drop some
superfluous functions to reduce code size. Add a simple CPU detection
algorithm which just supports Intel and AMD, since we only support TPL
on Intel, so far.

Signed-off-by: Simon Glass <sjg@chromium.org>
Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
arch/x86/cpu/cpu.c
arch/x86/cpu/i386/cpu.c