Skip to content

Commit

Permalink
[MIPS] unexport null_perf_irq() and make it static
Browse files Browse the repository at this point in the history
This patch unexports the null_perf_irq() symbol, and simultaneously
makes this function static.

Signed-off-by: Dmitri Vorobiev <[email protected]>
Signed-off-by: Ralf Baechle <[email protected]>
  • Loading branch information
dmvo authored and ralfbaechle committed Apr 28, 2008
1 parent c5b0680 commit 4668473
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
4 changes: 1 addition & 3 deletions arch/mips/kernel/time.c
Original file line number Diff line number Diff line change
Expand Up @@ -49,13 +49,11 @@ int update_persistent_clock(struct timespec now)
return rtc_mips_set_mmss(now.tv_sec);
}

int null_perf_irq(void)
static int null_perf_irq(void)
{
return 0;
}

EXPORT_SYMBOL(null_perf_irq);

int (*perf_irq)(void) = null_perf_irq;

EXPORT_SYMBOL(perf_irq);
Expand Down
1 change: 0 additions & 1 deletion arch/mips/oprofile/op_impl.h
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@
#ifndef OP_IMPL_H
#define OP_IMPL_H 1

extern int null_perf_irq(void);
extern int (*perf_irq)(void);

/* Per-counter configuration as set via oprofilefs. */
Expand Down
5 changes: 4 additions & 1 deletion arch/mips/oprofile/op_model_mipsxx.c
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,8 @@

#define M_COUNTER_OVERFLOW (1UL << 31)

static int (*save_perf_irq)(void);

#ifdef CONFIG_MIPS_MT_SMP
static int cpu_has_mipsmt_pertccounters;
#define WHAT (M_TC_EN_VPE | \
Expand Down Expand Up @@ -369,6 +371,7 @@ static int __init mipsxx_init(void)
return -ENODEV;
}

save_perf_irq = perf_irq;
perf_irq = mipsxx_perfcount_handler;

return 0;
Expand All @@ -381,7 +384,7 @@ static void mipsxx_exit(void)
counters = counters_per_cpu_to_total(counters);
on_each_cpu(reset_counters, (void *)counters, 0, 1);

perf_irq = null_perf_irq;
perf_irq = save_perf_irq;
}

struct op_mips_model op_model_mipsxx_ops = {
Expand Down

0 comments on commit 4668473

Please sign in to comment.