diff options
author | Marat Dukhan <marat@fb.com> | 2017-11-30 09:46:49 -0800 |
---|---|---|
committer | Marat Dukhan <marat@fb.com> | 2017-11-30 09:46:49 -0800 |
commit | 7fcd441dfa5017727cd008c20f6a403dad202b90 (patch) | |
tree | 24a8158afeebfb70de602e9dbddb2372af49f646 /src | |
parent | 9c34544299e489202a173dd34e857eee0b6881d4 (diff) | |
download | cpuinfo-7fcd441dfa5017727cd008c20f6a403dad202b90.tar.gz |
Fix unused variable warning on iOS
Diffstat (limited to 'src')
-rw-r--r-- | src/arm/mach/init.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/arm/mach/init.c b/src/arm/mach/init.c index ee552e7..d728889 100644 --- a/src/arm/mach/init.c +++ b/src/arm/mach/init.c @@ -329,8 +329,8 @@ void cpuinfo_arm_mach_init(void) { const uint32_t package_id = i / threads_per_package; processors[i].smt_id = smt_id; - processors[i].core = cores + i / threads_per_core; - processors[i].package = packages + i / threads_per_package; + processors[i].core = &cores[core_id]; + processors[i].package = &packages[package_id]; } const uint32_t cacheline_size = get_sys_info(HW_CACHELINE, "HW_CACHELINE"); |