]> git.baikalelectronics.ru Git - kernel.git/commit
powerpc/mm: Fix assert_pte_locked to work properly on uniprocessor
authorKumar Gala <galak@kernel.crashing.org>
Tue, 18 Aug 2009 15:21:40 +0000 (15:21 +0000)
committerBenjamin Herrenschmidt <benh@kernel.crashing.org>
Thu, 20 Aug 2009 00:28:32 +0000 (10:28 +1000)
commit5355addbf0109fb6005ed1de32a26a7f757df471
tree1d198cf33c42d91b87116ea48dff71327f7bddae
parent56e5dec6037d7cc9ebaee2497918f270375e83b8
powerpc/mm: Fix assert_pte_locked to work properly on uniprocessor

Since the pte_lockptr is a spinlock it gets optimized away on
uniprocessor builds so using spin_is_locked is not correct.  We can use
assert_spin_locked instead and get the proper behavior between UP and
SMP builds.

Signed-off-by: Kumar Gala <galak@kernel.crashing.org>
Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
arch/powerpc/mm/pgtable.c