Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 66157
b: refs/heads/master
c: d80c1c0
h: refs/heads/master
i:
  66155: fe28702
v: v3
  • Loading branch information
Yoichi Yuasa authored and Ralf Baechle committed Oct 11, 2007
1 parent d360767 commit 7e1f2fd
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 17 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: ec70f65e3b5309e7ac8b5508ff5657050c92b913
refs/heads/master: d80c1c0b2207ba326b2c06249dfebddf8ac863bd
14 changes: 8 additions & 6 deletions trunk/arch/mips/kernel/i8259.c
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,10 @@

static int i8259A_auto_eoi = -1;
DEFINE_SPINLOCK(i8259A_lock);
/* some platforms call this... */
void mask_and_ack_8259A(unsigned int);
static void disable_8259A_irq(unsigned int irq);
static void enable_8259A_irq(unsigned int irq);
static void mask_and_ack_8259A(unsigned int irq);
static void init_8259A(int auto_eoi);

static struct irq_chip i8259A_chip = {
.name = "XT-PIC",
Expand All @@ -56,7 +58,7 @@ static unsigned int cached_irq_mask = 0xffff;
#define cached_master_mask (cached_irq_mask)
#define cached_slave_mask (cached_irq_mask >> 8)

void disable_8259A_irq(unsigned int irq)
static void disable_8259A_irq(unsigned int irq)
{
unsigned int mask;
unsigned long flags;
Expand All @@ -72,7 +74,7 @@ void disable_8259A_irq(unsigned int irq)
spin_unlock_irqrestore(&i8259A_lock, flags);
}

void enable_8259A_irq(unsigned int irq)
static void enable_8259A_irq(unsigned int irq)
{
unsigned int mask;
unsigned long flags;
Expand Down Expand Up @@ -142,7 +144,7 @@ static inline int i8259A_irq_real(unsigned int irq)
* first, _then_ send the EOI, and the order of EOI
* to the two 8259s is important!
*/
void mask_and_ack_8259A(unsigned int irq)
static void mask_and_ack_8259A(unsigned int irq)
{
unsigned int irqmask;
unsigned long flags;
Expand Down Expand Up @@ -256,7 +258,7 @@ static int __init i8259A_init_sysfs(void)

device_initcall(i8259A_init_sysfs);

void init_8259A(int auto_eoi)
static void init_8259A(int auto_eoi)
{
unsigned long flags;

Expand Down
7 changes: 0 additions & 7 deletions trunk/include/asm-mips/hw_irq.h
Original file line number Diff line number Diff line change
Expand Up @@ -8,15 +8,8 @@
#ifndef __ASM_HW_IRQ_H
#define __ASM_HW_IRQ_H

#include <linux/profile.h>
#include <asm/atomic.h>

extern void disable_8259A_irq(unsigned int irq);
extern void enable_8259A_irq(unsigned int irq);
extern int i8259A_irq_pending(unsigned int irq);
extern void make_8259A_irq(unsigned int irq);
extern void init_8259A(int aeoi);

extern atomic_t irq_err_count;

/*
Expand Down
5 changes: 2 additions & 3 deletions trunk/include/asm-mips/i8259.h
Original file line number Diff line number Diff line change
Expand Up @@ -37,9 +37,8 @@

extern spinlock_t i8259A_lock;

extern void init_8259A(int auto_eoi);
extern void enable_8259A_irq(unsigned int irq);
extern void disable_8259A_irq(unsigned int irq);
extern int i8259A_irq_pending(unsigned int irq);
extern void make_8259A_irq(unsigned int irq);

extern void init_i8259_irqs(void);

Expand Down

0 comments on commit 7e1f2fd

Please sign in to comment.