Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
L
linux
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
linux
Commits
ab48a939
Commit
ab48a939
authored
Jul 10, 2003
by
Miles Bader
Committed by
Linus Torvalds
Jul 10, 2003
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[PATCH] More irqreturn_t changes for v850
parent
599cd887
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
12 additions
and
5 deletions
+12
-5
arch/v850/kernel/gbus_int.c
arch/v850/kernel/gbus_int.c
+8
-3
arch/v850/kernel/simcons.c
arch/v850/kernel/simcons.c
+1
-1
arch/v850/kernel/time.c
arch/v850/kernel/time.c
+3
-1
No files found.
arch/v850/kernel/gbus_int.c
View file @
ab48a939
/*
* arch/v850/kernel/gbus_int.c -- Midas labs GBUS interrupt support
*
* Copyright (C) 2001,02
NEC
Corporation
* Copyright (C) 2001,02 Miles Bader <miles@gnu.org>
* Copyright (C) 2001,02
,03 NEC Electronics
Corporation
* Copyright (C) 2001,02
,03
Miles Bader <miles@gnu.org>
*
* This file is subject to the terms and conditions of the GNU General
* Public License. See the file COPYING in the main directory of this
...
...
@@ -99,9 +99,11 @@ int gbus_int_irq_pending (unsigned irq)
/* Handle a shared GINT interrupt by passing to the appropriate GBUS
interrupt handler. */
static
void
gbus_int_handle_irq
(
int
irq
,
void
*
dev_id
,
struct
pt_regs
*
regs
)
static
irqreturn_t
gbus_int_handle_irq
(
int
irq
,
void
*
dev_id
,
struct
pt_regs
*
regs
)
{
unsigned
w
;
irqreturn_t
rval
=
IRQ_NONE
;
unsigned
gint
=
irq
-
IRQ_GINT
(
0
);
for
(
w
=
0
;
w
<
GBUS_INT_NUM_WORDS
;
w
++
)
{
...
...
@@ -127,6 +129,7 @@ static void gbus_int_handle_irq (int irq, void *dev_id, struct pt_regs *regs)
/* Recursively call handle_irq to handle it. */
handle_irq
(
irq
,
regs
);
rval
=
IRQ_HANDLED
;
}
while
(
status
);
}
}
...
...
@@ -136,6 +139,8 @@ static void gbus_int_handle_irq (int irq, void *dev_id, struct pt_regs *regs)
still pending, and so result in another CPU interrupt. */
GBUS_INT_ENABLE
(
0
,
gint
)
&=
~
0x1
;
GBUS_INT_ENABLE
(
0
,
gint
)
|=
0x1
;
return
rval
;
}
...
...
arch/v850/kernel/simcons.c
View file @
ab48a939
...
...
@@ -30,7 +30,7 @@ static void simcons_write (struct console *co, const char *buf, unsigned len)
V850_SIM_SYSCALL
(
write
,
1
,
buf
,
len
);
}
static
int
simcons_read
(
struct
console
*
co
,
c
onst
c
har
*
buf
,
unsigned
len
)
static
int
simcons_read
(
struct
console
*
co
,
char
*
buf
,
unsigned
len
)
{
return
V850_SIM_SYSCALL
(
read
,
0
,
buf
,
len
);
}
...
...
arch/v850/kernel/time.c
View file @
ab48a939
...
...
@@ -51,7 +51,7 @@ static inline void do_profile (unsigned long pc)
* timer_interrupt() needs to keep up the real-time clock,
* as well as call the "do_timer()" routine every clocktick
*/
static
void
timer_interrupt
(
int
irq
,
void
*
dummy
,
struct
pt_regs
*
regs
)
static
irqreturn_t
timer_interrupt
(
int
irq
,
void
*
dummy
,
struct
pt_regs
*
regs
)
{
#if 0
/* last time the cmos clock got updated */
...
...
@@ -106,6 +106,8 @@ static void timer_interrupt (int irq, void *dummy, struct pt_regs *regs)
}
#endif /* CONFIG_HEARTBEAT */
#endif /* 0 */
return
IRQ_HANDLED
;
}
/*
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment