]> git.kernelconcepts.de Git - karo-tx-linux.git/commitdiff
ALSA: hda - Convert from takslet_hi_schedule() to tasklet_schedule()
authorTakashi Iwai <tiwai@suse.de>
Thu, 18 Dec 2008 11:17:55 +0000 (12:17 +0100)
committerTakashi Iwai <tiwai@suse.de>
Thu, 18 Dec 2008 11:17:55 +0000 (12:17 +0100)
Replace all tasklet_hi_schedule() callers with the normal
tasklet_schedule().  The former often causes troubles with
RT-kernels, and has actually no merit.

Signed-off-by: Takashi Iwai <tiwai@suse.de>
15 files changed:
sound/core/rawmidi.c
sound/core/rtctimer.c
sound/core/timer.c
sound/drivers/vx/vx_core.c
sound/drivers/vx/vx_pcm.c
sound/pci/es1968.c
sound/pci/maestro3.c
sound/pci/mixart/mixart_core.c
sound/pci/pcxhr/pcxhr.c
sound/pci/pcxhr/pcxhr_core.c
sound/pci/riptide/riptide.c
sound/pci/rme9652/hdsp.c
sound/pci/rme9652/hdspm.c
sound/pcmcia/pdaudiocf/pdaudiocf_irq.c
sound/usb/usbmidi.c

