]> err.no Git - linux-2.6/blobdiff - kernel/lockdep.c
Blackfin RTC Driver: do all initialization before we register the rtc and make it...
[linux-2.6] / kernel / lockdep.c
index 77fa776a2da800b5ad1d96ee4f8e599d0ec714b0..3bfb1877a00372b0a99e4a37d1686a220251b910 100644 (file)
@@ -2582,7 +2582,7 @@ static int __lock_acquire(struct lockdep_map *lock, unsigned int subclass,
        hlock->trylock = trylock;
        hlock->read = read;
        hlock->check = check;
-       hlock->hardirqs_off = hardirqs_off;
+       hlock->hardirqs_off = !!hardirqs_off;
 #ifdef CONFIG_LOCK_STAT
        hlock->waittime_stamp = 0;
        hlock->holdtime_stamp = sched_clock();