diff options
author | Peter Zijlstra <peterz@infradead.org> | 2008-07-30 13:26:57 +0200 |
---|---|---|
committer | Ingo Molnar <mingo@elte.hu> | 2008-08-01 10:46:48 +0200 |
commit | 5e710e37bde120bb069f691bee68e69ef4393173 (patch) | |
tree | f622aa07d6e1fb5851bd814a98945c7fb1ff9cd2 /kernel/lockdep.c | |
parent | e0fdace10e75dac67d906213b780ff1b1a4cc360 (diff) |
lockdep: change scheduler annotation
While thinking about David's graph walk lockdep patch it _finally_
dawned on me that there is no reason we have a lock class per cpu ...
Sorry for being dense :-/
The below changes the annotation from a lock class per cpu, to a single
nested lock, as the scheduler never holds more that 2 rq locks at a time
anyway.
If there was code requiring holding all rq locks this would not work and
the original annotation would be the only option, but that not being the
case, this is a much lighter one.
Compiles and boots on a 2-way x86_64.
Signed-off-by: Peter Zijlstra <a.p.zijlstra@chello.nl>
Cc: David Miller <davem@davemloft.net>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
Diffstat (limited to 'kernel/lockdep.c')
0 files changed, 0 insertions, 0 deletions