index 39672f68ce5d2a2c86b4b944377ea115a9c37032..002777ba336aea636cd0a5c54d54934c87867bd8 100644 (file)
@@ -151,7 +151,7 @@ static inline void snd_rawmidi_output_trigger(struct snd_rawmidi_substream *subs
        if (!substream->opened)
                return;
        if (up) {
-               tasklet_hi_schedule(&substream->runtime->tasklet);
+               tasklet_schedule(&substream->runtime->tasklet);
        } else {
                tasklet_kill(&substream->runtime->tasklet);
                substream->ops->trigger(substream, 0);
@@ -908,7 +908,7 @@ int snd_rawmidi_receive(struct snd_rawmidi_substream *substream,
        }
        if (result > 0) {
                if (runtime->event)
-                       tasklet_hi_schedule(&runtime->tasklet);
+                       tasklet_schedule(&runtime->tasklet);
                else if (snd_rawmidi_ready(substream))
                        wake_up(&runtime->sleep);
        }
index 51e64e30dd3b6eea52b9d79908e3e50e333e7979..0851cd13e30394811e54fb29ed9a02112c9849ac 100644 (file)
@@ -118,7 +118,7 @@ static void rtctimer_tasklet(unsigned long data)
  */
 static void rtctimer_interrupt(void *private_data)
 {
-       tasklet_hi_schedule(private_data);
+       tasklet_schedule(private_data);
 }
 
 
index c584408c9f17d32dcace6b8684bfe02647a0f228..796532081e8153125a6067bdee899ecf2869c909 100644 (file)
@@ -743,7 +743,7 @@ void snd_timer_interrupt(struct snd_timer * timer, unsigned long ticks_left)
        spin_unlock_irqrestore(&timer->lock, flags);
 
        if (use_tasklet)
-               tasklet_hi_schedule(&timer->task_queue);
+               tasklet_schedule(&timer->task_queue);
 }
 
 /*
index 473b07f6ae85f09d9760f708468aa7352362c1d1..14e3354be43a4470b1cd241c5649f5fa3c6637f5 100644 (file)
@@ -548,7 +548,7 @@ irqreturn_t snd_vx_irq_handler(int irq, void *dev)
            (chip->chip_status & VX_STAT_IS_STALE))
                return IRQ_NONE;
        if (! vx_test_and_ack(chip))
-               tasklet_hi_schedule(&chip->tq);
+               tasklet_schedule(&chip->tq);
        return IRQ_HANDLED;
 }
 
index 27de574c08f76c5ff5763e1051e6dba353402648..6644d0034fbaa357b88f7207b676343881ff4207 100644 (file)
@@ -823,7 +823,7 @@ static int vx_pcm_trigger(struct snd_pcm_substream *subs, int cmd)
                 * we trigger the pipe using tasklet, so that the interrupts are
                 * issued surely after the trigger is completed.
                 */ 
-               tasklet_hi_schedule(&pipe->start_tq);
+               tasklet_schedule(&pipe->start_tq);
                chip->pcm_running++;
                pipe->running = 1;
                break;
index 20ee7599600bee87340f264e99842a4efa195465..e9c3794bbcb8a409751cc26ab466764d37fd1698 100644 (file)
@@ -1953,7 +1953,7 @@ static irqreturn_t snd_es1968_interrupt(int irq, void *dev_id)
        outw(inw(chip->io_port + 4) & 1, chip->io_port + 4);
 
        if (event & ESM_HWVOL_IRQ)
-               tasklet_hi_schedule(&chip->hwvol_tq); /* we'll do this later */
+               tasklet_schedule(&chip->hwvol_tq); /* we'll do this later */
 
        /* else ack 'em all, i imagine */
        outb(0xFF, chip->io_port + 0x1A);
index 9ff3f9e34404c4fa4c9c0b9b46a3b503d3c2fb03..59bbaf8f3e5b9bbe026fe13162e5258408598958 100644 (file)
@@ -1670,7 +1670,7 @@ static irqreturn_t snd_m3_interrupt(int irq, void *dev_id)
                return IRQ_NONE;
 
        if (status & HV_INT_PENDING)
-               tasklet_hi_schedule(&chip->hwvol_tq);
+               tasklet_schedule(&chip->hwvol_tq);
 
        /*
         * ack an assp int if its running
index b9a06c2793970d4d13a29e6c2ca3f9a4cae7faa4..d3350f383966b7ec1460282a287c8426f0215480 100644 (file)
@@ -550,7 +550,7 @@ irqreturn_t snd_mixart_interrupt(int irq, void *dev_id)
                                mgr->msg_fifo[mgr->msg_fifo_writeptr] = msg;
                                mgr->msg_fifo_writeptr++;
                                mgr->msg_fifo_writeptr %= MSG_FIFO_SIZE;
-                               tasklet_hi_schedule(&mgr->msg_taskq);
+                               tasklet_schedule(&mgr->msg_taskq);
                        }
                        spin_unlock(&mgr->msg_lock);
                        break;
index 73de6e989b3d4ab78069d8b24240637890fd3131..8309d44877229e9c003dd7263b4413b4d058c7b0 100644 (file)
@@ -653,7 +653,7 @@ static int pcxhr_trigger(struct snd_pcm_substream *subs, int cmd)
                                        PCXHR_STREAM_STATUS_SCHEDULE_RUN;
                                snd_pcm_trigger_done(s, subs);
                        }
-                       tasklet_hi_schedule(&chip->mgr->trigger_taskq);
+                       tasklet_schedule(&chip->mgr->trigger_taskq);
                } else {
                        stream = subs->runtime->private_data;
                        snd_printdd("Only one Substream %c %d\n",
index 7143259cfe3432f339c363d47a0589956f41b8d9..4a5481f9781fec6e742786e3e45c4df7f1607f0e 100644 (file)
@@ -1213,7 +1213,7 @@ irqreturn_t pcxhr_interrupt(int irq, void *dev_id)
                mgr->dsp_time_last = PCXHR_DSP_TIME_INVALID;
                
                mgr->src_it_dsp = reg;
-               tasklet_hi_schedule(&mgr->msg_taskq);
+               tasklet_schedule(&mgr->msg_taskq);
        }
 #ifdef CONFIG_SND_DEBUG_VERBOSE
        if (reg & PCXHR_FATAL_DSP_ERR)
index e9f0706ed3e45d2368ebe7170682b74290b15159..1d0eeb1f506cac11b5398ede2b00b628c4519f34 100644 (file)
@@ -1754,7 +1754,7 @@ snd_riptide_interrupt(int irq, void *dev_id)
                if (IS_EOBIRQ(cif->hwport) || IS_EOSIRQ(cif->hwport) ||
                    IS_EOCIRQ(cif->hwport)) {
                        chip->handled_irqs++;
-                       tasklet_hi_schedule(&chip->riptide_tq);
+                       tasklet_schedule(&chip->riptide_tq);
                }
                if (chip->rmidi && IS_MPUIRQ(cif->hwport)) {
                        chip->handled_irqs++;
index 736246f98accb3e7e3d724da1d74c2ef17b34c4f..f87ff0497116ee02d8770e987dd6a32c5f272537 100644 (file)
@@ -3750,7 +3750,7 @@ static irqreturn_t snd_hdsp_interrupt(int irq, void *dev_id)
                }
        }
        if (hdsp->use_midi_tasklet && schedule)
-               tasklet_hi_schedule(&hdsp->midi_tasklet);
+               tasklet_schedule(&hdsp->midi_tasklet);
        return IRQ_HANDLED;
 }
 
index 98762f909d6407b75495e4cbc98ad3640d9ea9cb..d7dd53675ccd599d8ff77585a0e64813fcfd9b51 100644 (file)
@@ -3476,7 +3476,7 @@ static irqreturn_t snd_hdspm_interrupt(int irq, void *dev_id)
                schedule = 1;
        }
        if (schedule)
-               tasklet_hi_schedule(&hdspm->midi_tasklet);
+               tasklet_schedule(&hdspm->midi_tasklet);
        return IRQ_HANDLED;
 }
 
index fa4b11398b1fbdeb8f7b6c2ccc08f9a6fb71a460..ea903c8e90ddb9a27c3b445a0432df2443f4e552 100644 (file)
@@ -41,7 +41,7 @@ irqreturn_t pdacf_interrupt(int irq, void *dev)
                if (stat & PDAUDIOCF_IRQOVR)    /* should never happen */
                        snd_printk(KERN_ERR "PDAUDIOCF SRAM buffer overrun detected!\n");
                if (chip->pcm_substream)
-                       tasklet_hi_schedule(&chip->tq);
+                       tasklet_schedule(&chip->tq);
                if (!(stat & PDAUDIOCF_IRQAKM))
                        stat |= PDAUDIOCF_IRQAKM;       /* check rate */
        }
index 5962e4b8442394fbe4812c2bfd21a013cf04f29c..6d9f9b135c62258bf0727166f32cfccbab31e744 100644 (file)
@@ -880,7 +880,7 @@ static void snd_usbmidi_output_trigger(struct snd_rawmidi_substream *substream,
                                snd_rawmidi_transmit_ack(substream, 1);
                        return;
                }
-               tasklet_hi_schedule(&port->ep->tasklet);
+               tasklet_schedule(&port->ep->tasklet);
        }
 }