summaryrefslogtreecommitdiff
path: root/src/cpu/intel/fsp_model_206ax/model_206ax_init.c
diff options
context:
space:
mode:
authorLee Leahy <leroy.p.leahy@intel.com>2017-03-15 17:52:06 -0700
committerLee Leahy <leroy.p.leahy@intel.com>2017-03-16 04:13:50 +0100
commit73a28942031675fce20d6649d2c2ce66fe62f416 (patch)
treed225fe29f105a2c745edb1c56f348f2c937eaeb2 /src/cpu/intel/fsp_model_206ax/model_206ax_init.c
parent4239ff37b7711bd81bc5ab96bb135b3c977aa2b5 (diff)
downloadcoreboot-73a28942031675fce20d6649d2c2ce66fe62f416.tar.xz
cpu/intel: Add int to unsigned
Fix the following warning detected by checkpatch.pl: WARNING: Prefer 'unsigned int' to bare use of 'unsigned' TEST=Build and run on Galileo Gen2 Change-Id: I207713a3370e5a9abed4535187aa2aaeef502d6f Signed-off-by: Lee Leahy <Leroy.P.Leahy@intel.com> Reviewed-on: https://review.coreboot.org/18848 Tested-by: build bot (Jenkins) Reviewed-by: Martin Roth <martinroth@google.com>
Diffstat (limited to 'src/cpu/intel/fsp_model_206ax/model_206ax_init.c')
-rw-r--r--src/cpu/intel/fsp_model_206ax/model_206ax_init.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/cpu/intel/fsp_model_206ax/model_206ax_init.c b/src/cpu/intel/fsp_model_206ax/model_206ax_init.c
index e538cb209b..aedd467a9a 100644
--- a/src/cpu/intel/fsp_model_206ax/model_206ax_init.c
+++ b/src/cpu/intel/fsp_model_206ax/model_206ax_init.c
@@ -113,8 +113,8 @@ void set_power_limits(u8 power_limit_1_time)
{
msr_t msr = rdmsr(MSR_PLATFORM_INFO);
msr_t limit;
- unsigned power_unit;
- unsigned tdp, min_power, max_power, max_time;
+ unsigned int power_unit;
+ unsigned int tdp, min_power, max_power, max_time;
u8 power_limit_1_val;
if (power_limit_1_time >= ARRAY_SIZE(power_limit_time_sec_to_msr))
@@ -251,7 +251,7 @@ static void configure_mca(void)
int cpu_get_apic_id_map(int *apic_id_map)
{
struct cpuid_result result;
- unsigned threads_per_package, threads_per_core, i, shift = 0;
+ unsigned int threads_per_package, threads_per_core, i, shift = 0;
/* Logical processors (threads) per core */
result = cpuid_ext(0xb, 0);
@@ -276,7 +276,7 @@ int cpu_get_apic_id_map(int *apic_id_map)
static void intel_cores_init(struct device *cpu)
{
struct cpuid_result result;
- unsigned threads_per_package, threads_per_core, i;
+ unsigned int threads_per_package, threads_per_core, i;
/* Logical processors (threads) per core */
result = cpuid_ext(0xb, 0);