diff options
author | Jian J Wang <jian.j.wang@intel.com> | 2018-01-26 16:30:40 +0800 |
---|---|---|
committer | Ruiyu Ni <ruiyu.ni@intel.com> | 2018-01-29 09:37:41 +0800 |
commit | 199de89677deffffff30eda7ad17793b30042cce (patch) | |
tree | adc98b24c31f24351b3e1ffa09fb93aaedde7330 /BaseTools/Source/Python/Ecc/ParserWarning.py | |
parent | 69dfa8d87a9b14dce5b1fd2900ebe04c8860a200 (diff) | |
download | edk2-199de89677deffffff30eda7ad17793b30042cce.tar.gz edk2-199de89677deffffff30eda7ad17793b30042cce.tar.bz2 edk2-199de89677deffffff30eda7ad17793b30042cce.zip |
UefiCpuPkg/MpInitLib: force flushing TLB for AP in mwait loop mode
The reason doing this is that we found that calling StartupAllAps() to
flush TLB for all APs in CpuDxe driver after changing page attributes
will spend a lot of time to complete. If there are many page attributes
update requests, the whole system performance will be slowed down
explicitly, including any shell command and UI operation.
The solution is removing the flush operation for AP in CpuDxe driver.
Since TLB is always flushed in HLT loop mode, we just need to enforce
a TLB flush for mwait loop mode.
Cc: Ruiyu Ni <ruiyu.ni@intel.com>
Cc: Jiewen Yao <jiewen.yao@intel.com>
Cc: Eric Dong <eric.dong@intel.com>
Cc: Laszlo Ersek <lersek@redhat.com>
Contributed-under: TianoCore Contribution Agreement 1.1
Signed-off-by: Jian J Wang <jian.j.wang@intel.com>
Reviewed-by: Ruiyu Ni <ruiyu.ni@intel.com>
Diffstat (limited to 'BaseTools/Source/Python/Ecc/ParserWarning.py')
0 files changed, 0 insertions, 0 deletions