From: Huang Ying Date: Thu, 8 Sep 2011 06:00:44 +0000 (+0800) Subject: llist: Move cpu_relax() to after the cmpxchg() X-Git-Tag: v3.2-rc1~161^2~14 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a3127336b71f6833d1483c856dce91fe558dc3a9;p=pandora-kernel.git llist: Move cpu_relax() to after the cmpxchg() If in llist_add()/etc. functions the first cmpxchg() call succeeds, it is not necessary to use cpu_relax() before the cmpxchg(). So cpu_relax() in a busy loop involving cmpxchg() should go after cmpxchg() instead of before that. This patch fixes this for all involved llist functions. Signed-off-by: Huang Ying Acked-by: Mathieu Desnoyers Signed-off-by: Peter Zijlstra Link: http://lkml.kernel.org/r/1315461646-1379-4-git-send-email-ying.huang@intel.com Signed-off-by: Ingo Molnar --- Reading git-diff-tree failed