Maksim Rayskiy
6667deb69e
MIPS: Move idle task creation to work queue
...
To avoid forking usermode thread when creating an idle task, move fork_idle
to a work queue.
If kernel starts with maxcpus= option which does not bring all available
cpus online at boot time, idle tasks for offline cpus are not created. If
later offline cpus are hotplugged through sysfs, __cpu_up is called in
the context of the user task, and fork_idle copies its non-zero mm
pointer. This causes BUG() in per_cpu_trap_init.
This also avoids issues with resource limits of the CPU writing to sysfs,
containers, maybe others.
Signed-off-by: Maksim Rayskiy <mrayskiy@broadcom.com>
To: linux-mips@linux-mips.org
Patchwork: https://patchwork.linux-mips.org/patch/2070/
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
2011-03-14 21:07:27 +01:00
..
2010-05-21 21:31:14 +01:00
2008-08-26 09:10:27 +01:00
2007-07-10 17:33:01 +01:00
2010-08-05 13:26:30 +01:00
2008-05-01 08:03:58 -07:00
2009-07-03 15:45:27 +01:00
2010-10-18 16:59:02 +01:00
2010-10-07 14:08:54 +01:00
2010-10-07 14:08:54 +01:00
2010-10-07 14:08:54 +01:00
2010-12-16 18:10:58 +00:00
2010-10-07 14:08:54 +01:00
2010-10-07 14:08:54 +01:00
2010-10-07 14:08:54 +01:00
2010-08-05 13:26:21 +01:00
2011-01-18 19:30:22 +01:00
2009-04-21 13:41:47 -07:00
2009-07-03 15:45:29 +01:00
2009-12-17 01:57:17 +00:00
2009-04-21 13:41:47 -07:00
2009-04-21 13:41:47 -07:00
2008-07-15 18:44:29 +01:00
2008-10-03 17:58:58 +01:00
2011-03-14 21:07:24 +01:00
2009-01-30 21:32:58 +00:00
2008-07-15 18:44:34 +01:00
2009-11-02 12:00:07 +01:00
2010-10-07 14:08:54 +01:00
2010-10-07 14:08:54 +01:00
2009-09-21 06:27:08 +02:00
2010-10-07 14:08:54 +01:00
2010-10-07 14:08:54 +01:00
2010-10-07 14:08:54 +01:00
2010-02-27 12:53:31 +01:00
2009-03-30 14:49:44 +02:00
2010-10-07 14:08:54 +01:00
2010-10-07 14:08:54 +01:00
2010-10-29 19:08:27 +01:00
2011-01-18 19:30:24 +01:00
2010-10-04 18:33:54 +01:00
2010-08-05 13:26:29 +01:00
2010-10-04 18:33:54 +01:00
2010-12-16 18:10:54 +00:00
2007-08-27 02:16:59 +01:00
2011-01-18 19:30:24 +01:00
2010-08-05 13:26:06 +01:00
2009-12-17 01:57:21 +00:00
2011-01-18 19:30:21 +01:00
2010-10-25 08:12:27 -07:00
2009-09-17 20:07:51 +02:00
2011-01-18 19:30:24 +01:00
2010-02-27 12:53:14 +01:00
2011-03-14 21:07:26 +01:00
2011-03-14 21:07:27 +01:00
2011-01-18 19:30:22 +01:00
2010-12-16 18:10:52 +00:00
2011-01-15 22:01:58 -07:00
2009-07-12 12:22:34 -07:00
2010-10-27 18:03:11 -07:00
2007-03-17 01:03:25 +00:00
2009-09-17 20:07:49 +02:00
2009-09-17 20:07:49 +02:00
2007-07-31 21:35:36 +01:00
2010-10-15 15:53:27 +02:00
2010-10-18 13:10:36 -07:00
2010-10-18 13:10:36 -07:00
2010-10-20 13:18:21 -07:00
2010-10-20 13:18:21 -07:00
2011-01-18 19:30:28 +01:00
2011-03-14 21:07:25 +01:00
2010-10-18 16:59:03 +01:00
2010-04-12 17:26:15 +01:00
2011-03-14 21:07:25 +01:00
2009-09-24 09:34:48 +09:30
2010-12-16 18:11:00 +00:00
2009-09-24 09:34:45 +09:30
2011-03-14 21:07:27 +01:00
2007-06-11 18:20:53 +01:00
2008-01-29 10:14:57 +00:00
2010-10-07 14:08:55 +01:00
2010-02-27 12:53:42 +01:00
2009-11-02 12:00:05 +01:00
2009-08-03 17:52:40 +01:00
2009-07-03 15:45:27 +01:00
2011-03-14 21:07:26 +01:00
2009-11-13 20:46:24 +01:00
2009-06-24 18:34:40 +01:00
2011-01-18 19:30:22 +01:00
2010-10-29 19:08:48 +01:00
2010-07-26 19:08:16 +01:00
2011-01-18 19:30:21 +01:00
2011-03-14 21:07:24 +01:00
2008-10-11 16:18:56 +01:00