mirror of
https://github.com/clearlinux/graphene.git
synced 2026-09-05 21:31:36 +00:00
[LibOS] regression: Remove unnecessary asm from pthread_set_get_affinity
This commit is contained in:
committed by
Dmitrii Kuvaiskii
parent
514180bc22
commit
6eff7da03e
@@ -25,14 +25,10 @@ pthread_barrier_t barrier;
|
||||
|
||||
/* Run a busy loop for some iterations, so that we can verify affinity with htop manually */
|
||||
static void* dowork(void* args) {
|
||||
uint64_t* iterations = (uint64_t*)args;
|
||||
__asm__ volatile (
|
||||
"movq %0, %%rax\n"
|
||||
"loop:\n"
|
||||
"dec %%rax\n"
|
||||
"cmp $0, %%rax\n"
|
||||
"jne loop\n"
|
||||
: /*no outs*/ : "m"(*iterations) : "rax", "cc");
|
||||
volatile uint64_t iterations = *(uint64_t*)args;
|
||||
|
||||
while (iterations != 0)
|
||||
iterations--;
|
||||
|
||||
int ret = pthread_barrier_wait(&barrier);
|
||||
if (ret != 0 && ret != PTHREAD_BARRIER_SERIAL_THREAD) {
|
||||
|
||||
Reference in New Issue
Block a user