From: Andrew Morton <akpm@linux-foundation.org>
To: mm-commits@vger.kernel.org, zhiguangni01@gmail.com,
akpm@linux-foundation.org
Subject: + mm-improve-the-execution-efficiency-of-early_ioremap_setup.patch added to mm-unstable branch
Date: Mon, 05 Jun 2023 14:56:31 -0700 [thread overview]
Message-ID: <20230605215632.4DC83C433D2@smtp.kernel.org> (raw)
The patch titled
Subject: mm/early_ioremap.c: improve the execution efficiency of early_ioremap_setup()
has been added to the -mm mm-unstable branch. Its filename is
mm-improve-the-execution-efficiency-of-early_ioremap_setup.patch
This patch will shortly appear at
https://git.kernel.org/pub/scm/linux/kernel/git/akpm/25-new.git/tree/patches/mm-improve-the-execution-efficiency-of-early_ioremap_setup.patch
This patch will later appear in the mm-unstable branch at
git://git.kernel.org/pub/scm/linux/kernel/git/akpm/mm
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 via the mm-everything
branch at git://git.kernel.org/pub/scm/linux/kernel/git/akpm/mm
and is updated there every 2-3 working days
------------------------------------------------------
From: Liam Ni <zhiguangni01@gmail.com>
Subject: mm/early_ioremap.c: improve the execution efficiency of early_ioremap_setup()
Date: Sat, 3 Jun 2023 10:31:16 +0800
Reduce the number of invalid loops of the function early_ioremap_setup()
to improve the efficiency of function execution
Link: https://lkml.kernel.org/r/CACZJ9cU6t5sLoDwE6_XOg+UJLpZt4+qHfjYN2bA0s+3y9y6pQQ@mail.gmail.com
Signed-off-by: LiamNi <zhiguangni01@gmail.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
---
mm/early_ioremap.c | 8 +++-----
1 file changed, 3 insertions(+), 5 deletions(-)
--- a/mm/early_ioremap.c~mm-improve-the-execution-efficiency-of-early_ioremap_setup
+++ a/mm/early_ioremap.c
@@ -72,12 +72,10 @@ void __init early_ioremap_setup(void)
{
int i;
- for (i = 0; i < FIX_BTMAPS_SLOTS; i++)
- if (WARN_ON(prev_map[i]))
- break;
-
- for (i = 0; i < FIX_BTMAPS_SLOTS; i++)
+ for (i = 0; i < FIX_BTMAPS_SLOTS; i++) {
+ WARN_ON_ONCE(prev_map[i]);
slot_virt[i] = __fix_to_virt(FIX_BTMAP_BEGIN - NR_FIX_BTMAPS*i);
+ }
}
static int __init check_early_ioremap_leak(void)
_
Patches currently in -mm which might be from zhiguangni01@gmail.com are
mm-improve-the-execution-efficiency-of-early_ioremap_setup.patch
next reply other threads:[~2023-06-05 21:56 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-06-05 21:56 Andrew Morton [this message]
2023-06-08 12:50 ` + mm-improve-the-execution-efficiency-of-early_ioremap_setup.patch added to mm-unstable branch Liam Ni
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20230605215632.4DC83C433D2@smtp.kernel.org \
--to=akpm@linux-foundation.org \
--cc=linux-kernel@vger.kernel.org \
--cc=mm-commits@vger.kernel.org \
--cc=zhiguangni01@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.