Skip to content

Commit

Permalink
ALSA: hrtimer - Use hard-irq callback
Browse files Browse the repository at this point in the history
Use the hard-irq mode for the callback (for possible removal of
soft-irq mode in future).

Signed-off-by: Takashi Iwai <tiwai@suse.de>
  • Loading branch information
Takashi Iwai committed Dec 8, 2008
1 parent 647808a commit 5e03c54
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions sound/core/hrtimer.c
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ static int snd_hrtimer_open(struct snd_timer *t)
return -ENOMEM;
hrtimer_init(&stime->hrt, CLOCK_MONOTONIC, HRTIMER_MODE_REL);
stime->timer = t;
stime->hrt.cb_mode = HRTIMER_CB_SOFTIRQ;
stime->hrt.cb_mode = HRTIMER_CB_IRQSAFE_UNLOCKED;
stime->hrt.function = snd_hrtimer_callback;
t->private_data = stime;
return 0;
Expand Down Expand Up @@ -93,9 +93,7 @@ static int snd_hrtimer_stop(struct snd_timer *t)
}

static struct snd_timer_hardware hrtimer_hw = {
.flags = (SNDRV_TIMER_HW_AUTO |
/*SNDRV_TIMER_HW_FIRST |*/
SNDRV_TIMER_HW_TASKLET),
.flags = SNDRV_TIMER_HW_AUTO,
.open = snd_hrtimer_open,
.close = snd_hrtimer_close,
.start = snd_hrtimer_start,
Expand Down

0 comments on commit 5e03c54

Please sign in to comment.