Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 113150
b: refs/heads/master
c: 5ff0d55
h: refs/heads/master
v: v3
  • Loading branch information
David S. Miller committed Sep 20, 2008
1 parent a02b52d commit 21b85b7
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 47 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: b218fa0e9c2ad94b4e9ab5517a9210f9fa3745e2
refs/heads/master: 5ff0d55f93f8119b71b33d4c444cf5105d4c1d12
46 changes: 0 additions & 46 deletions trunk/arch/sparc/kernel/tick14.c
Original file line number Diff line number Diff line change
@@ -1,30 +1,12 @@
/* tick14.c
* linux/arch/sparc/kernel/tick14.c
*
* Copyright (C) 1996 David Redman (djhr@tadpole.co.uk)
*
* This file handles the Sparc specific level14 ticker
* This is really useful for profiling OBP uses it for keyboard
* aborts and other stuff.
*
*
*/
#include <linux/errno.h>
#include <linux/sched.h>
#include <linux/kernel.h>
#include <linux/param.h>
#include <linux/string.h>
#include <linux/mm.h>
#include <linux/timex.h>
#include <linux/interrupt.h>

#include <asm/oplib.h>
#include <asm/timer.h>
#include <asm/system.h>
#include <asm/irq.h>
#include <asm/io.h>

#include "irq.h"

extern unsigned long lvl14_save[5];
static unsigned long *linux_lvl14 = NULL;
Expand Down Expand Up @@ -55,31 +37,3 @@ void install_obp_ticker(void)
linux_lvl14[2] = obp_lvl14[2];
linux_lvl14[3] = obp_lvl14[3];
}

void claim_ticker14(irq_handler_t handler,
int irq_nr, unsigned int timeout )
{
int cpu = smp_processor_id();

/* first we copy the obp handler instructions
*/
__disable_irq(irq_nr);
if (!handler)
return;

linux_lvl14 = (unsigned long *)lvl14_save[4];
obp_lvl14[0] = linux_lvl14[0];
obp_lvl14[1] = linux_lvl14[1];
obp_lvl14[2] = linux_lvl14[2];
obp_lvl14[3] = linux_lvl14[3];

if (!request_irq(irq_nr,
handler,
(IRQF_DISABLED | SA_STATIC_ALLOC),
"counter14",
NULL)) {
install_linux_ticker();
load_profile_irq(cpu, timeout);
__enable_irq(irq_nr);
}
}

0 comments on commit 21b85b7

Please sign in to comment.