Use mwaitx when busy-waiting signals

Use mwaitx instructions when busy waiting for signals to reduce CPU
energy usage.
This can be disabled by setting HSA_ENABLE_MWAITX=0

Change-Id: Ic207895a491b2bf6dacba47ef0921df3faad5b5a
이 커밋은 다음에 포함됨:
David Yat Sin
2022-11-15 17:21:59 +00:00
부모 0ed1568afc
커밋 cc48dfdbff
8개의 변경된 파일59개의 추가작업 그리고 14개의 파일을 삭제
+1
파일 보기
@@ -86,6 +86,7 @@ namespace AMD {
namespace core {
extern bool g_use_interrupt_wait;
extern bool g_use_mwaitx;
/// @brief Runtime class provides the following functions:
/// - open and close connection to kernel driver.