From be28ab1ad1159f784254e4a77e2fe9cd99dc34c8 Mon Sep 17 00:00:00 2001 From: "Xiangyang (Mark) Guo" Date: Mon, 5 Jun 2017 10:16:27 -0700 Subject: Inline YieldProcessor on Linux (#12058) --- src/pal/src/arch/amd64/processor.cpp | 21 --------------------- src/pal/src/arch/arm/processor.cpp | 20 -------------------- src/pal/src/arch/arm64/processor.cpp | 19 ------------------- src/pal/src/arch/i386/processor.cpp | 22 ---------------------- 4 files changed, 82 deletions(-) (limited to 'src/pal/src/arch') diff --git a/src/pal/src/arch/amd64/processor.cpp b/src/pal/src/arch/amd64/processor.cpp index 0ab7992286..a520111749 100644 --- a/src/pal/src/arch/amd64/processor.cpp +++ b/src/pal/src/arch/amd64/processor.cpp @@ -21,27 +21,6 @@ Abstract: #include "pal/palinternal.h" -/*++ -Function: -YieldProcessor - -The YieldProcessor function signals to the processor to give resources -to threads that are waiting for them. This macro is only effective on -processors that support technology allowing multiple threads running -on a single processor, such as Intel's Hyper-Threading technology. - ---*/ -void -PALAPI -YieldProcessor( - VOID) -{ - __asm__ __volatile__ ( - "rep\n" - "nop" - ); -} - /*++ Function: XmmYmmStateSupport diff --git a/src/pal/src/arch/arm/processor.cpp b/src/pal/src/arch/arm/processor.cpp index f41caff1e0..7993212556 100644 --- a/src/pal/src/arch/arm/processor.cpp +++ b/src/pal/src/arch/arm/processor.cpp @@ -20,23 +20,3 @@ Abstract: --*/ #include "pal/palinternal.h" - -/*++ -Function: -YieldProcessor - -The YieldProcessor function signals to the processor to give resources -to threads that are waiting for them. This macro is only effective on -processors that support technology allowing multiple threads running -on a single processor, such as Intel's Hyper-Threading technology. - ---*/ -void -PALAPI -YieldProcessor( - VOID) -{ - // Pretty sure ARM has no useful function here? - return; -} - diff --git a/src/pal/src/arch/arm64/processor.cpp b/src/pal/src/arch/arm64/processor.cpp index 6c7851a2b1..4c47210165 100644 --- a/src/pal/src/arch/arm64/processor.cpp +++ b/src/pal/src/arch/arm64/processor.cpp @@ -20,22 +20,3 @@ Abstract: --*/ #include "pal/palinternal.h" - -/*++ -Function: -YieldProcessor - -The YieldProcessor function signals to the processor to give resources -to threads that are waiting for them. This macro is only effective on -processors that support technology allowing multiple threads running -on a single processor, such as Intel's Hyper-Threading technology. - ---*/ -void -PALAPI -YieldProcessor( - VOID) -{ - return; -} - diff --git a/src/pal/src/arch/i386/processor.cpp b/src/pal/src/arch/i386/processor.cpp index 4fd3a4abc8..e1c8de1943 100644 --- a/src/pal/src/arch/i386/processor.cpp +++ b/src/pal/src/arch/i386/processor.cpp @@ -20,25 +20,3 @@ Abstract: --*/ #include "pal/palinternal.h" - -/*++ -Function: -YieldProcessor - -The YieldProcessor function signals to the processor to give resources -to threads that are waiting for them. This macro is only effective on -processors that support technology allowing multiple threads running -on a single processor, such as Intel's Hyper-Threading technology. - ---*/ -void -PALAPI -YieldProcessor( - VOID) -{ - __asm__ __volatile__ ( - "rep\n" - "nop" - ); -} - -- cgit v1.2.3