Hi All,
I have found some PowerPC releated code in the bad commit.
vi arch/powerpc/include/asm/spinlock.hI created a small patch to revert this code.
- Code: Select all
--- a/arch/powerpc/include/asm/spinlock.h 2017-11-18 20:11:40.807868708 +0100
+++ b/arch/powerpc/include/asm/spinlock.h 2017-11-18 20:54:32.185724975 +0100
@@ -182,6 +182,9 @@ static inline void arch_spin_unlock(arch
* read-locks.
*/
+#define arch_read_can_lock(rw) ((rw)->lock >= 0)
+#define arch_write_can_lock(rw) (!(rw)->lock)
+
#ifdef CONFIG_PPC64
#define __DO_SIGN_EXTEND "extsw %0,%0\n"
#define WRLOCK_TOKEN LOCK_TOKEN /* it's negative */
patch -p0 < spinlock_4.15-1.patchOutput:
- Code: Select all
patching file a/arch/powerpc/include/asm/spinlock.h
After that I compiled the kernel again. Unfortunately it doesn't boot.
I will report the problem to the Linux PPC mailing list.
Cheers,
Christian