+ lock-validator-early_init_irq_lock_type--console_init.patch added to -mm tree

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



The patch titled

     lock validator: early_init_irq_lock_type / console_init

has been added to the -mm tree.  Its filename is

     lock-validator-early_init_irq_lock_type--console_init.patch

See http://www.zip.com.au/~akpm/linux/patches/stuff/added-to-mm.txt to find
out what to do about this

------------------------------------------------------
Subject: lock validator: early_init_irq_lock_type / console_init
From: Heiko Carstens <heiko.carstens@xxxxxxxxxx>


Two changes:
 - let the kernel compile for architectures that support TRACE_IRQ_FLAGS but
   don't support GENERIC_HARDIRQS.
 - s390's console_init must enable interrupts, but early_boot_irqs_on() gets
   called later. To avoid problems move console_init() after local_irq_enable().
   Hope this works on all architectures?!

Signed-off-by: Heiko Carstens <heiko.carstens@xxxxxxxxxx>
Acked-by: Ingo Molnar <mingo@xxxxxxx>
Cc: Martin Schwidefsky <schwidefsky@xxxxxxxxxx>
Cc: Arjan van de Ven <arjan@xxxxxxxxxxxxx>
Signed-off-by: Andrew Morton <akpm@xxxxxxxx>
---

 include/linux/lockdep.h |    8 ++++++--
 init/main.c             |    6 +++---
 2 files changed, 9 insertions(+), 5 deletions(-)

diff -puN include/linux/lockdep.h~lock-validator-early_init_irq_lock_type--console_init include/linux/lockdep.h
--- 25/include/linux/lockdep.h~lock-validator-early_init_irq_lock_type--console_init	Mon Jun 19 15:06:08 2006
+++ 25-akpm/include/linux/lockdep.h	Mon Jun 19 15:06:08 2006
@@ -265,12 +265,16 @@ static inline void lockdep_on(void)
 struct lockdep_type_key { };
 #endif /* !LOCKDEP */
 
-#ifdef CONFIG_TRACE_IRQFLAGS
+#if defined(CONFIG_TRACE_IRQFLAGS) && defined(CONFIG_GENERIC_HARDIRQS)
 extern void early_init_irq_lock_type(void);
+#else
+# define early_init_irq_lock_type()		do { } while (0)
+#endif
+
+#ifdef CONFIG_TRACE_IRQFLAGS
 extern void early_boot_irqs_off(void);
 extern void early_boot_irqs_on(void);
 #else
-# define early_init_irq_lock_type()		do { } while (0)
 # define early_boot_irqs_off()			do { } while (0)
 # define early_boot_irqs_on()			do { } while (0)
 #endif
diff -puN init/main.c~lock-validator-early_init_irq_lock_type--console_init init/main.c
--- 25/init/main.c~lock-validator-early_init_irq_lock_type--console_init	Mon Jun 19 15:06:08 2006
+++ 25-akpm/init/main.c	Mon Jun 19 15:06:08 2006
@@ -516,6 +516,9 @@ asmlinkage void __init start_kernel(void
 	softirq_init();
 	time_init();
 	timekeeping_init();
+	profile_init();
+	early_boot_irqs_on();
+	local_irq_enable();
 
 	/*
 	 * HACK ALERT! This is early. We're enabling the console before
@@ -525,9 +528,6 @@ asmlinkage void __init start_kernel(void
 	console_init();
 	if (panic_later)
 		panic(panic_later, panic_param);
-	profile_init();
-	early_boot_irqs_on();
-	local_irq_enable();
 
 	lockdep_info();
 
_

Patches currently in -mm which might be from heiko.carstens@xxxxxxxxxx are

git-klibc.patch
s390-move-var-declarations-behind-ifdef.patch
adjust-handle_irr_event-return-type.patch
add-__iowrite64_copy-s390-fix.patch
kthread-convert-s390machc-from-kernel_thread.patch
lock-validator-s390-stacktrace-interface.patch
lock-validator-s390-config_frame_pointer-support.patch
lock-validator-s390-rwsem-semaphore-changes.patch
lock-validator-early_init_irq_lock_type--console_init.patch
lock-validator-s390-irqtrace-support.patch
lock-validator-__local_bh_enable-_local_bh_enable.patch
lock-validator-s390-use-raw_spinlock-in-mcck-handler.patch
lock-validator-add-s390-to-supported-options.patch

-
To unsubscribe from this list: send the line "unsubscribe mm-commits" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Kernel Newbies FAQ]     [Kernel Archive]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [Bugtraq]     [Photo]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]

  Powered by Linux