remove abs64()
Switch everything to the new and more capable implementation of abs(). Mainly to give the new abs() a bit of a workout. Cc: Michal Nazarewicz <mina86@mina86.com> Cc: John Stultz <john.stultz@linaro.org> Cc: Ingo Molnar <mingo@kernel.org> Cc: Steven Rostedt <rostedt@goodmis.org> Cc: Peter Zijlstra <peterz@infradead.org> Cc: Masami Hiramatsu <masami.hiramatsu.pt@hitachi.com> Cc: Peter Zijlstra <a.p.zijlstra@chello.nl> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
This commit is contained in:

committed by
Linus Torvalds

parent
c8299cb605
commit
79211c8ed1
@@ -555,11 +555,11 @@ static int tegra_sor_compute_params(struct tegra_sor *sor,
|
||||
error = div_s64(active_sym - approx, tu_size);
|
||||
error *= params->num_clocks;
|
||||
|
||||
if (error <= 0 && abs64(error) < params->error) {
|
||||
if (error <= 0 && abs(error) < params->error) {
|
||||
params->active_count = div_u64(active_count, f);
|
||||
params->active_polarity = active_polarity;
|
||||
params->active_frac = active_frac;
|
||||
params->error = abs64(error);
|
||||
params->error = abs(error);
|
||||
params->tu_size = tu_size;
|
||||
|
||||
if (error == 0)
|
||||
|
Reference in New Issue
Block a user