mirror of https://github.com/acidanthera/audk.git
fe3ca5fd25
MpInitLib sets X2ApicEnable in two places. 1. CollectProcessorCount() This function is called when MpInitLibInitialize() hasn't been called before. It sets X2ApicEnable and later in the same function it configures all CPUs to operate in X2 APIC mode. 2. MpInitLibInitialize() The X2ApicEnable setting happens when this function is called in second time. But after that setting, no code consumes that flag. With the above analysis and with the purpose of simplifying the code, the X2ApicEnable in #1 is changed to local variable and the #2 can be changed to remove the setting of X2ApicEnable. Signed-off-by: Ray Ni <ray.ni@intel.com> Reviewed-by: Eric Dong <eric.dong@intel.com> Reviewed-by: Laszlo Ersek <lersek@redhat.com> |
||
---|---|---|
.. | ||
Ia32 | ||
X64 | ||
DxeMpInitLib.inf | ||
DxeMpInitLib.uni | ||
DxeMpLib.c | ||
Microcode.c | ||
MpLib.c | ||
MpLib.h | ||
PeiMpInitLib.inf | ||
PeiMpInitLib.uni | ||
PeiMpLib.c |