Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/dtor/input
[linux-2.6-block.git] / drivers / tty / sysrq.c
index 77fcad4371ce74efa24f6fa72ab6eb39050cc497..814655ee2d6126bace613a3464d81475f2be9362 100644 (file)
@@ -15,6 +15,7 @@
 #define pr_fmt(fmt) KBUILD_MODNAME ": " fmt
 
 #include <linux/sched.h>
+#include <linux/sched/rt.h>
 #include <linux/interrupt.h>
 #include <linux/mm.h>
 #include <linux/fs.h>
@@ -347,7 +348,8 @@ static struct sysrq_key_op sysrq_term_op = {
 
 static void moom_callback(struct work_struct *ignored)
 {
-       out_of_memory(node_zonelist(0, GFP_KERNEL), GFP_KERNEL, 0, NULL, true);
+       out_of_memory(node_zonelist(first_online_node, GFP_KERNEL), GFP_KERNEL,
+                     0, NULL, true);
 }
 
 static DECLARE_WORK(moom_work, moom_callback);