s390/mem_detect: fix lockdep irq tracing
authorHeiko Carstens <heiko.carstens@de.ibm.com>
Sat, 27 Apr 2013 10:42:18 +0000 (12:42 +0200)
committerMartin Schwidefsky <schwidefsky@de.ibm.com>
Thu, 2 May 2013 13:50:22 +0000 (15:50 +0200)
commitd009f4d8860defaea65ea7573818b96f3c4b171e
treeb4ddaf9bc9ac7a88a5b051a8b5e8e536391e506a
parent066b9fd660befd59dff77e24963338bfeabb8c3b
s390/mem_detect: fix lockdep irq tracing

When disabling and enabling interrupts we must tell lockdep.
So use local_irq_save()/restore() to disable and enable interrupts.
The DAT disabling/enabling get handled separately now.
Note: we may not call trace_hardirqs_on() with DAT disabled, since
the generic code may access vmalloc'ed data structures.

Reported-by: Michael Holzheu <holzheu@linux.vnet.ibm.com>
Signed-off-by: Heiko Carstens <heiko.carstens@de.ibm.com>
Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
arch/s390/mm/mem_detect.c