]> git.baikalelectronics.ru Git - kernel.git/commit
mm: use CPU_BITS_NONE to initialize init_mm.cpu_bitmask
authorMike Rapoport <rppt@linux.ibm.com>
Mon, 23 Sep 2019 22:36:45 +0000 (15:36 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Tue, 24 Sep 2019 22:54:10 +0000 (15:54 -0700)
commit900af1fcdda25e9259bc06edac631a91293c6882
tree1b98c91cde4aa7821666065c4e08eae6e2fbb85e
parent53ca79c2a830c79a06a53d60ba4e791fc7ce43ea
mm: use CPU_BITS_NONE to initialize init_mm.cpu_bitmask

Replace open-coded bitmap array initialization of init_mm.cpu_bitmask with
neat CPU_BITS_NONE macro.

And, since init_mm.cpu_bitmask is statically set to zero, there is no way
to clear it again in start_kernel().

Link: http://lkml.kernel.org/r/1565703815-8584-1-git-send-email-rppt@linux.ibm.com
Signed-off-by: Mike Rapoport <rppt@linux.ibm.com>
Reviewed-by: Andrew Morton <akpm@linux-foundation.org>
Reviewed-by: David Hildenbrand <david@redhat.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
init/main.c
mm/init-mm.c