File tree Expand file tree Collapse file tree 5 files changed +26
-15
lines changed Expand file tree Collapse file tree 5 files changed +26
-15
lines changed Original file line number Diff line number Diff line change 112112
113113#include "gen8_engine_cs.h"
114114#include "i915_drv.h"
115+ #include "i915_list_util.h"
115116#include "i915_reg.h"
116117#include "i915_timer_util.h"
117118#include "i915_trace.h"
Original file line number Diff line number Diff line change 77#include "gem/i915_gem_object.h"
88
99#include "i915_drv.h"
10+ #include "i915_list_util.h"
1011#include "intel_engine_pm.h"
1112#include "intel_gt_buffer_pool.h"
1213
Original file line number Diff line number Diff line change 99#include <linux/lockdep.h>
1010
1111#include "i915_active.h"
12+ #include "i915_list_util.h"
1213#include "i915_syncmap.h"
13- #include "i915_utils.h"
1414#include "intel_timeline_types.h"
1515
1616struct drm_printer ;
Original file line number Diff line number Diff line change 1+ /* SPDX-License-Identifier: MIT */
2+ /* Copyright © 2025 Intel Corporation */
3+
4+ #ifndef __I915_LIST_UTIL_H__
5+ #define __I915_LIST_UTIL_H__
6+
7+ #include <linux/list.h>
8+ #include <asm/rwonce.h>
9+
10+ static inline void __list_del_many (struct list_head * head ,
11+ struct list_head * first )
12+ {
13+ first -> prev = head ;
14+ WRITE_ONCE (head -> next , first );
15+ }
16+
17+ static inline int list_is_last_rcu (const struct list_head * list ,
18+ const struct list_head * head )
19+ {
20+ return READ_ONCE (list -> next ) == head ;
21+ }
22+
23+ #endif /* __I915_LIST_UTIL_H__ */
Original file line number Diff line number Diff line change 2525#ifndef __I915_UTILS_H
2626#define __I915_UTILS_H
2727
28- #include <linux/list.h>
2928#include <linux/overflow.h>
3029#include <linux/sched.h>
3130#include <linux/string_helpers.h>
@@ -101,19 +100,6 @@ static inline bool is_power_of_2_u64(u64 n)
101100 return (n != 0 && ((n & (n - 1 )) == 0 ));
102101}
103102
104- static inline void __list_del_many (struct list_head * head ,
105- struct list_head * first )
106- {
107- first -> prev = head ;
108- WRITE_ONCE (head -> next , first );
109- }
110-
111- static inline int list_is_last_rcu (const struct list_head * list ,
112- const struct list_head * head )
113- {
114- return READ_ONCE (list -> next ) == head ;
115- }
116-
117103static inline unsigned long msecs_to_jiffies_timeout (const unsigned int m )
118104{
119105 unsigned long j = msecs_to_jiffies (m );
You can’t perform that action at this time.
0 commit comments