ARC: [plat-eznps] use schd.wft instruction instead of sleep at idle task
authorNoam Camus <noamca@mellanox.com>
Sun, 28 May 2017 06:52:06 +0000 (09:52 +0300)
committerVineet Gupta <vgupta@synopsys.com>
Mon, 28 Aug 2017 22:17:36 +0000 (15:17 -0700)
commit644fa02b392e25d7592951da2b2b64b4d533d1be
tree478eb451af152ed2ea0349f8c217602af9405523
parent64f42cec84deb32fdaf24649481c72fcd7800dc1
ARC: [plat-eznps] use schd.wft instruction instead of sleep at idle task

When HW threads are active we want CPU to enter idle state only
for the calling HW thread and not to put on sleep all HW threads
sharing this core. For this need the NPS400 got dedicated instruction
so only calling thread is entring sleep and all other are still awake
and can execute instructions.

Signed-off-by: Noam Camus <noamca@mellanox.com>
Signed-off-by: Vineet Gupta <vgupta@synopsys.com>
[vgupta: reworked patch to not use inline ifdef but a new function itself]
arch/arc/kernel/process.c
arch/arc/plat-eznps/include/plat/ctop.h