diff options
author | 2012-05-30 12:52:15 +0800 | |
---|---|---|
committer | 2012-05-30 14:37:00 -0700 | |
commit | 2da06af8106f8f35318bb084baf8448797ef058a (patch) | |
tree | 8bf4749904065ce3cecf56dcd9545340a61a926d /tools/perf/scripts/python/export-to-postgresql.py | |
parent | Merge branch 'x86/trampoline' into x86/urgent (diff) | |
download | linux-dev-2da06af8106f8f35318bb084baf8448797ef058a.tar.xz linux-dev-2da06af8106f8f35318bb084baf8448797ef058a.zip |
x86, mtrr: Fix a type overflow in range_to_mtrr func
When boot on sun G5+ with 4T mem, see an overflow in mtrr cleanup as below.
*BAD*gran_size: 2G chunk_size: 2G num_reg: 10 lose cover RAM:
-18014398505283592M
This is because 1<<31 sign extended. Use an unsigned long constant to
fix it. Useful for mem larger than or equal to 4T.
-v2: Use 64bit constant instead of explicit type conversion as suggested
by Yinghai. Description updated too.
Signed-off-by: Zhenzhong Duan <zhenzhong.duan@oracle.com>
Link: http://lkml.kernel.org/r/4FC5A77F.6060505@oracle.com
Signed-off-by: H. Peter Anvin <hpa@zytor.com>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions