projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7246187
)
drm/amd/powerplay: Add PP_CAP() macro
author
Tom St Denis
<
[email protected]
>
Thu, 7 Sep 2017 11:43:33 +0000
(07:43 -0400)
committer
Alex Deucher
<
[email protected]
>
Tue, 12 Sep 2017 18:31:17 +0000
(14:31 -0400)
To replace common lengthy sequence that would create
really long lines all over.
Signed-off-by: Tom St Denis <
[email protected]
>
Reviewed-by: Rex Zhu <
[email protected]
>
Signed-off-by: Alex Deucher <
[email protected]
>
drivers/gpu/drm/amd/powerplay/inc/hardwaremanager.h
patch
|
blob
|
history
diff --git
a/drivers/gpu/drm/amd/powerplay/inc/hardwaremanager.h
b/drivers/gpu/drm/amd/powerplay/inc/hardwaremanager.h
index a4c8b09b6f1464eb92950dfbe12c838fa5bdf34f..03adece4efea67418be1065f968f669fcf34783a 100644
(file)
--- a/
drivers/gpu/drm/amd/powerplay/inc/hardwaremanager.h
+++ b/
drivers/gpu/drm/amd/powerplay/inc/hardwaremanager.h
@@
-283,6
+283,8
@@
static inline bool phm_cap_enabled(const uint32_t *caps, enum phm_platform_caps
(1UL << (c & (PHM_MAX_NUM_CAPS_BITS_PER_FIELD - 1)))));
}
+#define PP_CAP(c) phm_cap_enabled(hwmgr->platform_descriptor.platformCaps, (c))
+
#define PP_PCIEGenInvalid 0xffff
enum PP_PCIEGen {
PP_PCIEGen1 = 0, /* PCIE 1.0 - Transfer rate of 2.5 GT/s */