ARC: [plat-eznps] spinlock aware for MTM
authorNoam Camus <noamca@mellanox.com>
Sun, 28 May 2017 06:52:05 +0000 (09:52 +0300)
committerVineet Gupta <vgupta@synopsys.com>
Mon, 28 Aug 2017 22:17:36 +0000 (15:17 -0700)
commit1112c3b2ce5281a7118606648bb8cc010b2499ca
tree3d89eed483dfd13172d9e756403bfb20cf890da7
parentc2bdac146b4f12d3f0065b865d5d36529c2cbfaa
ARC: [plat-eznps] spinlock aware for MTM

This way when we execute "ex" during trying to hold lock we can switch to
other HW thread and utilize the core intead of just spinning on a lock.

We noticed about 10% improvement of execution time with hackbench test.

Signed-off-by: Noam Camus <noamca@mellanox.com>
Signed-off-by: Vineet Gupta <vgupta@synopsys.com>
arch/arc/include/asm/spinlock.h