Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 31645
b: refs/heads/master
c: 8ef1a14
h: refs/heads/master
i:
  31643: 62b0e4a
v: v3
  • Loading branch information
Pierre Ossman authored and Russell King committed Jul 2, 2006
1 parent 0bd8385 commit 59d5ebb
Show file tree
Hide file tree
Showing 704 changed files with 1,136 additions and 1,107 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: 6ce6c7faf2d0fede5e1530b0f731a90f138fd69e
refs/heads/master: 8ef1a14379e105c1419d21e96ffac53202bc0501
2 changes: 1 addition & 1 deletion trunk/Documentation/DocBook/videobook.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -976,7 +976,7 @@ static int camera_close(struct video_device *dev)
<title>Interrupt Handling</title>
<para>
Our example handler is for an ISA bus device. If it was PCI you would be
able to share the interrupt and would have set IRQF_SHARED to indicate a
able to share the interrupt and would have set SA_SHIRQ to indicate a
shared IRQ. We pass the device pointer as the interrupt routine argument. We
don't need to since we only support one card but doing this will make it
easier to upgrade the driver for multiple devices in the future.
Expand Down
9 changes: 0 additions & 9 deletions trunk/Documentation/feature-removal-schedule.txt
Original file line number Diff line number Diff line change
Expand Up @@ -257,12 +257,3 @@ Why: Code does no longer build since at least 2.6.0, apparently there is
Who: Ralf Baechle <ralf@linux-mips.org>

---------------------------

What: Interrupt only SA_* flags
When: Januar 2007
Why: The interrupt related SA_* flags are replaced by IRQF_* to move them
out of the signal namespace.

Who: Thomas Gleixner <tglx@linutronix.de>

---------------------------
2 changes: 1 addition & 1 deletion trunk/Documentation/pci.txt
Original file line number Diff line number Diff line change
Expand Up @@ -225,7 +225,7 @@ Generic flavors of pci_request_region() are request_mem_region()
Use these for address resources that are not described by "normal" PCI
interfaces (e.g. BAR).

All interrupt handlers should be registered with IRQF_SHARED and use the devid
All interrupt handlers should be registered with SA_SHIRQ and use the devid
to map IRQs to devices (remember that all PCI interrupts are shared).


Expand Down
2 changes: 1 addition & 1 deletion trunk/Documentation/scsi/tmscsim.txt
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ than the 33.33 MHz being in the PCI spec.

If you want to share the IRQ with another device and the driver refuses to
do so, you might succeed with changing the DC390_IRQ type in tmscsim.c to
IRQF_SHARED | IRQF_DISABLED.
SA_SHIRQ | SA_INTERRUPT.


