timekeeping: Remove pointless conversion to bool
[linux-2.6-microblaze.git] / kernel / time / timekeeping.c
index 95b258d..9652bc5 100644 (file)
@@ -14,7 +14,9 @@
 #include <linux/percpu.h>
 #include <linux/init.h>
 #include <linux/mm.h>
+#include <linux/nmi.h>
 #include <linux/sched.h>
+#include <linux/sched/loadavg.h>
 #include <linux/syscore_ops.h>
 #include <linux/clocksource.h>
 #include <linux/jiffies.h>
@@ -994,8 +996,7 @@ static int adjust_historical_crosststamp(struct system_time_snapshot *history,
                return 0;
 
        /* Interpolate shortest distance from beginning or end of history */
-       interp_forward = partial_history_cycles > total_history_cycles/2 ?
-               true : false;
+       interp_forward = partial_history_cycles > total_history_cycles / 2;
        partial_history_cycles = interp_forward ?
                total_history_cycles - partial_history_cycles :
                partial_history_cycles;