Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 18c07cf5 authored by Cliff Wickman's avatar Cliff Wickman Committed by Ingo Molnar
Browse files

x86, UV: cpu_relax in uv_wait_completion



The function uv_wait_completion() spins on reads of a memory-mapped
register, waiting for completion of BAU hardware replies.

It should call "cpu_relax()" between those reads to improve performance
on hyperthreaded configurations.

Signed-off-by: default avatarCliff Wickman <cpw@sgi.com>
Acked-by: default avatarJack Steiner <steiner@sgi.org>
Signed-off-by: default avatarIngo Molnar <mingo@elte.hu>
parent 4a13ad0b
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -200,6 +200,7 @@ static int uv_wait_completion(struct bau_desc *bau_desc,
				destination_timeouts = 0;
			}
		}
		cpu_relax();
	}
	return FLUSH_COMPLETE;
}