3.Features
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1149,7 +1149,7 @@
}
chip->port = pci_resource_start(pci, 0);
if (request_irq(pci->irq, snd_mychip_interrupt,
IRQF_DISABLED|IRQF_SHARED, "My Chip", chip)) {
SA_INTERRUPT|SA_SHIRQ, "My Chip", chip)) {
printk(KERN_ERR "cannot grab irq %d\n", pci->irq);
snd_mychip_free(chip);
return -EBUSY;
Expand Down Expand Up @@ -1323,7 +1323,7 @@
<programlisting>
<![CDATA[
if (request_irq(pci->irq, snd_mychip_interrupt,
IRQF_DISABLED|IRQF_SHARED, "My Chip", chip)) {
SA_INTERRUPT|SA_SHIRQ, "My Chip", chip)) {
printk(KERN_ERR "cannot grab irq %d\n", pci->irq);
snd_mychip_free(chip);
return -EBUSY;
Expand All @@ -1342,7 +1342,7 @@

<para>
On the PCI bus, the interrupts can be shared. Thus,
<constant>IRQF_SHARED</constant> is given as the interrupt flag of
<constant>SA_SHIRQ</constant> is given as the interrupt flag of
<function>request_irq()</function>.
</para>

Expand Down
4 changes: 2 additions & 2 deletions trunk/arch/alpha/kernel/irq.c
Original file line number Diff line number Diff line change
Expand Up @@ -94,12 +94,12 @@ show_interrupts(struct seq_file *p, void *v)
#endif
seq_printf(p, " %14s", irq_desc[irq].chip->typename);
seq_printf(p, " %c%s",
(action->flags & IRQF_DISABLED)?'+':' ',
(action->flags & SA_INTERRUPT)?'+':' ',
action->name);

for (action=action->next; action; action = action->next) {
seq_printf(p, ", %c%s",
(action->flags & IRQF_DISABLED)?'+':' ',
(action->flags & SA_INTERRUPT)?'+':' ',
action->name);
}

Expand Down
2 changes: 1 addition & 1 deletion trunk/arch/alpha/kernel/irq_alpha.c
Original file line number Diff line number Diff line change
Expand Up @@ -214,7 +214,7 @@ static unsigned int rtc_startup(unsigned int irq) { return 0; }

struct irqaction timer_irqaction = {
.handler = timer_interrupt,
.flags = IRQF_DISABLED,
.flags = SA_INTERRUPT,
.name = "timer",
};

Expand Down
2 changes: 1 addition & 1 deletion trunk/arch/alpha/kernel/sys_jensen.c
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ jensen_local_startup(unsigned int irq)
* the IPL from being dropped during handler processing.
*/
if (irq_desc[irq].action)
irq_desc[irq].action->flags |= IRQF_DISABLED;
irq_desc[irq].action->flags |= SA_INTERRUPT;
return 0;
}

Expand Down
14 changes: 7 additions & 7 deletions trunk/arch/alpha/kernel/sys_titan.c
Original file line number Diff line number Diff line change
Expand Up @@ -279,15 +279,15 @@ titan_late_init(void)
* all reported to the kernel as machine checks, so the handler
* is a nop so it can be called to count the individual events.
*/
request_irq(63+16, titan_intr_nop, IRQF_DISABLED,
request_irq(63+16, titan_intr_nop, SA_INTERRUPT,
"CChip Error", NULL);
request_irq(62+16, titan_intr_nop, IRQF_DISABLED,
request_irq(62+16, titan_intr_nop, SA_INTERRUPT,
"PChip 0 H_Error", NULL);
request_irq(61+16, titan_intr_nop, IRQF_DISABLED,
request_irq(61+16, titan_intr_nop, SA_INTERRUPT,
"PChip 1 H_Error", NULL);
request_irq(60+16, titan_intr_nop, IRQF_DISABLED,
request_irq(60+16, titan_intr_nop, SA_INTERRUPT,
"PChip 0 C_Error", NULL);
request_irq(59+16, titan_intr_nop, IRQF_DISABLED,
request_irq(59+16, titan_intr_nop, SA_INTERRUPT,
"PChip 1 C_Error", NULL);

/*
Expand Down Expand Up @@ -348,9 +348,9 @@ privateer_init_pci(void)
* Hook a couple of extra err interrupts that the
* common titan code won't.
*/
request_irq(53+16, titan_intr_nop, IRQF_DISABLED,
request_irq(53+16, titan_intr_nop, SA_INTERRUPT,
"NMI", NULL);
request_irq(50+16, titan_intr_nop, IRQF_DISABLED,
request_irq(50+16, titan_intr_nop, SA_INTERRUPT,
"Temperature Warning", NULL);

/*
Expand Down
16 changes: 8 additions & 8 deletions trunk/arch/arm26/kernel/irq.c
Original file line number Diff line number Diff line change
Expand Up @@ -190,7 +190,7 @@ __do_irq(unsigned int irq, struct irqaction *action, struct pt_regs *regs)
int ret;

spin_unlock(&irq_controller_lock);
if (!(action->flags & IRQF_DISABLED))
if (!(action->flags & SA_INTERRUPT))
local_irq_enable();

status = 0;
Expand All @@ -201,7 +201,7 @@ __do_irq(unsigned int irq, struct irqaction *action, struct pt_regs *regs)
action = action->next;
} while (action);

if (status & IRQF_SAMPLE_RANDOM)
if (status & SA_SAMPLE_RANDOM)
add_interrupt_randomness(irq);

spin_lock_irq(&irq_controller_lock);
Expand Down Expand Up @@ -451,7 +451,7 @@ int setup_irq(unsigned int irq, struct irqaction *new)
* so we have to be careful not to interfere with a
* running system.
*/
if (new->flags & IRQF_SAMPLE_RANDOM) {
if (new->flags & SA_SAMPLE_RANDOM) {
/*
* This function might sleep, we want to call it first,
* outside of the atomic block.
Expand All @@ -471,7 +471,7 @@ int setup_irq(unsigned int irq, struct irqaction *new)
p = &desc->action;
if ((old = *p) != NULL) {
/* Can't share interrupts unless both agree to */
if (!(old->flags & new->flags & IRQF_SHARED)) {
if (!(old->flags & new->flags & SA_SHIRQ)) {
spin_unlock_irqrestore(&irq_controller_lock, flags);
return -EBUSY;
}
Expand Down Expand Up @@ -526,11 +526,11 @@ int setup_irq(unsigned int irq, struct irqaction *new)
*
* Flags:
*
* IRQF_SHARED Interrupt is shared
* SA_SHIRQ Interrupt is shared
*
* IRQF_DISABLED Disable local interrupts while processing
* SA_INTERRUPT Disable local interrupts while processing
*
* IRQF_SAMPLE_RANDOM The interrupt can be used for entropy
* SA_SAMPLE_RANDOM The interrupt can be used for entropy
*
*/

Expand All @@ -542,7 +542,7 @@ int request_irq(unsigned int irq, irqreturn_t (*handler)(int, void *, struct pt_
struct irqaction *action;

if (irq >= NR_IRQS || !irq_desc[irq].valid || !handler ||
(irq_flags & IRQF_SHARED && !dev_id))
(irq_flags & SA_SHIRQ && !dev_id))
return -EINVAL;

action = (struct irqaction *)kmalloc(sizeof(struct irqaction), GFP_KERNEL);
Expand Down
2 changes: 1 addition & 1 deletion trunk/arch/arm26/kernel/time.c
Original file line number Diff line number Diff line change
Expand Up @@ -205,7 +205,7 @@ static irqreturn_t timer_interrupt(int irq, void *dev_id, struct pt_regs *regs)

static struct irqaction timer_irq = {
.name = "timer",
.flags = IRQF_DISABLED,
.flags = SA_INTERRUPT,
.handler = timer_interrupt,
};

Expand Down
4 changes: 2 additions & 2 deletions trunk/arch/cris/arch-v10/drivers/gpio.c
Original file line number Diff line number Diff line change
Expand Up @@ -937,11 +937,11 @@ gpio_init(void)
* in some tests.
*/
if (request_irq(TIMER0_IRQ_NBR, gpio_poll_timer_interrupt,
IRQF_SHARED | IRQF_DISABLED,"gpio poll", NULL)) {
SA_SHIRQ | SA_INTERRUPT,"gpio poll", NULL)) {
printk(KERN_CRIT "err: timer0 irq for gpio\n");
}
if (request_irq(PA_IRQ_NBR, gpio_pa_interrupt,
IRQF_SHARED | IRQF_DISABLED,"gpio PA", NULL)) {
SA_SHIRQ | SA_INTERRUPT,"gpio PA", NULL)) {
printk(KERN_CRIT "err: PA irq for gpio\n");
}

Expand Down
6 changes: 3 additions & 3 deletions trunk/arch/cris/arch-v10/kernel/time.c
Original file line number Diff line number Diff line change
Expand Up @@ -251,11 +251,11 @@ timer_interrupt(int irq, void *dev_id, struct pt_regs *regs)
return IRQ_HANDLED;
}

/* timer is IRQF_SHARED so drivers can add stuff to the timer irq chain
* it needs to be IRQF_DISABLED to make the jiffies update work properly
/* timer is SA_SHIRQ so drivers can add stuff to the timer irq chain
* it needs to be SA_INTERRUPT to make the jiffies update work properly
*/

static struct irqaction irq2 = { timer_interrupt, IRQF_SHARED | IRQF_DISABLED,
static struct irqaction irq2 = { timer_interrupt, SA_SHIRQ | SA_INTERRUPT,
CPU_MASK_NONE, "timer", NULL, NULL};

void __init
Expand Down
4 changes: 2 additions & 2 deletions trunk/arch/cris/arch-v32/drivers/gpio.c
Original file line number Diff line number Diff line change
Expand Up @@ -744,11 +744,11 @@ gpio_init(void)
* in some tests.
*/
if (request_irq(TIMER_INTR_VECT, gpio_poll_timer_interrupt,
IRQF_SHARED | IRQF_DISABLED,"gpio poll", &alarmlist)) {
SA_SHIRQ | SA_INTERRUPT,"gpio poll", &alarmlist)) {
printk("err: timer0 irq for gpio\n");
}
if (request_irq(GEN_IO_INTR_VECT, gpio_pa_interrupt,
IRQF_SHARED | IRQF_DISABLED,"gpio PA", &alarmlist)) {
SA_SHIRQ | SA_INTERRUPT,"gpio PA", &alarmlist)) {
printk("err: PA irq for gpio\n");
}
/* enable the gio and timer irq in global config */
Expand Down
2 changes: 1 addition & 1 deletion trunk/arch/cris/arch-v32/kernel/arbiter.c
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ static void crisv32_arbiter_init(void)
crisv32_arbiter_config(EXT_REGION);
crisv32_arbiter_config(INT_REGION);

if (request_irq(MEMARB_INTR_VECT, crisv32_arbiter_irq, IRQF_DISABLED,
if (request_irq(MEMARB_INTR_VECT, crisv32_arbiter_irq, SA_INTERRUPT,
"arbiter", NULL))
printk(KERN_ERR "Couldn't allocate arbiter IRQ\n");

Expand Down
2 changes: 1 addition & 1 deletion trunk/arch/cris/arch-v32/kernel/fasttimer.c
Original file line number Diff line number Diff line change
Expand Up @@ -981,7 +981,7 @@ void fast_timer_init(void)
proc_register_dynamic(&proc_root, &fasttimer_proc_entry);
#endif
#endif /* PROC_FS */
if(request_irq(TIMER_INTR_VECT, timer_trig_interrupt, IRQF_DISABLED,
if(request_irq(TIMER_INTR_VECT, timer_trig_interrupt, SA_INTERRUPT,
"fast timer int", NULL))
{
printk("err: timer1 irq\n");
Expand Down
2 changes: 1 addition & 1 deletion trunk/arch/cris/arch-v32/kernel/irq.c
Original file line number Diff line number Diff line change
Expand Up @@ -268,7 +268,7 @@ void
crisv32_do_IRQ(int irq, int block, struct pt_regs* regs)
{
/* Interrupts that may not be moved to another CPU and
* are IRQF_DISABLED may skip blocking. This is currently
* are SA_INTERRUPT may skip blocking. This is currently
* only valid for the timer IRQ and the IPI and is used
* for the timer interrupt to avoid watchdog starvation.
*/
Expand Down
2 changes: 1 addition & 1 deletion trunk/arch/cris/arch-v32/kernel/smp.c
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ static unsigned long irq_regs[NR_CPUS] =

static irqreturn_t crisv32_ipi_interrupt(int irq, void *dev_id, struct pt_regs *regs);
static int send_ipi(int vector, int wait, cpumask_t cpu_mask);
static struct irqaction irq_ipi = { crisv32_ipi_interrupt, IRQF_DISABLED,
static struct irqaction irq_ipi = { crisv32_ipi_interrupt, SA_INTERRUPT,
CPU_MASK_NONE, "ipi", NULL, NULL};

extern void cris_mmu_init(void);
Expand Down
12 changes: 4 additions & 8 deletions trunk/arch/cris/arch-v32/kernel/time.c
Original file line number Diff line number Diff line change
Expand Up @@ -241,16 +241,12 @@ timer_interrupt(int irq, void *dev_id, struct pt_regs *regs)
return IRQ_HANDLED;
}

/* timer is IRQF_SHARED so drivers can add stuff to the timer irq chain
* it needs to be IRQF_DISABLED to make the jiffies update work properly
/* timer is SA_SHIRQ so drivers can add stuff to the timer irq chain
* it needs to be SA_INTERRUPT to make the jiffies update work properly
*/

static struct irqaction irq_timer = {
.mask = timer_interrupt,
.flags = IRQF_SHARED | IRQF_DISABLED,
.mask = CPU_MASK_NONE,
.name = "timer"
};
static struct irqaction irq_timer = { timer_interrupt, SA_SHIRQ | SA_INTERRUPT,
CPU_MASK_NONE, "timer", NULL, NULL};

void __init
cris_timer_init(void)
Expand Down
2 changes: 1 addition & 1 deletion trunk/arch/cris/kernel/irq.c
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ int show_interrupts(struct seq_file *p, void *v)
/* called by the assembler IRQ entry functions defined in irq.h
* to dispatch the interrupts to registred handlers
* interrupts are disabled upon entry - depending on if the
* interrupt was registred with IRQF_DISABLED or not, interrupts
* interrupt was registred with SA_INTERRUPT or not, interrupts
* are re-enabled or not.
*/

Expand Down
4 changes: 2 additions & 2 deletions trunk/arch/frv/kernel/irq-routing.c
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ void distribute_irqs(struct irq_group *group, unsigned long irqmask)
if (action) {
int status = 0;

// if (!(action->flags & IRQF_DISABLED))
// if (!(action->flags & SA_INTERRUPT))
// local_irq_enable();

do {
Expand All @@ -90,7 +90,7 @@ void distribute_irqs(struct irq_group *group, unsigned long irqmask)
action = action->next;
} while (action);

if (status & IRQF_SAMPLE_RANDOM)
if (status & SA_SAMPLE_RANDOM)
add_interrupt_randomness(irq);
local_irq_disable();
}
Expand Down
12 changes: 6 additions & 6 deletions trunk/arch/frv/kernel/irq.c
Original file line number Diff line number Diff line change
Expand Up @@ -341,11 +341,11 @@ asmlinkage void do_NMI(void)
*
* Flags:
*
* IRQF_SHARED Interrupt is shared
* SA_SHIRQ Interrupt is shared
*
* IRQF_DISABLED Disable local interrupts while processing
* SA_INTERRUPT Disable local interrupts while processing
*
* IRQF_SAMPLE_RANDOM The interrupt can be used for entropy
* SA_SAMPLE_RANDOM The interrupt can be used for entropy
*
*/

Expand All @@ -365,7 +365,7 @@ int request_irq(unsigned int irq,
* to figure out which interrupt is which (messes up the
* interrupt freeing logic etc).
*/
if (irqflags & IRQF_SHARED) {
if (irqflags & SA_SHIRQ) {
if (!dev_id)
printk("Bad boy: %s (at 0x%x) called us without a dev_id!\n",
devname, (&irq)[-1]);
Expand Down Expand Up @@ -576,7 +576,7 @@ int setup_irq(unsigned int irq, struct irqaction *new)
* so we have to be careful not to interfere with a
* running system.
*/
if (new->flags & IRQF_SAMPLE_RANDOM) {
if (new->flags & SA_SAMPLE_RANDOM) {
/*
* This function might sleep, we want to call it first,
* outside of the atomic block.
Expand All @@ -592,7 +592,7 @@ int setup_irq(unsigned int irq, struct irqaction *new)
spin_lock_irqsave(&level->lock, flags);

/* can't share interrupts unless all parties agree to */
if (level->usage != 0 && !(level->flags & new->flags & IRQF_SHARED)) {
if (level->usage != 0 && !(level->flags & new->flags & SA_SHIRQ)) {
spin_unlock_irqrestore(&level->lock,flags);
return -EBUSY;
}
Expand Down
2 changes: 1 addition & 1 deletion trunk/arch/frv/kernel/time.c
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ unsigned long __delay_loops_MHz;
static irqreturn_t timer_interrupt(int irq, void *dummy, struct pt_regs *regs);

static struct irqaction timer_irq = {
timer_interrupt, IRQF_DISABLED, CPU_MASK_NONE, "timer", NULL, NULL
timer_interrupt, SA_INTERRUPT, CPU_MASK_NONE, "timer", NULL, NULL
};

static inline int set_rtc_mmss(unsigned long nowtime)
Expand Down
Loading

0 comments on commit 59d5ebb

Please sign in to comment.