]> www.infradead.org Git - users/jedix/linux-maple.git/commit
i915: Move i915_read/write out of line
authorAndi Kleen <ak@linux.intel.com>
Thu, 13 Oct 2011 23:08:51 +0000 (16:08 -0700)
committerGuangyu Sun <guangyu.sun@oracle.com>
Thu, 8 Nov 2012 19:31:47 +0000 (11:31 -0800)
commitc3dd3f899929abffc74574bd9beb049b64d1f968
treed53ad3639a9dc66b05ba761e43ca0c585d9a7b48
parent681fe2dd54c5ea53d18a7c80369e90f8eda6b236
i915: Move i915_read/write out of line

Orabug: 15851255

With the tracing code in there they are far too big to inline.

.text savings compared to a non force inline kernel:

i915_restore_display                        4393   12036   +7643
i915_save_display                           4295   11459   +7164
i915_handle_error                           2979    6666   +3687
i915_driver_irq_handler                     2923    5086   +2163
i915_ringbuffer_info                         458    1661   +1203
i915_save_vga                                  -    1200   +1200
i915_driver_irq_uninstall                    453    1624   +1171
i915_driver_irq_postinstall                  913    2078   +1165
ironlake_enable_drps                         719    1872   +1153
i915_restore_vga                               -    1142   +1142
intel_display_capture_error_state            784    2030   +1246
intel_init_emon                              719    2016   +1297

and more ...

[AK: these are older numbers, with the new SNB forcewake checks
it will be even worse]

Signed-off-by: Andi Kleen <ak@linux.intel.com>
Reviewed-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Acked-by: Ben Widawsky <ben@bwidawsk.net>
Signed-off-by: Keith Packard <keithp@keithp.com>
Signed-off-by: Guangyu Sun <guangyu.sun@oracle.com>
drivers/gpu/drm/i915/i915_drv.c
drivers/gpu/drm/i915/i915_drv.h