Commit 9cf6ace5f5c7981f5df76af3e1b90d77cc3cdece
Committed by
David S. Miller
1 parent
efef50a59f
Exists in
smarc-l5.0.0_1.0.0-ga
and in
5 other branches
mISDN: DSP scheduling fix (version 2)
dsp_spl_jiffies need to be the same datatype as jiffies (which is ulong). If not, on 64 bit systems it will fallback to schedule the DSP every jiffie tic as soon jiffies become > 2^32. Signed-off-by: Karsten Keil <kkeil@linux-pingi.de> Signed-off-by: David S. Miller <davem@davemloft.net>
Showing 2 changed files with 4 additions and 2 deletions Side-by-side Diff
drivers/isdn/mISDN/dsp.h
... | ... | @@ -76,7 +76,9 @@ |
76 | 76 | #define MAX_SECONDS_JITTER_CHECK 5 |
77 | 77 | |
78 | 78 | extern struct timer_list dsp_spl_tl; |
79 | -extern u32 dsp_spl_jiffies; | |
79 | + | |
80 | +/* the datatype need to match jiffies datatype */ | |
81 | +extern unsigned long dsp_spl_jiffies; | |
80 | 82 | |
81 | 83 | /* the structure of conferences: |
82 | 84 | * |
drivers/isdn/mISDN/dsp_cmx.c
... | ... | @@ -1624,7 +1624,7 @@ |
1624 | 1624 | |
1625 | 1625 | static u32 jittercount; /* counter for jitter check */ |
1626 | 1626 | struct timer_list dsp_spl_tl; |
1627 | -u32 dsp_spl_jiffies; /* calculate the next time to fire */ | |
1627 | +unsigned long dsp_spl_jiffies; /* calculate the next time to fire */ | |
1628 | 1628 | static u16 dsp_count; /* last sample count */ |
1629 | 1629 | static int dsp_count_valid; /* if we have last sample count */ |
1630 | 1630 |