Ingo Molnar
e955b5398b
sparseirq: fix lockdep
-tip testing found this lockdep splat:
[ 0.000000] Initializing CPU#0
[ 0.000000] found new irq_desc for irq 0
[ 0.000000] INFO: trying to register non-static key.
[ 0.000000] the code is fine but needs lockdep annotation.
[ 0.000000] turning off the locking correctness validator.
[ 0.000000] Pid: 0, comm: swapper Not tainted 2.6.27-rc3-tip-00191-g98ccb89-dirty #1
[ 0.000000] [<c0153c22>] register_lock_class+0x3d2/0x400
[ 0.000000] [<c0104d87>] ? mcount_call+0x5/0xa
[ 0.000000] [<c0154f3a>] __lock_acquire+0x22a/0x5d0
[ 0.000000] [<c0104d87>] ? mcount_call+0x5/0xa
[ 0.000000] [<c0155351>] lock_acquire+0x71/0xa0
[ 0.000000] [<c016d61f>] ? set_irq_chip+0x3f/0x90
[ 0.000000] [<c070f148>] _spin_lock_irqsave+0x58/0x90
[ 0.000000] [<c016d61f>] ? set_irq_chip+0x3f/0x90
[ 0.000000] [<c016d61f>] set_irq_chip+0x3f/0x90
[ 0.000000] [<c016d7e0>] ? handle_level_irq+0x0/0xe0
[ 0.000000] [<c016da1a>] set_irq_chip_and_handler_name+0x1a/0x40
[ 0.000000] [<c0a396c1>] init_ISA_irqs+0x51/0xa0
[ 0.000000] [<c0a4a365>] pre_intr_init_hook+0x25/0x30
[ 0.000000] [<c0a39723>] native_init_IRQ+0x13/0x370
[ 0.000000] [<c015569c>] ? lock_release+0xcc/0x1d0
[ 0.000000] [<c0104d87>] ? mcount_call+0x5/0xa
[ 0.000000] [<c070dc22>] ? __mutex_unlock_slowpath+0x92/0x110
[ 0.000000] [<c070dcad>] ? mutex_unlock+0xd/0x10
[ 0.000000] [<c0135f62>] ? cpu_maps_update_done+0x12/0x20
[ 0.000000] [<c06c6743>] ? register_cpu_notifier+0x23/0x30
[ 0.000000] [<c011e8ae>] init_IRQ+0xe/0x10
[ 0.000000] [<c0a357a5>] start_kernel+0x1c5/0x340
[ 0.000000] [<c0a35280>] ? unknown_bootoption+0x0/0x210
[ 0.000000] [<c0a3506b>] i386_start_kernel+0x6b/0x80
[ 0.000000] =======================
[ 0.000000] found new irq_desc for irq 1
[ 0.000000] found new irq_desc for irq 2
[ 0.000000] found new irq_desc for irq 3
this:
static void init_one_irq_desc(struct irq_desc *desc)
{
memcpy(desc, &irq_desc_init, sizeof(struct irq_desc));
#ifdef CONFIG_TRACE_IRQFLAGS
lockdep_set_class(&desc->lock, &irq_desc_lock_class);
#endif
}
should be unconditional.
Signed-off-by: Ingo Molnar <mingo@elte.hu>
2008-10-16 16:52:54 +02:00
..
2008-10-16 16:52:54 +02:00
2008-08-28 12:27:39 -07:00
2008-10-09 13:52:44 -04:00
2008-09-29 17:09:14 +02:00
2008-02-09 23:27:01 -08:00
2008-10-13 09:51:42 -07:00
2008-05-17 03:30:23 -04:00
2008-08-01 12:15:16 -04:00
2008-04-28 06:28:04 -04:00
2008-08-01 12:15:03 -04:00
2008-10-13 09:51:42 -07:00
2008-06-27 18:09:16 +02:00
2008-04-29 08:06:29 -07:00
2008-08-14 22:59:43 +10:00
2008-04-29 08:06:09 -07:00
2008-09-29 08:41:47 -07:00
2008-05-01 08:03:59 -07:00
2008-04-29 08:06:22 -07:00
2008-10-08 11:31:02 +02:00
2008-10-03 13:39:50 +02:00
2008-07-25 10:53:47 -07:00
2008-08-22 08:34:53 +02:00
2008-04-29 08:06:22 -07:00
2008-07-26 20:53:20 -04:00
2008-09-29 08:41:47 -07:00
2008-01-29 17:13:18 +11:00
2008-10-13 09:51:40 -07:00
2008-03-30 14:18:41 -07:00
2008-06-23 13:31:15 +02:00
2008-09-29 17:09:14 +02:00
2008-02-08 09:22:29 -08:00
2008-07-25 10:53:27 -07:00
2008-07-28 14:37:38 +02:00
2008-03-10 18:01:20 -07:00
2008-09-23 08:09:14 -07:00
2008-10-06 13:50:59 -05:00
2008-07-25 10:53:28 -07:00
2008-07-25 10:53:30 -07:00
2008-01-24 20:40:40 -08:00
2008-07-26 12:00:09 -07:00
2008-04-29 08:06:22 -07:00
2008-08-13 12:55:10 +02:00
2008-08-26 10:37:46 +02:00
2008-08-27 08:40:36 +02:00
2008-07-29 00:07:55 +02:00
2008-07-30 09:41:45 -07:00
2008-08-25 11:10:26 -07:00
2008-05-16 16:53:35 +02:00
2008-07-28 18:12:36 +02:00
2008-04-29 08:06:13 -07:00
2008-07-25 10:53:37 -07:00
2008-08-23 12:14:12 -07:00
2008-07-25 10:53:29 -07:00
2008-02-08 09:22:41 -08:00
2008-09-02 19:21:38 -07:00
2008-07-25 10:53:45 -07:00
2008-09-02 19:21:40 -07:00
2008-05-24 18:49:22 +02:00
2008-10-02 15:53:13 -07:00
2008-10-13 09:51:41 -07:00
2008-07-25 10:53:27 -07:00
2008-08-14 22:59:43 +10:00
2008-10-03 10:41:00 +02:00
2008-08-21 09:31:44 +02:00
2008-08-15 17:54:40 +02:00
2008-08-18 09:45:22 +02:00
2008-06-26 09:24:33 +02:00
2008-08-05 14:33:46 -07:00
2008-07-25 10:53:36 -07:00
2008-09-04 21:02:44 +02:00
2008-02-08 09:22:41 -08:00
2008-02-08 09:22:41 -08:00
2008-07-21 21:55:02 -07:00
2008-02-13 15:45:36 +01:00
2007-12-18 15:21:13 +01:00
2008-08-25 17:39:57 +02:00
2008-06-06 15:19:28 +02:00
2008-06-06 15:19:44 +02:00
2008-10-10 04:18:57 +04:00
2008-10-08 12:20:26 +02:00
2008-09-22 16:29:00 +02:00
2008-09-22 16:28:32 +02:00
2008-10-04 14:31:54 +02:00
2008-07-04 12:50:23 +02:00
2008-10-16 16:52:32 +02:00
2008-08-05 14:33:47 -07:00
2008-08-19 20:37:07 -07:00
2008-08-25 17:45:48 -07:00
2008-07-26 12:00:04 -07:00
2008-09-02 10:49:51 -07:00
2008-08-13 13:56:51 +02:00
2008-02-06 10:41:02 -08:00
2008-06-30 09:20:55 +02:00
2008-08-12 17:52:55 +10:00
2008-09-29 17:56:57 -04:00
2008-10-13 09:51:40 -07:00
2008-07-25 10:53:45 -07:00
2008-10-14 12:31:14 -07:00
2008-07-25 10:53:47 -07:00
2008-02-06 10:41:11 -08:00
2008-05-02 16:18:42 -07:00
2008-05-02 16:18:42 -07:00
2008-07-14 16:06:58 -07:00
2008-07-27 16:12:28 -07:00
2008-04-10 17:28:26 -07:00
2008-08-23 12:14:12 -07:00
2008-08-19 13:10:09 +02:00
2008-08-23 12:14:12 -07:00
2008-08-23 12:14:12 -07:00
2008-02-08 09:22:31 -08:00
2008-08-12 00:11:49 +02:00