projects
/
GitHub
/
moto-9609
/
android_kernel_motorola_exynos9610.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5864728
)
ALSA: line6: use msecs_to_jiffies for conversion
author
Nicholas Mc Guire
<hofrat@osadl.org>
Tue, 3 Feb 2015 07:38:39 +0000
(
02:38
-0500)
committer
Takashi Iwai
<tiwai@suse.de>
Tue, 3 Feb 2015 08:43:55 +0000
(09:43 +0100)
This is only an API consolidation and should make things more readable
it replaces var * HZ / 1000 by msecs_to_jiffies(var).
Signed-off-by: Nicholas Mc Guire <hofrat@osadl.org>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/usb/line6/driver.c
patch
|
blob
|
blame
|
history
diff --git
a/sound/usb/line6/driver.c
b/sound/usb/line6/driver.c
index 2328ec9a1ca866e24b65ca45844373a110bfb1dd..3cf12ccdd72e2107069d811b100ef6bbf8dcd2fa 100644
(file)
--- a/
sound/usb/line6/driver.c
+++ b/
sound/usb/line6/driver.c
@@
-166,7
+166,7
@@
void line6_start_timer(struct timer_list *timer, unsigned int msecs,
void (*function)(unsigned long), unsigned long data)
{
setup_timer(timer, function, data);
- mod_timer(timer, jiffies + msecs
* HZ / 1000
);
+ mod_timer(timer, jiffies + msecs
_to_jiffies(msecs)
);
}
EXPORT_SYMBOL_GPL(line6_start_timer);