mirror of
https://github.com/freebsd/freebsd-src.git
synced 2026-11-07 04:36:52 -10:00
hwpstate_amd: Fix compile error
Add parentheses between OR and AND operator to pass the compiler check.
Approved by: lwhsu (mentor)
Fixes: 3e6e4e4a0d ("hwpstate: add CPPC support for pstate driver on AMD")
MFC aftert: 2 weeks
Differential Revision: https://reviews.freebsd.org/D54465
This commit is contained in:
1 parent
2e92aeede8
commit
3642ba2a98
1 file changed
+1
-1
@@ -118,7 +118,7 @@
|
||||
#define BITS_VALUE(bits, num) (((num) & (bits)) >> (ffsll((bits)) - 1))
|
||||
#define BITS_WITH_VALUE(bits, val) ((uintmax_t)(val) << (ffsll((bits)) - 1))
|
||||
#define SET_BITS_VALUE(var, bits, val) \
|
||||
((var) = (var) & ~(bits) | BITS_WITH_VALUE((bits), (val)))
|
||||
((var) = ((var) & ~(bits)) | BITS_WITH_VALUE((bits), (val)))
|
||||
|
||||
#define HWPSTATE_DEBUG(dev, msg...) \
|
||||
do { \
|
||||
|
||||
Reference in new issue
Block a user