Skip to contentSkip to conversation

x86/psr: fix coding style issue

PATCH New Yi Sun 1 participant 1 message Aug 16, 2017

lore
Share & tools
lore

Yi Sun

author
#0 lore raw

PATCH 1/1 x86/psr: fix coding style issue

In psr.c, we defined some macros but the coding style is not good. Use '(1u << X)' to replace '(1<<X)'.

---
 xen/arch/x86/psr.c | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)
xen/arch/x86/psr.c +3 -3
index 9ce8f17..3622de0 100644
@@ -31,9 +31,9 @@
  * - PSR         Intel Platform Shared Resource
  */
 
-#define PSR_CMT        (1<<0)
-#define PSR_CAT        (1<<1)
-#define PSR_CDP        (1<<2)
+#define PSR_CMT        (1u << 0)
+#define PSR_CAT        (1u << 1)
+#define PSR_CDP        (1u << 2)
 
 #define CAT_CBM_LEN_MASK 0x1f
 #define CAT_COS_MAX_MASK 0xffff
Signature · 7 lines
1.9.1


_______________________________________________
Xen-devel mailing list
[email protected]
https://lists.xen.org/xen-devel