Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1251421
| From | Jisheng Zhang <jszhang@marvell.com> |
|---|---|
| Newsgroups | linux.kernel |
| Subject | [PATCH 3/7] clocksource: pistachio: fix ftrace |
| Date | 2015-10-20 10:20 +0200 |
| Message-ID | <qlAjf-6os-5@gated-at.bofh.it> (permalink) |
| References | <qlA9z-6df-3@gated-at.bofh.it> |
| Organization | linux.* mail to news gateway |
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
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Back to linux.kernel | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
[PATCH 0/7] clocksource: add missing notrace attribute Jisheng Zhang <jszhang@marvell.com> - 2015-10-20 10:10 +0200
[PATCH 3/7] clocksource: pistachio: fix ftrace Jisheng Zhang <jszhang@marvell.com> - 2015-10-20 10:20 +0200
[PATCH 5/7] clocksource: vf_pit_timer: don't trace pit_read_sched_clock() Jisheng Zhang <jszhang@marvell.com> - 2015-10-20 10:20 +0200
[PATCH 2/7] clocksource: samsung_pwm_timer: fix ftrace Jisheng Zhang <jszhang@marvell.com> - 2015-10-20 10:20 +0200
Re: [PATCH 0/7] clocksource: add missing notrace attribute Daniel Lezcano <daniel.lezcano@linaro.org> - 2015-10-26 19:00 +0100
Re: [PATCH 0/7] clocksource: add missing notrace attribute Jisheng Zhang <jszhang@marvell.com> - 2015-10-27 03:30 +0100
csiph-web