tegra124: use roundup/rounddown macros from <sys/param.h>.

This commit is contained in:
Pedro F. Giffuni 2016-06-03 21:11:34 +00:00
parent bbfcc681bc
commit 95a9e5d682

View File

@ -214,8 +214,8 @@ TUNABLE_INT("hw.tegra124.cpufreq.lowest_freq", &cpufreq_lowest_freq);
#define DIV_ROUND_CLOSEST(val, div) (((val) + ((div) / 2)) / (div))
#define ROUND_UP(val, div) ((((val) + ((div) - 1)) / (div)) * (div))
#define ROUND_DOWN(val, div) (((val) / (div)) * (div))
#define ROUND_UP(val, div) roundup(val, div)
#define ROUND_DOWN(val, div) rounddown(val, div)
/*
* Compute requesetd voltage for given frequency and SoC process variations,