[PATCH 0/2 -rt] make locckdep selftest work on -rt

From: Yong Zhang
Date: Mon Apr 16 2012 - 03:02:10 EST


On -rt,
1) There is no softirq context any more;
2) rwlock can not be used in harirq context;

Wrt that, convert spinlock to raw spinlock to make spinlock+hardirq
work, and discard the test for rwlock+hardirq and softirq.

BTW, I think patch#1 can go to upstream.

Thanks,
Yong

---
Yong Zhang (2):
lockdep: selftest: convert spinlock to raw spinlock
lockdep: selftest: Only do hardirq context test for raw spinlock

lib/locking-selftest.c | 57 +++++++++++++++++++++++++++++++++--------------
1 files changed, 40 insertions(+), 17 deletions(-)

--
1.7.5.4

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/