Skip to content

Commit d8b3dfd

Browse files
tomitamoekogregkh
authored andcommitted
Revert "drm/xe/forcewake: Add a helper xe_force_wake_ref_has_domain()"
This reverts commit deb05f8. The helper function introduced in the reverted commit is for handling the "refcounted domain mask" introduced in commit a7ddcea ("drm/xe: Error handling in xe_force_wake_get()"). Since that API change only exists in 6.13 and later, this helper is unnecessary in 6.12 stable kernel. Cc: Michal Wajdeczko <[email protected]> Cc: Badal Nilawar <[email protected]> Cc: Himal Prasad Ghimiray <[email protected]> Acked-by: Rodrigo Vivi <[email protected]> Signed-off-by: Tomita Moeko <[email protected]> Signed-off-by: Greg Kroah-Hartman <[email protected]>
1 parent ffbedb4 commit d8b3dfd

File tree

1 file changed

+0
-16
lines changed

1 file changed

+0
-16
lines changed

drivers/gpu/drm/xe/xe_force_wake.h

Lines changed: 0 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -46,20 +46,4 @@ xe_force_wake_assert_held(struct xe_force_wake *fw,
4646
xe_gt_assert(fw->gt, fw->awake_domains & domain);
4747
}
4848

49-
/**
50-
* xe_force_wake_ref_has_domain - verifies if the domains are in fw_ref
51-
* @fw_ref : the force_wake reference
52-
* @domain : forcewake domain to verify
53-
*
54-
* This function confirms whether the @fw_ref includes a reference to the
55-
* specified @domain.
56-
*
57-
* Return: true if domain is refcounted.
58-
*/
59-
static inline bool
60-
xe_force_wake_ref_has_domain(unsigned int fw_ref, enum xe_force_wake_domains domain)
61-
{
62-
return fw_ref & domain;
63-
}
64-
6549
#endif

0 commit comments

Comments
 (0)