commit | a77754b4d0731321db266c6c60ffcd7c62757da5 | [log] [tgz] |
---|---|---|
author | David S. Miller <davem@sunset.davemloft.net> | Mon Mar 06 19:59:50 2006 -0800 |
committer | David S. Miller <davem@sunset.davemloft.net> | Mon Mar 20 01:14:20 2006 -0800 |
tree | 37cc4c6793e2b616791d42ee840e5a007a13eccb | |
parent | 9132983ae140a8ca81e95e081d5a4c0dd7a7f670 [diff] |
[SPARC64]: Bulletproof MMU context locking. 1) Always spin_lock_init() in init_context(). The caller essentially clears it out, or copies the mm info from the parent. In both cases we need to explicitly initialize the spinlock. 2) Always do explicit IRQ disabling while taking mm->context.lock and ctx_alloc_lock. Signed-off-by: David S. Miller <davem@davemloft.net>