]> git.baikalelectronics.ru Git - kernel.git/commit
drm/i915: make array hw_engine_mask static, makes object smaller
authorColin Ian King <colin.king@canonical.com>
Mon, 7 Oct 2019 15:41:51 +0000 (16:41 +0100)
committerChris Wilson <chris@chris-wilson.co.uk>
Mon, 7 Oct 2019 20:44:02 +0000 (21:44 +0100)
commitacd6bfed3c30e0d021af71c657a4038b2f284d68
tree70a5a4394ec050e16245ea87ad8ecc919238e6f0
parentc1f94144eea642f3d5084640d53cecfc45035f65
drm/i915: make array hw_engine_mask static, makes object smaller

Don't populate the array hw_engine_mask on the stack but instead make it
static. Makes the object code smaller by 316 bytes.

Before:
   text    data     bss     dec     hex filename
  34004    4388     320   38712    9738 gpu/drm/i915/gt/intel_reset.o

After:
   text    data     bss     dec     hex filename
  33528    4548     320   38396    95fc gpu/drm/i915/gt/intel_reset.o

(gcc version 9.2.1, amd64)

Signed-off-by: Colin Ian King <colin.king@canonical.com>
Reviewed-by: Chris Wilson <chris@chris-wilson.co.uk>
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Link: https://patchwork.freedesktop.org/patch/msgid/20191007154151.23245-1-colin.king@canonical.com
drivers/gpu/drm/i915/gt/intel_reset.c