commit | 04c497a6ba6ba0219da5c4a32570fa46a0b239b9 | [log] [tgz] |
---|---|---|
author | Angel Pons <th3fanbus@gmail.com> | Wed Nov 03 16:30:10 2021 +0100 |
committer | Felix Held <felix-coreboot@felixheld.de> | Fri Nov 05 15:30:34 2021 +0000 |
tree | e90bee14d343e80b17861fdc8eb404172294fa46 | |
parent | ac07b03634dc5997901eae4b031b5f4975a2a71e [diff] [blame] |
cpu/intel: Use unsigned types in `get_cpu_count()` Change-Id: Id95e45a3eba384a61c02016b7663ec71c3ae1865 Signed-off-by: Angel Pons <th3fanbus@gmail.com> Reviewed-on: https://review.coreboot.org/c/coreboot/+/58917 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Felix Held <felix-coreboot@felixheld.de>
diff --git a/src/cpu/intel/model_2065x/model_2065x_init.c b/src/cpu/intel/model_2065x/model_2065x_init.c index 30519c0..e77f9aa 100644 --- a/src/cpu/intel/model_2065x/model_2065x_init.c +++ b/src/cpu/intel/model_2065x/model_2065x_init.c
@@ -124,8 +124,8 @@ static int get_cpu_count(void) { msr_t msr; - int num_threads; - int num_cores; + unsigned int num_threads; + unsigned int num_cores; msr = rdmsr(MSR_CORE_THREAD_COUNT); num_threads = (msr.lo >> 0) & 0xffff;