mirror of
https://github.com/adulau/aha.git
synced 2024-12-28 11:46:19 +00:00
[MIPS] Fix build error - Delete debugging crap that crept in with CMP
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
This commit is contained in:
parent
272bace7f3
commit
482845a348
1 changed files with 0 additions and 19 deletions
|
@ -58,27 +58,8 @@ static int mips_cpu_timer_irq;
|
|||
static int mips_cpu_perf_irq;
|
||||
extern int cp0_perfcount_irq;
|
||||
|
||||
DEFINE_PER_CPU(unsigned int, tickcount);
|
||||
#define tickcount_this_cpu __get_cpu_var(tickcount)
|
||||
static unsigned long ledbitmask;
|
||||
|
||||
static void mips_timer_dispatch(void)
|
||||
{
|
||||
#if defined(CONFIG_MIPS_MALTA) || defined(CONFIG_MIPS_ATLAS)
|
||||
/*
|
||||
* Yes, this is very tacky, won't work as expected with SMTC and
|
||||
* dyntick will break it,
|
||||
* but it gives me a nice warm feeling during debug
|
||||
*/
|
||||
#define LEDBAR 0xbf000408
|
||||
if (tickcount_this_cpu++ >= HZ) {
|
||||
tickcount_this_cpu = 0;
|
||||
change_bit(smp_processor_id(), &ledbitmask);
|
||||
smp_wmb(); /* Make sure every one else sees the change */
|
||||
/* This will pick up any recent changes made by other CPU's */
|
||||
*(unsigned int *)LEDBAR = ledbitmask;
|
||||
}
|
||||
#endif
|
||||
do_IRQ(mips_cpu_timer_irq);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue