forked from rubenslte/android_kernel_samsung_msm8226
Merge tag 'v3.4.113' into lineage-16.0
This is the 3.4.113 stable release Change-Id: I80791430656359c5447a675cbff4431362d18df0 Signed-off-by: Kevin F. Haggerty <haggertk@lineageos.org>
This commit is contained in:
committed by
Francescodario Cuzzocrea
parent
36738e5d0d
commit
238a0fb5ad
+12
-8
@@ -66,6 +66,7 @@ EXPORT_SYMBOL(jiffies_64);
|
||||
#define TVR_SIZE (1 << TVR_BITS)
|
||||
#define TVN_MASK (TVN_SIZE - 1)
|
||||
#define TVR_MASK (TVR_SIZE - 1)
|
||||
#define MAX_TVAL ((unsigned long)((1ULL << (TVR_BITS + 4*TVN_BITS)) - 1))
|
||||
|
||||
struct tvec {
|
||||
struct list_head vec[TVN_SIZE];
|
||||
@@ -147,9 +148,11 @@ static unsigned long round_jiffies_common(unsigned long j, int cpu,
|
||||
/* now that we have rounded, subtract the extra skew again */
|
||||
j -= cpu * 3;
|
||||
|
||||
if (j <= jiffies) /* rounding ate our timeout entirely; */
|
||||
return original;
|
||||
return j;
|
||||
/*
|
||||
* Make sure j is still in the future. Otherwise return the
|
||||
* unmodified value.
|
||||
*/
|
||||
return time_is_after_jiffies(j) ? j : original;
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -359,11 +362,12 @@ static void internal_add_timer(struct tvec_base *base, struct timer_list *timer)
|
||||
vec = base->tv1.vec + (base->timer_jiffies & TVR_MASK);
|
||||
} else {
|
||||
int i;
|
||||
/* If the timeout is larger than 0xffffffff on 64-bit
|
||||
* architectures then we use the maximum timeout:
|
||||
/* If the timeout is larger than MAX_TVAL (on 64-bit
|
||||
* architectures or with CONFIG_BASE_SMALL=1) then we
|
||||
* use the maximum timeout.
|
||||
*/
|
||||
if (idx > 0xffffffffUL) {
|
||||
idx = 0xffffffffUL;
|
||||
if (idx > MAX_TVAL) {
|
||||
idx = MAX_TVAL;
|
||||
expires = idx + base->timer_jiffies;
|
||||
}
|
||||
i = (expires >> (TVR_BITS + 3 * TVN_BITS)) & TVN_MASK;
|
||||
@@ -815,7 +819,7 @@ unsigned long apply_slack(struct timer_list *timer, unsigned long expires)
|
||||
|
||||
bit = find_last_bit(&mask, BITS_PER_LONG);
|
||||
|
||||
mask = (1 << bit) - 1;
|
||||
mask = (1UL << bit) - 1;
|
||||
|
||||
expires_limit = expires_limit & ~(mask);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user