aboutsummaryrefslogtreecommitdiff
path: root/sound/core
diff options
context:
space:
mode:
authorTakashi Iwai <tiwai@suse.de>2008-12-08 12:40:56 +0100
committerTakashi Iwai <tiwai@suse.de>2008-12-08 12:40:56 +0100
commit5e03c54eeb016cf1b066e9e48d30116814ca2459 (patch)
tree6901bb7101c024d45b10209ba2aa7c95070aa70d /sound/core
parent647808a6b932d85c3e85df6dcf0e34c1e53cc953 (diff)
ALSA: hrtimer - Use hard-irq callback
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>
Diffstat (limited to 'sound/core')
-rw-r--r--sound/core/hrtimer.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/sound/core/hrtimer.c b/sound/core/hrtimer.c
index 866c80c4499..c1d285921f8 100644
--- a/sound/core/hrtimer.c
+++ b/sound/core/hrtimer.c
@@ -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;
@@ -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,