From mboxrd@z Thu Jan 1 00:00:00 1970 From: Bin Meng Date: Sun, 8 Dec 2019 10:42:00 +0800 Subject: [PATCH v6 018/102] x86: Drop unnecessary cpu code for TPL In-Reply-To: <20191206213936.v6.18.Ie5734de6afb5b0690f0ec77b7edc6043b2f922a3@changeid> References: <20191207044315.51770-1-sjg@chromium.org> <20191206213936.v6.18.Ie5734de6afb5b0690f0ec77b7edc6043b2f922a3@changeid> Message-ID: List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de On Sat, Dec 7, 2019 at 12:46 PM Simon Glass wrote: > > 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 > Reviewed-by: Bin Meng > --- > > Changes in v6: None > Changes in v5: None > Changes in v4: > - Drop 'if (0)' call to deep_magic_nexgen_probe() and use #ifndef instead > - Fix 'what' typo > > Changes in v3: None > Changes in v2: None > > arch/x86/cpu/cpu.c | 4 ++++ > arch/x86/cpu/i386/cpu.c | 41 +++++++++++++++++++++++++++++++++++++---- > 2 files changed, 41 insertions(+), 4 deletions(-) > applied to u-boot-x86/next, thanks!