projects
/
xen.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c98e9ec
)
x86/psr: fix coding style issue
author
Yi Sun
<yi.y.sun@linux.intel.com>
Wed, 16 Aug 2017 09:03:29 +0000
(11:03 +0200)
committer
Jan Beulich
<jbeulich@suse.com>
Wed, 16 Aug 2017 09:03:29 +0000
(11:03 +0200)
In psr.c, we defined some macros but the coding style is not good.
Use '(1u << X)' to replace '(1<<X)'.
Signed-off-by: Yi Sun <yi.y.sun@linux.intel.com>
xen/arch/x86/psr.c
patch
|
blob
|
history
diff --git
a/xen/arch/x86/psr.c
b/xen/arch/x86/psr.c
index 84f213ccf6141781d7209d06d9bf136cd68814ed..c2036cbed4ab5cbd3d4e88b52afb20220e97ae25 100644
(file)
--- a/
xen/arch/x86/psr.c
+++ b/
xen/arch/x86/psr.c
@@
-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 (1
u <<
0)
+#define PSR_CAT (1
u <<
1)
+#define PSR_CDP (1
u <<
2)
#define CAT_CBM_LEN_MASK 0x1f
#define CAT_COS_MAX_MASK 0xffff