提交 7b11cdd8 编辑于 作者: Robert Nelson's avatar Robert Nelson
浏览文件

pwmsp: hrtimer_get_res is gone in v4.2.x, use hrtimer_resolution value directly



Signed-off-by: default avatarRobert Nelson <robertcnelson@gmail.com>
上级 d3293872
......@@ -40,11 +40,10 @@ struct snd_pwmsp pwmsp_chip;
static int snd_pwmsp_create(struct snd_card *card)
{
static struct snd_device_ops ops = { };
struct timespec tp;
unsigned int resolution = hrtimer_resolution;
int err;
hrtimer_get_res(CLOCK_MONOTONIC, &tp);
pr_info("PCSP: Timer resolution is (%linS)\n", tp.tv_nsec);
pr_info("PCSP: Timer resolution is (%unS)\n", resolution);
spin_lock_init(&pwmsp_chip.substream_lock);
atomic_set(&pwmsp_chip.timer_active, 0);
......
支持 Markdown
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册