Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 297616
b: refs/heads/master
c: 0f55239
h: refs/heads/master
v: v3
  • Loading branch information
Rob Herring committed Jan 26, 2012
1 parent 30fecc9 commit eb199e5
Show file tree
Hide file tree
Showing 6 changed files with 11 additions and 5 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: 7f1e76370b717be264f0af54719182a96fb8f36d
refs/heads/master: 0f55239348aa85021d8bf8b63d84a796fcc142a4
2 changes: 1 addition & 1 deletion trunk/drivers/sh/intc/balancing.c
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
*/
#include "internals.h"

static unsigned long dist_handle[NR_IRQS];
static unsigned long dist_handle[INTC_NR_IRQS];

void intc_balancing_enable(unsigned int irq)
{
Expand Down
2 changes: 1 addition & 1 deletion trunk/drivers/sh/intc/core.c
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ unsigned int nr_intc_controllers;
* - this needs to be at least 2 for 5-bit priorities on 7780
*/
static unsigned int default_prio_level = 2; /* 2 - 16 */
static unsigned int intc_prio_level[NR_IRQS]; /* for now */
static unsigned int intc_prio_level[INTC_NR_IRQS]; /* for now */

unsigned int intc_get_dfl_prio_level(void)
{
Expand Down
2 changes: 1 addition & 1 deletion trunk/drivers/sh/intc/handle.c
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
#include <linux/spinlock.h>
#include "internals.h"

static unsigned long ack_handle[NR_IRQS];
static unsigned long ack_handle[INTC_NR_IRQS];

static intc_enum __init intc_grp_id(struct intc_desc *desc,
intc_enum enum_id)
Expand Down
2 changes: 1 addition & 1 deletion trunk/drivers/sh/intc/virq.c
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
#include <linux/export.h>
#include "internals.h"

static struct intc_map_entry intc_irq_xlate[NR_IRQS];
static struct intc_map_entry intc_irq_xlate[INTC_NR_IRQS];

struct intc_virq_list {
unsigned int irq;
Expand Down
6 changes: 6 additions & 0 deletions trunk/include/linux/sh_intc.h
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,12 @@

#include <linux/ioport.h>

#ifdef CONFIG_SUPERH
#define INTC_NR_IRQS 512
#else
#define INTC_NR_IRQS 1024
#endif

/*
* Convert back and forth between INTEVT and IRQ values.
*/
Expand Down

0 comments on commit eb199e5

Please sign in to comment.