From: jszhang@marvell.com (Jisheng Zhang)
To: linux-arm-kernel@lists.infradead.org
Subject: [PATCH 3/7] clocksource: pistachio: fix ftrace
Date: Tue, 20 Oct 2015 16:02:36 +0800 [thread overview]
Message-ID: <1445328160-402-4-git-send-email-jszhang@marvell.com> (raw)
In-Reply-To: <1445328160-402-1-git-send-email-jszhang@marvell.com>
Currently pistachio can be used as a scheduler clock, we properly marked
pistachio_read_sched_clock() as notrace. But we then call another function
pistachio_clocksource_read_cycles() that _wasn't_ notrace.
This patch fix this by adding notrace attribute to the
pistachio_clocksource_read_cycles() function.
Signed-off-by: Jisheng Zhang <jszhang@marvell.com>
---
drivers/clocksource/time-pistachio.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/drivers/clocksource/time-pistachio.c b/drivers/clocksource/time-pistachio.c
index 18d4266..bba6799 100644
--- a/drivers/clocksource/time-pistachio.c
+++ b/drivers/clocksource/time-pistachio.c
@@ -67,7 +67,8 @@ static inline void gpt_writel(void __iomem *base, u32 value, u32 offset,
writel(value, base + 0x20 * gpt_id + offset);
}
-static cycle_t pistachio_clocksource_read_cycles(struct clocksource *cs)
+static cycle_t notrace
+pistachio_clocksource_read_cycles(struct clocksource *cs)
{
struct pistachio_clocksource *pcs = to_pistachio_clocksource(cs);
u32 counter, overflw;
--
2.6.1
next prev parent reply other threads:[~2015-10-20 8:02 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-10-20 8:02 [PATCH 0/7] clocksource: add missing notrace attribute Jisheng Zhang
2015-10-20 8:02 ` [PATCH 1/7] clocksource: arm_global_timer: fix ftrace Jisheng Zhang
2015-10-20 8:02 ` [PATCH 2/7] clocksource: samsung_pwm_timer: " Jisheng Zhang
2015-10-20 8:02 ` Jisheng Zhang [this message]
2015-10-20 8:02 ` [PATCH 4/7] clocksource: prima2: " Jisheng Zhang
2015-10-20 8:02 ` [PATCH 5/7] clocksource: vf_pit_timer: don't trace pit_read_sched_clock() Jisheng Zhang
2015-10-20 8:02 ` [PATCH 6/7] clocksource: digicolor: don't trace digicolor_timer_sched_read() Jisheng Zhang
2015-10-20 11:14 ` Baruch Siach
2015-10-20 8:02 ` [PATCH 7/7] clocksource: fsl_ftm_timer: don't trace ftm_read_sched_clock Jisheng Zhang
2015-10-26 17:50 ` [PATCH 0/7] clocksource: add missing notrace attribute Daniel Lezcano
2015-10-27 2:16 ` Jisheng Zhang
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=1445328160-402-4-git-send-email-jszhang@marvell.com \
--to=jszhang@marvell.com \
--cc=linux-arm-kernel@lists.infradead.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).