From: Valentin Schneider <valentin.schneider@arm.com>
To: Peter Zijlstra <peterz@infradead.org>, Qian Cai <cai@lca.pw>
Cc: akpm@linux-foundation.org, mark.rutland@arm.com,
marc.zyngier@arm.com, daniel.lezcano@linaro.org,
tglx@linutronix.de, mingo@kernel.org, longman@redhat.com,
linux-arm-kernel@lists.infradead.org,
linux-kernel@vger.kernel.org
Subject: Re: [RESEND PATCH v2] clocksource/arm_arch_timer: fix a lockdep warning
Date: Mon, 10 Dec 2018 14:19:53 +0000 [thread overview]
Message-ID: <9303a6cf-24af-2f31-9fbd-8c1ecdd5e4f4@arm.com> (raw)
In-Reply-To: <20181210140703.GM5289@hirez.programming.kicks-ass.net>
Hi,
On 10/12/2018 14:07, Peter Zijlstra wrote:
[...]
> ---
> kernel/cpu.c | 2 ++
> 1 file changed, 2 insertions(+)
>
> diff --git a/kernel/cpu.c b/kernel/cpu.c
> index 91d5c38eb7e5..e1ee8caf28b5 100644
> --- a/kernel/cpu.c
> +++ b/kernel/cpu.c
> @@ -313,6 +313,8 @@ void cpus_write_unlock(void)
>
> void lockdep_assert_cpus_held(void)
> {
> + if (system_state < SYSTEM_RUNNING)
> + return;
> percpu_rwsem_assert_held(&cpu_hotplug_lock);
> }
>
Kinda hijacking the thread here - is that something we'd want to replace
40fa3780bac2 ("sched/core: Take the hotplug lock in sched_init_smp()")
with?
next prev parent reply other threads:[~2018-12-10 14:19 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-12-03 22:45 [PATCH " Qian Cai
2018-12-10 13:52 ` [RESEND PATCH " Qian Cai
2018-12-10 14:07 ` Peter Zijlstra
2018-12-10 14:19 ` Valentin Schneider [this message]
2018-12-10 14:47 ` Peter Zijlstra
2018-12-10 15:47 ` Qian Cai
2018-12-10 21:31 ` Thomas Gleixner
2018-12-14 15:05 ` Qian Cai
2018-12-10 14:48 ` Marc Zyngier
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=9303a6cf-24af-2f31-9fbd-8c1ecdd5e4f4@arm.com \
--to=valentin.schneider@arm.com \
--cc=akpm@linux-foundation.org \
--cc=cai@lca.pw \
--cc=daniel.lezcano@linaro.org \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=linux-kernel@vger.kernel.org \
--cc=longman@redhat.com \
--cc=marc.zyngier@arm.com \
--cc=mark.rutland@arm.com \
--cc=mingo@kernel.org \
--cc=peterz@infradead.org \
--cc=tglx@linutronix.de \
/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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®