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
Kirill Smelkov
linux
Commits
be90e669
Commit
be90e669
authored
Nov 02, 2002
by
Geert Uytterhoeven
Committed by
Linus Torvalds
Nov 02, 2002
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[PATCH] M68k local_irq*() updates
Convert core Amiga code to new local_irq*() framework
parent
35f17581
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
10 deletions
+7
-10
arch/m68k/amiga/amiints.c
arch/m68k/amiga/amiints.c
+5
-7
arch/m68k/amiga/amisound.c
arch/m68k/amiga/amisound.c
+2
-3
No files found.
arch/m68k/amiga/amiints.c
View file @
be90e669
...
@@ -128,8 +128,7 @@ static inline int amiga_insert_irq(irq_node_t **list, irq_node_t *node)
...
@@ -128,8 +128,7 @@ static inline int amiga_insert_irq(irq_node_t **list, irq_node_t *node)
printk
(
"%s: Warning: dev_id of %s is zero
\n
"
,
printk
(
"%s: Warning: dev_id of %s is zero
\n
"
,
__FUNCTION__
,
node
->
devname
);
__FUNCTION__
,
node
->
devname
);
save_flags
(
flags
);
local_irq_save
(
flags
);
cli
();
cur
=
*
list
;
cur
=
*
list
;
...
@@ -153,7 +152,7 @@ static inline int amiga_insert_irq(irq_node_t **list, irq_node_t *node)
...
@@ -153,7 +152,7 @@ static inline int amiga_insert_irq(irq_node_t **list, irq_node_t *node)
node
->
next
=
cur
;
node
->
next
=
cur
;
*
list
=
node
;
*
list
=
node
;
restore_flags
(
flags
);
local_irq_restore
(
flags
);
return
0
;
return
0
;
}
}
...
@@ -162,19 +161,18 @@ static inline void amiga_delete_irq(irq_node_t **list, void *dev_id)
...
@@ -162,19 +161,18 @@ static inline void amiga_delete_irq(irq_node_t **list, void *dev_id)
unsigned
long
flags
;
unsigned
long
flags
;
irq_node_t
*
node
;
irq_node_t
*
node
;
save_flags
(
flags
);
local_irq_save
(
flags
);
cli
();
for
(
node
=
*
list
;
node
;
list
=
&
node
->
next
,
node
=
*
list
)
{
for
(
node
=
*
list
;
node
;
list
=
&
node
->
next
,
node
=
*
list
)
{
if
(
node
->
dev_id
==
dev_id
)
{
if
(
node
->
dev_id
==
dev_id
)
{
*
list
=
node
->
next
;
*
list
=
node
->
next
;
/* Mark it as free. */
/* Mark it as free. */
node
->
handler
=
NULL
;
node
->
handler
=
NULL
;
restore_flags
(
flags
);
local_irq_restore
(
flags
);
return
;
return
;
}
}
}
}
restore_flags
(
flags
);
local_irq_restore
(
flags
);
printk
(
"%s: tried to remove invalid irq
\n
"
,
__FUNCTION__
);
printk
(
"%s: tried to remove invalid irq
\n
"
,
__FUNCTION__
);
}
}
...
...
arch/m68k/amiga/amisound.c
View file @
be90e669
...
@@ -71,8 +71,7 @@ void amiga_mksound( unsigned int hz, unsigned int ticks )
...
@@ -71,8 +71,7 @@ void amiga_mksound( unsigned int hz, unsigned int ticks )
if
(
!
snd_data
)
if
(
!
snd_data
)
return
;
return
;
save_flags
(
flags
);
local_irq_save
(
flags
);
cli
();
del_timer
(
&
sound_timer
);
del_timer
(
&
sound_timer
);
if
(
hz
>
20
&&
hz
<
32767
)
{
if
(
hz
>
20
&&
hz
<
32767
)
{
...
@@ -100,7 +99,7 @@ void amiga_mksound( unsigned int hz, unsigned int ticks )
...
@@ -100,7 +99,7 @@ void amiga_mksound( unsigned int hz, unsigned int ticks )
}
else
}
else
nosound
(
0
);
nosound
(
0
);
restore_flags
(
flags
);
local_irq_restore
(
flags
);
}
}
...
...
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