--- zzzz-none-000/linux-2.6.13.1/mm/oom_kill.c 2005-09-10 02:42:58.000000000 +0000 +++ ohio-7170-487/linux-2.6.13.1/mm/oom_kill.c 2006-06-09 11:39:36.000000000 +0000 @@ -15,6 +15,7 @@ * kernel subsystems and hints as to where to find out what things do. */ +#include #include #include #include @@ -41,6 +42,7 @@ * algorithm has been meticulously tuned to meet the principle * of least surprise ... (be careful when you change it) */ +#if !defined(CONFIG_DISABLE_OOM_KILLER) unsigned long badness(struct task_struct *p, unsigned long uptime) { @@ -293,3 +295,14 @@ __set_current_state(TASK_INTERRUPTIBLE); schedule_timeout(1); } +#else /*--- #if !defined(CONFIG_DISABLE_OOM_KILLER) ---*/ + +void out_of_memory(unsigned int __nocast gfp_mask, int order) { + panic("[out_of_memory]\n"); +} + +unsigned long badness(struct task_struct *p, unsigned long uptime) { + return 0UL; +} + +#endif /*--- #else ---*/ /*--- #if !defined(CONFIG_DISABLE_OOM_KILLER) ---*/