linux-stable/arch/microblaze
Michal Simek bf2d809668 microblaze: Lockdep support
Microblaze needs to do lock_init very soon because MMU init calls lock functions.

Here is the explanation from Peter Zijlstra why we have to enable
__ARCH_WANTS_INTERRUPTS_ON_CTSW.

"So we schedule while holding rq->lock (for obvious reasons), but since
lockdep tracks held locks per tasks, we need to transfer the held state
from the prev to the next task. We do this by explicity calling
spin_release(&rq->lock) in context_switch() right before switch_to(),
and calling spin_acquire(&rq->lock) in
finish_task_switch()->finish_lock_switch().

Now, for some reason lockdep thinks that interrupts got enabled over the
context switch (git grep __ARCH_WANTS_INTERRUPTS_ON_CTSW arch/microblaze
doesn't seem to turn up anything).

Clearly trying to acquire the rq->lock with interrupts enabled is a bad
idea and lockdep warns you about this."

Signed-off-by: Michal Simek <monstr@monstr.eu>
2009-12-14 08:40:09 +01:00
..
boot microblaze: Support simpleImage.dts make target 2009-09-24 10:28:22 +02:00
configs microblaze: Disable heartbeat/enable emaclite in defconfigs 2009-09-24 10:30:27 +02:00
include/asm microblaze: Lockdep support 2009-12-14 08:40:09 +01:00
kernel microblaze: Lockdep support 2009-12-14 08:40:09 +01:00
lib tree-wide: fix assorted typos all over the place 2009-12-04 15:39:55 +01:00
mm Merge branch 'for-linus' of git://git.monstr.eu/linux-2.6-microblaze 2009-09-24 09:01:44 -07:00
platform microblaze: GPIO reset support 2009-12-14 08:40:08 +01:00
Kconfig microblaze: Lockdep support 2009-12-14 08:40:09 +01:00
Kconfig.debug microblaze_v8: Kconfig patches 2009-03-27 14:25:50 +01:00
Makefile microblaze: Support simpleImage.dts make target 2009-09-24 10:28:22 +02:00