Message ID | 514B029D.1010409@gmail.com (mailing list archive) |
---|---|
State | New, archived |
Headers | show |
diff --git a/arch/arm/kernel/sched_clock.c b/arch/arm/kernel/sched_clock.c index 1708357..aa18e45 100644 --- a/arch/arm/kernel/sched_clock.c +++ b/arch/arm/kernel/sched_clock.c @@ -115,7 +115,7 @@ void __init setup_sched_clock(u32 (*read)(void), int bits, unsigned long rate) u64 res, wrap; char r_unit; - if (cd.rate > rate) + if (cd.rate > rate || read_sched_clock_64) return; BUG_ON(bits > 32); @@ -168,7 +168,7 @@ void __init setup_sched_clock(u32 (*read)(void), int bits, unsigned long rate) void __init setup_sched_clock_64(u64 (*read)(void), unsigned long rate) { - if (cd.rate > rate) + if (read_sched_clock_64 && (cd.rate > rate)) return; WARN_ON(!irqs_disabled());