clocksource: Add 'max_cycles' to 'struct clocksource'
[cascardo/linux.git] / kernel / time / sched_clock.c
index 3b8ae45..ca3bc5c 100644 (file)
@@ -126,7 +126,7 @@ void __init sched_clock_register(u64 (*read)(void), int bits,
        new_mask = CLOCKSOURCE_MASK(bits);
 
        /* calculate how many nanosecs until we risk wrapping */
-       wrap = clocks_calc_max_nsecs(new_mult, new_shift, 0, new_mask);
+       wrap = clocks_calc_max_nsecs(new_mult, new_shift, 0, new_mask, NULL);
        new_wrap_kt = ns_to_ktime(wrap);
 
        /* update epoch for new counter and update epoch_ns from old counter*/