Skip to content

Commit

Permalink
irqchip/mips-gic: Mark count and compare accessors notrace
Browse files Browse the repository at this point in the history
gic_read_count(), gic_write_compare() and gic_write_cpu_compare() are
often used in a sequence to update the compare register with a count
value increased by a small offset.
With small delta values used to update the compare register, the time to
update function trace for these operations may be longer than the update
timeout leading to update failure.

Signed-off-by: Marcin Nowakowski <marcin.nowakowski@imgtec.com>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Cc: Marc Zyngier <marc.zyngier@arm.com>
Cc: linux-mips@linux-mips.org
Cc: Jason Cooper <jason@lakedaemon.net>
Link: http://lkml.kernel.org/r/1496991845-27031-1-git-send-email-marcin.nowakowski@imgtec.com
  • Loading branch information
Marcin Nowakowski authored and Thomas Gleixner committed Jun 20, 2017
1 parent 41f1830 commit 9f93d87
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions drivers/irqchip/irq-mips-gic.c
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,7 @@ static inline void gic_map_to_vpe(unsigned int intr, unsigned int vpe)
}

#ifdef CONFIG_CLKSRC_MIPS_GIC
u64 gic_read_count(void)
u64 notrace gic_read_count(void)
{
unsigned int hi, hi2, lo;

Expand All @@ -167,7 +167,7 @@ unsigned int gic_get_count_width(void)
return bits;
}

void gic_write_compare(u64 cnt)
void notrace gic_write_compare(u64 cnt)
{
if (mips_cm_is64) {
gic_write(GIC_REG(VPE_LOCAL, GIC_VPE_COMPARE), cnt);
Expand All @@ -179,7 +179,7 @@ void gic_write_compare(u64 cnt)
}
}

void gic_write_cpu_compare(u64 cnt, int cpu)
void notrace gic_write_cpu_compare(u64 cnt, int cpu)
{
unsigned long flags;

Expand Down

0 comments on commit 9f93d87

Please sign in to comment.