From: guoren@kernel.org
To: daniel.lezcano@linaro.org, tglx@linutronix.de
Cc: guoren@kernel.org, linux-kernel@vger.kernel.org,
Guo Ren <ren_guo@c-sky.com>
Subject: [PATCH 13/14] clocksource/drivers/c-sky: fixup ftrace call-graph panic
Date: Mon, 31 Dec 2018 23:27:04 +0800 [thread overview]
Message-ID: <1546270024-3961-2-git-send-email-guoren@kernel.org> (raw)
In-Reply-To: <1546270024-3961-1-git-send-email-guoren@kernel.org>
From: Guo Ren <ren_guo@c-sky.com>
We must add notrace on sched_clock_read, because it's called
by ftrace_graph_caller.
Signed-off-by: Guo Ren <ren_guo@c-sky.com>
---
drivers/clocksource/timer-mp-csky.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/clocksource/timer-mp-csky.c b/drivers/clocksource/timer-mp-csky.c
index 3cb6dbc..183a995 100644
--- a/drivers/clocksource/timer-mp-csky.c
+++ b/drivers/clocksource/timer-mp-csky.c
@@ -97,7 +97,7 @@ static int csky_mptimer_dying_cpu(unsigned int cpu)
/*
* clock source
*/
-static u64 sched_clock_read(void)
+static u64 notrace sched_clock_read(void)
{
return (u64)mfcr(PTIM_CCVR);
}
--
2.7.4
prev parent reply other threads:[~2018-12-31 15:27 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-12-31 15:27 [PATCH 06/14] clocksource/drivers/c-sky: fixup qemu fail to bootup sometimes guoren
2018-12-31 15:27 ` guoren [this message]
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=1546270024-3961-2-git-send-email-guoren@kernel.org \
--to=guoren@kernel.org \
--cc=daniel.lezcano@linaro.org \
--cc=linux-kernel@vger.kernel.org \
--cc=ren_guo@c-sky.com \
--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®