+ mm-use-cpu_bits_none-to-initialize-init_mmcpu_bitmask.patch added to -mm tree

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



The patch titled
     Subject: mm: use CPU_BITS_NONE to initialize init_mm.cpu_bitmask
has been added to the -mm tree.  Its filename is
     mm-use-cpu_bits_none-to-initialize-init_mmcpu_bitmask.patch

This patch should soon appear at
    http://ozlabs.org/~akpm/mmots/broken-out/mm-use-cpu_bits_none-to-initialize-init_mmcpu_bitmask.patch
and later at
    http://ozlabs.org/~akpm/mmotm/broken-out/mm-use-cpu_bits_none-to-initialize-init_mmcpu_bitmask.patch

Before you just go and hit "reply", please:
   a) Consider who else should be cc'ed
   b) Prefer to cc a suitable mailing list as well
   c) Ideally: find the original patch on the mailing list and do a
      reply-to-all to that, adding suitable additional cc's

*** Remember to use Documentation/process/submit-checklist.rst when testing your code ***

The -mm tree is included into linux-next and is updated
there every 3-4 working days

------------------------------------------------------
From: Mike Rapoport <rppt@xxxxxxxxxxxxx>
Subject: 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@xxxxxxxxxxxxx
Signed-off-by: Mike Rapoport <rppt@xxxxxxxxxxxxx>
Reviewed-by: Andrew Morton <akpm@xxxxxxxxxxxxxxxxxxxx>
Signed-off-by: Andrew Morton <akpm@xxxxxxxxxxxxxxxxxxxx>
---

 init/main.c  |    1 -
 mm/init-mm.c |    2 +-
 2 files changed, 1 insertion(+), 2 deletions(-)

--- a/init/main.c~mm-use-cpu_bits_none-to-initialize-init_mmcpu_bitmask
+++ a/init/main.c
@@ -595,7 +595,6 @@ asmlinkage __visible void __init start_k
 	page_address_init();
 	pr_notice("%s", linux_banner);
 	setup_arch(&command_line);
-	mm_init_cpumask(&init_mm);
 	setup_command_line(command_line);
 	setup_nr_cpu_ids();
 	setup_per_cpu_areas();
--- a/mm/init-mm.c~mm-use-cpu_bits_none-to-initialize-init_mmcpu_bitmask
+++ a/mm/init-mm.c
@@ -35,6 +35,6 @@ struct mm_struct init_mm = {
 	.arg_lock	=  __SPIN_LOCK_UNLOCKED(init_mm.arg_lock),
 	.mmlist		= LIST_HEAD_INIT(init_mm.mmlist),
 	.user_ns	= &init_user_ns,
-	.cpu_bitmap	= { [BITS_TO_LONGS(NR_CPUS)] = 0},
+	.cpu_bitmap	= CPU_BITS_NONE,
 	INIT_MM_CONTEXT(init_mm)
 };
_

Patches currently in -mm which might be from rppt@xxxxxxxxxxxxx are

ia64-switch-to-generic-version-of-pte-allocation.patch
sh-switch-to-generic-version-of-pte-allocation.patch
mm-use-cpu_bits_none-to-initialize-init_mmcpu_bitmask.patch
mm-madvise-reduce-code-duplication-in-error-handling-paths.patch




[Index of Archives]     [Kernel Archive]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]

  Powered by Linux