]> git.baikalelectronics.ru Git - kernel.git/commit
drm/i915/gvt: Make mmio_attribute as type u8 to save 1.5MB memory
authorChangbin Du <changbin.du@intel.com>
Tue, 6 Jun 2017 07:56:11 +0000 (15:56 +0800)
committerZhenyu Wang <zhenyuw@linux.intel.com>
Thu, 8 Jun 2017 05:59:20 +0000 (13:59 +0800)
commit56a78de54964894de2f65c9fa8066d5e9843e1ce
tree6789d999aace0bf3b668c1513515e1e8a6765eaa
parentd8d94ba3fc4d28753d0d6ba08340d8467380e666
drm/i915/gvt: Make mmio_attribute as type u8 to save 1.5MB memory

Type u8 is big enough to contain all MMIO attribute flags. As the
total MMIO size is 2MB so we saved 1.5MB memory.

Signed-off-by: Changbin Du <changbin.du@intel.com>
Signed-off-by: Zhenyu Wang <zhenyuw@linux.intel.com>
drivers/gpu/drm/i915/gvt/gvt.h
drivers/gpu/drm/i915/gvt/handlers.c