Linux Headquarters
[ Register ]
[ About us ] [ Home Page ]

Advertisement
[ Kernel ] [ Documentation ] [ Links ] [ Books ]

Advertisement

Kernel v2.6.10-bk14 /mm/oom_kill.c

Filename:/mm/oom_kill.c
Lines Added:1
Lines Deleted:1
Also changed in: (Previous) 2.6.10-bk13  2.6.10-bk12  2.6.9  2.6.9-final  2.6.9-rc4-bk3  2.6.9-rc4-bk2 
(Following) 2.6.11-rc1  2.6.11-rc2  2.6.11-rc3  2.6.11-rc4  2.6.11-rc5  2.6.11 

Location
[  2.6.10-bk14
  [  mm
     o  oom_kill.c

Patch

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;
 


Comments: webmaster (at) linuxhq.com.
Advertising: banners (at) linuxhq.com.
Compilation ©1998-2008 Linux Headquarters, Inc.