We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 27906e5 commit e4236b1Copy full SHA for e4236b1
drivers/gpu/drm/imagination/pvr_fw_mips.h
@@ -7,13 +7,14 @@
7
#include "pvr_rogue_mips.h"
8
9
#include <asm/page.h>
10
+#include <linux/math.h>
11
#include <linux/types.h>
12
13
/* Forward declaration from pvr_gem.h. */
14
struct pvr_gem_object;
15
-#define PVR_MIPS_PT_PAGE_COUNT ((ROGUE_MIPSFW_MAX_NUM_PAGETABLE_PAGES * ROGUE_MIPSFW_PAGE_SIZE_4K) \
16
- >> PAGE_SHIFT)
+#define PVR_MIPS_PT_PAGE_COUNT DIV_ROUND_UP(ROGUE_MIPSFW_MAX_NUM_PAGETABLE_PAGES * ROGUE_MIPSFW_PAGE_SIZE_4K, PAGE_SIZE)
17
+
18
/**
19
* struct pvr_fw_mips_data - MIPS-specific data
20
*/
0 commit comments