From: Kumar Gala Date: Tue, 18 Aug 2009 15:21:40 +0000 (+0000) Subject: powerpc/mm: Fix assert_pte_locked to work properly on uniprocessor X-Git-Tag: v2.6.32-rc1~675^2~65 X-Git-Url: https://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=797a747a82e23530ee45d2927bf84f3571c1acb2;p=pandora-kernel.git 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 Signed-off-by: Benjamin Herrenschmidt --- Reading git-diff-tree failed