mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-07-23 07:12:09 +00:00
drm/i915: Use i915_global_register()
Rather than manually add every new global into each hook, use i915_global_register() function and keep a list of registered globals to invoke instead. However, I haven't found a way for random drivers to add an .init table to avoid having to manually add ourselves to i915_globals_init() each time. Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk> Link: https://patchwork.freedesktop.org/patch/msgid/20190305213830.18094-1-chris@chris-wilson.co.uk Reviewed-by: Tvrtko Ursulin <tvrtko.ursulin@intel.com>
This commit is contained in:
parent
d846325ad0
commit
103b76eeff
14 changed files with 174 additions and 137 deletions
|
@ -406,8 +406,4 @@ static inline void i915_request_mark_complete(struct i915_request *rq)
|
|||
|
||||
void i915_retire_requests(struct drm_i915_private *i915);
|
||||
|
||||
int i915_global_request_init(void);
|
||||
void i915_global_request_shrink(void);
|
||||
void i915_global_request_exit(void);
|
||||
|
||||
#endif /* I915_REQUEST_H */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue