diff options
author | Lionel Landwerlin <[email protected]> | 2017-11-13 23:34:53 +0000 |
---|---|---|
committer | Ville Syrjälä <[email protected]> | 2017-11-14 16:17:51 +0200 |
commit | f577a03ba920df1a9163221d4823627999c59bfd (patch) | |
tree | 5b4afdf8811925c819ad6bec5706ee8aa2de0907 /lib/mpi/mpi-bit.c | |
parent | 3657e92762c42b098cb7057ac86b1c7cd30336e5 (diff) |
drm/i915: fix 64bit divide
ERROR: "__udivdi3" [drivers/gpu/drm/i915/i915.ko] undefined!
ERROR: "__divdi3" [drivers/gpu/drm/i915/i915.ko] undefined!
Store the frequency in kHz and drop 64bit divisions.
v2: Use div64_u64 (Matthew)
v3: store frequency in kHz to avoid 64bit divs (Chris/Ville)
Fixes: dab9178333 ("drm/i915: expose command stream timestamp frequency to userspace")
Reported-by: Matthew Auld <[email protected]>
Signed-off-by: Lionel Landwerlin <[email protected]>
Link: https://patchwork.freedesktop.org/patch/msgid/[email protected]
Reviewed-by: Ewelina Musial <[email protected]>
Signed-off-by: Ville Syrjälä <[email protected]>
Diffstat (limited to 'lib/mpi/mpi-bit.c')
0 files changed, 0 insertions, 0 deletions