Re: [PATCH v1 19/20] ARC: [plat-eznps] replace sync with proper cpu barrier

2015-11-02 Thread Peter Zijlstra
On Mon, Nov 02, 2015 at 07:48:54AM +, Vineet Gupta wrote: > Since u bring this up - I think we don't need the original SYNC and/or > SMT thread schedule at all. The SYNC here is a historic relic at best > and we can get rid of it per reasoning below: > > In UP context it is obviously useless,

Re: [PATCH v1 19/20] ARC: [plat-eznps] replace sync with proper cpu barrier

2015-11-01 Thread Vineet Gupta
+CC Peter. On Saturday 31 October 2015 06:53 PM, Noam Camus wrote: > From: Tal Zilcer > > In SMT system like we have the generic "sync" is not working with > HW threads. The replacement is "schd.rw" instruction that is served > as cpu barrier for HW threads. > Signed-off-by: Noam Camus > --- >

[PATCH v1 19/20] ARC: [plat-eznps] replace sync with proper cpu barrier

2015-10-31 Thread Noam Camus
From: Tal Zilcer In SMT system like we have the generic "sync" is not working with HW threads. The replacement is "schd.rw" instruction that is served as cpu barrier for HW threads. Signed-off-by: Noam Camus --- arch/arc/kernel/ctx_sw.c |7 +++ 1 files changed, 7 insertions(+), 0 deleti