Commit 49d24439 authored by Paul Mundt's avatar Paul Mundt Committed by Linus Torvalds

[PATCH] sh64: cpumask cleanup.

With the recent cpumask changes, some things ended up being broken on sh64.
This fixes them..
Signed-off-by: default avatarPaul Mundt <lethal@linux-sh.org>
Signed-off-by: default avatarAndrew Morton <akpm@osdl.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@osdl.org>
parent edd57a76
......@@ -437,7 +437,7 @@ int request_irq(unsigned int irq,
action->handler = handler;
action->flags = irqflags;
action->mask = 0;
cpus_clear(action->mask);
action->name = devname;
action->next = NULL;
action->dev_id = dev_id;
......
......@@ -522,8 +522,8 @@ static irqreturn_t rtc_interrupt(int irq, void *dev_id, struct pt_regs *regs)
return IRQ_HANDLED;
}
static struct irqaction irq0 = { timer_interrupt, SA_INTERRUPT, 0, "timer", NULL, NULL};
static struct irqaction irq1 = { rtc_interrupt, SA_INTERRUPT, 0, "rtc", NULL, NULL};
static struct irqaction irq0 = { timer_interrupt, SA_INTERRUPT, CPU_MASK_NONE, "timer", NULL, NULL};
static struct irqaction irq1 = { rtc_interrupt, SA_INTERRUPT, CPU_MASK_NONE, "rtc", NULL, NULL};
void __init time_init(void)
{
......
......@@ -46,10 +46,9 @@ static inline void __set_bit(int nr, void *addr)
*/
#define smp_mb__before_clear_bit() barrier()
#define smp_mb__after_clear_bit() barrier()
static __inline__ void clear_bit(int nr, void * addr)
static inline void clear_bit(int nr, volatile unsigned long *a)
{
int mask;
unsigned int *a = addr;
unsigned long flags;
a += nr >> 5;
......@@ -59,10 +58,9 @@ static __inline__ void clear_bit(int nr, void * addr)
local_irq_restore(flags);
}
static inline void __clear_bit(int nr, void *addr)
static inline void __clear_bit(int nr, volatile unsigned long *a)
{
int mask;
unsigned int *a = addr;
a += nr >> 5;
mask = 1 << (nr & 0x1f);
......@@ -247,7 +245,7 @@ static inline unsigned long __ffs(unsigned long word)
* @offset: The bitnumber to start searching at
* @size: The maximum size to search
*/
static inline unsigned long find_next_bit(unsigned long *addr,
static inline unsigned long find_next_bit(const unsigned long *addr,
unsigned long size, unsigned long offset)
{
unsigned int *p = ((unsigned int *) addr) + (offset >> 5);
......
......@@ -20,7 +20,7 @@
struct thread_info {
struct task_struct *task; /* main task structure */
struct exec_domain *exec_domain; /* execution domain */
__u32 flags; /* low level flags */
unsigned long flags; /* low level flags */
/* Put the 4 32-bit fields together to make asm offsetting easier. */
__s32 preempt_count; /* 0 => preemptable, <0 => BUG */
__u16 cpu;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment