diff options
author | Zhenyu Wang <zhenyuw@linux.intel.com> | 2017-01-05 10:26:24 +0800 |
---|---|---|
committer | Zhenyu Wang <zhenyuw@linux.intel.com> | 2017-01-09 11:05:56 +0800 |
commit | 2fcdb66364ee467d69228a3d2ea074498c177211 (patch) | |
tree | 93b865a5fc392ab6a12c295c5064e0507a0c6368 | |
parent | 888530b57f88f2bc856f181479df732c9622fa22 (diff) | |
download | op-kernel-dev-2fcdb66364ee467d69228a3d2ea074498c177211.zip op-kernel-dev-2fcdb66364ee467d69228a3d2ea074498c177211.tar.gz |
drm/i915/gvt: remove duplicated definition
Remove duplicated definition for resource size in aperture_gm.c
which are already defined in gvt.h. Need only one to take effect.
Signed-off-by: Zhenyu Wang <zhenyuw@linux.intel.com>
-rw-r--r-- | drivers/gpu/drm/i915/gvt/aperture_gm.c | 7 |
1 files changed, 0 insertions, 7 deletions
diff --git a/drivers/gpu/drm/i915/gvt/aperture_gm.c b/drivers/gpu/drm/i915/gvt/aperture_gm.c index 0d41ebc..6520031 100644 --- a/drivers/gpu/drm/i915/gvt/aperture_gm.c +++ b/drivers/gpu/drm/i915/gvt/aperture_gm.c @@ -37,13 +37,6 @@ #include "i915_drv.h" #include "gvt.h" -#define MB_TO_BYTES(mb) ((mb) << 20ULL) -#define BYTES_TO_MB(b) ((b) >> 20ULL) - -#define HOST_LOW_GM_SIZE MB_TO_BYTES(128) -#define HOST_HIGH_GM_SIZE MB_TO_BYTES(384) -#define HOST_FENCE 4 - static int alloc_gm(struct intel_vgpu *vgpu, bool high_gm) { struct intel_gvt *gvt = vgpu->gvt; |