Commit be90e669 authored by Geert Uytterhoeven's avatar Geert Uytterhoeven Committed by Linus Torvalds

[PATCH] M68k local_irq*() updates

Convert core Amiga code to new local_irq*() framework
parent 35f17581
...@@ -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__);
} }
......
...@@ -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);
} }
......
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