diff options
author | Haiying Wang <Haiying.Wang@freescale.com> | 2013-05-17 18:23:44 (GMT) |
---|---|---|
committer | Fleming Andrew-AFLEMING <AFLEMING@freescale.com> | 2013-05-17 20:01:02 (GMT) |
commit | f24fff6a6f14a9938a200170bd9a0f40c238d58c (patch) | |
tree | 163dfc03908345e68e352028e2b2b8a641130599 /drivers/staging/fsl_qbman/dpa_sys.h | |
parent | ad1bdc90739189c25881f12e21940f84398b8ef0 (diff) | |
download | linux-fsl-qoriq-f24fff6a6f14a9938a200170bd9a0f40c238d58c.tar.xz |
qman: use math64 instead of direct 64-bit division.
In 32-bit builds, the ROUNDING macro was breaking kernel assumptions when
fed with 64-bit parameters. This forces it to use the recommended
wrappers in <linux/math64.h> instead.
Signed-off-by: Geoff Thorpe <Geoff.Thorpe@freescale.com>
Change-Id: Id708cdad58593f38683112adf59984ffd3d763f7
Reviewed-on: http://git.am.freescale.net:8181/2580
Tested-by: Review Code-CDREVIEW <CDREVIEW@freescale.com>
Reviewed-by: Fleming Andrew-AFLEMING <AFLEMING@freescale.com>
Diffstat (limited to 'drivers/staging/fsl_qbman/dpa_sys.h')
-rw-r--r-- | drivers/staging/fsl_qbman/dpa_sys.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/staging/fsl_qbman/dpa_sys.h b/drivers/staging/fsl_qbman/dpa_sys.h index 4dedf1e..9306d87 100644 --- a/drivers/staging/fsl_qbman/dpa_sys.h +++ b/drivers/staging/fsl_qbman/dpa_sys.h @@ -60,6 +60,7 @@ #include <linux/fsl_hypervisor.h> #include <linux/vmalloc.h> #include <linux/ctype.h> +#include <linux/math64.h> #include <linux/fsl_usdpaa.h> |