Skip to content

Commit 97505ae

Browse files
Change default number of iterations in wait function
Related-To: NEO-4759 Signed-off-by: Zbigniew Zdanowicz <[email protected]>
1 parent 9f8c271 commit 97505ae

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

shared/source/utilities/wait_util.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ namespace NEO {
1515

1616
namespace WaitUtils {
1717

18-
constexpr uint32_t defaultWaitCount = 64u;
18+
constexpr uint32_t defaultWaitCount = 1u;
1919
extern uint32_t waitCount;
2020

2121
inline bool waitFunction(volatile uint32_t *pollAddress, uint32_t expectedValue) {

shared/test/unit_test/utilities/wait_util_tests.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ extern std::atomic<uint32_t> pauseCounter;
2020
} // namespace CpuIntrinsicsTests
2121

2222
TEST(WaitTest, givenDefaultSettingsWhenNoPollAddressProvidedThenPauseDefaultTimeAndReturnFalse) {
23-
EXPECT_EQ(64u, WaitUtils::defaultWaitCount);
23+
EXPECT_EQ(1u, WaitUtils::defaultWaitCount);
2424

2525
WaitUtils::init();
2626
EXPECT_EQ(WaitUtils::defaultWaitCount, WaitUtils::waitCount);

0 commit comments

Comments
 (0)