All of lore.kernel.org
 help / color / mirror / Atom feed
From: wonder_rock@126.com
To: catalin.marinas@arm.com, will@kernel.org
Cc: frederic@kernel.org, ardb@kernel.org, wonder_rock@126.com,
	mark.rutland@arm.com, linux-arm-kernel@lists.infradead.org,
	linux-kernel@vger.kernel.org
Subject: [PATCH 1/1] arm64: preempt: Add NEED_RESCHED to the preempt_count()
Date: Mon,  5 Sep 2022 22:18:29 +0800	[thread overview]
Message-ID: <20220905141829.28605-1-wonder_rock@126.com> (raw)

From: Deyan Wang <wonder_rock@126.com>

preempt_count() will be checked in preempt_schedule_irq(),
we need check if NEED_RESCHED in preempt point.

Signed-off-by: Deyan Wang <wonder_rock@126.com>
---
 arch/arm64/include/asm/preempt.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/arch/arm64/include/asm/preempt.h b/arch/arm64/include/asm/preempt.h
index 0159b625cc7f..083b0fd3c52a 100644
--- a/arch/arm64/include/asm/preempt.h
+++ b/arch/arm64/include/asm/preempt.h
@@ -10,7 +10,7 @@
 
 static inline int preempt_count(void)
 {
-	return READ_ONCE(current_thread_info()->preempt.count);
+	return READ_ONCE(current_thread_info()->preempt_count);
 }
 
 static inline void preempt_count_set(u64 pc)
-- 
2.25.1


WARNING: multiple messages have this Message-ID (diff)
From: wonder_rock@126.com
To: catalin.marinas@arm.com, will@kernel.org
Cc: frederic@kernel.org, ardb@kernel.org, wonder_rock@126.com,
	mark.rutland@arm.com, linux-arm-kernel@lists.infradead.org,
	linux-kernel@vger.kernel.org
Subject: [PATCH 1/1] arm64: preempt: Add NEED_RESCHED to the preempt_count()
Date: Mon,  5 Sep 2022 22:18:29 +0800	[thread overview]
Message-ID: <20220905141829.28605-1-wonder_rock@126.com> (raw)

From: Deyan Wang <wonder_rock@126.com>

preempt_count() will be checked in preempt_schedule_irq(),
we need check if NEED_RESCHED in preempt point.

Signed-off-by: Deyan Wang <wonder_rock@126.com>
---
 arch/arm64/include/asm/preempt.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/arch/arm64/include/asm/preempt.h b/arch/arm64/include/asm/preempt.h
index 0159b625cc7f..083b0fd3c52a 100644
--- a/arch/arm64/include/asm/preempt.h
+++ b/arch/arm64/include/asm/preempt.h
@@ -10,7 +10,7 @@
 
 static inline int preempt_count(void)
 {
-	return READ_ONCE(current_thread_info()->preempt.count);
+	return READ_ONCE(current_thread_info()->preempt_count);
 }
 
 static inline void preempt_count_set(u64 pc)
-- 
2.25.1


_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel

             reply	other threads:[~2022-09-05 14:19 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-09-05 14:18 wonder_rock [this message]
2022-09-05 14:18 ` [PATCH 1/1] arm64: preempt: Add NEED_RESCHED to the preempt_count() wonder_rock
2022-09-05 15:50 ` wonder_rock
2022-09-05 15:50   ` wonder_rock
2022-09-06 12:11   ` Will Deacon
2022-09-06 12:11     ` Will Deacon

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=20220905141829.28605-1-wonder_rock@126.com \
    --to=wonder_rock@126.com \
    --cc=ardb@kernel.org \
    --cc=catalin.marinas@arm.com \
    --cc=frederic@kernel.org \
    --cc=linux-arm-kernel@lists.infradead.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=mark.rutland@arm.com \
    --cc=will@kernel.org \
    /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.