mm: numa: initialise numa balancing after jump label initialisation
authorMel Gorman <mgorman@suse.de>
Wed, 29 Jan 2014 22:05:42 +0000 (14:05 -0800)
committerJiri Slaby <jslaby@suse.cz>
Wed, 3 Jun 2015 09:16:19 +0000 (11:16 +0200)
commit1a6d0d9797f71212b371fe7c288d1d28131e9010
treea840b8cec413a8464a349d185d69d464d368eb73
parentbd7044dfd8a3bcfd386d2cd7f0c01ba884a2cc88
mm: numa: initialise numa balancing after jump label initialisation

commit c297663c0b3930491a3cb2aba4b6e5a7159c3503 upstream.

The command line parsing takes place before jump labels are initialised
which generates a warning if numa_balancing= is specified and
CONFIG_JUMP_LABEL is set.

On older kernels before commit c4b2c0c5f647 ("static_key: WARN on usage
before jump_label_init was called") the kernel would have crashed.  This
patch enables automatic numa balancing later in the initialisation
process if numa_balancing= is specified.

Signed-off-by: Mel Gorman <mgorman@suse.de>
Acked-by: Rik van Riel <riel@redhat.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Signed-off-by: Jiri Slaby <jslaby@suse.cz>
mm/mempolicy.c