| Kernel v2.6.10-bk14 /mm/oom_kill.c |
|---|
 2.6.10-bk14
 mm
 oom_kill.c
diff -Nru a/mm/oom_kill.c b/mm/oom_kill.c
--- a/mm/oom_kill.c 2004-10-13 21:08:29 -07:00
+++ b/mm/oom_kill.c 2005-01-07 21:44:13 -08:00
@@ -233,7 +233,7 @@
* oom_lock protects out_of_memory()'s static variables.
* It's a global lock; this is not performance-critical.
*/
- static spinlock_t oom_lock = SPIN_LOCK_UNLOCKED;
+ static DEFINE_SPINLOCK(oom_lock);
static unsigned long first, last, count, lastkill;
unsigned long now, since;
|