mirror of
https://gitee.com/bianbu-linux/linux-6.6
synced 2025-04-24 14:07:52 -04:00
ia64: cleanup remove_siblinginfo()
remove_siblinginfo() initialises variable 'last', but never uses it. Drop unneeded code. CC: Ingo Molnar <mingo@kernel.org> CC: Peter Zijlstra <peterz@infradead.org> CC: Valentin Schneider <vschneid@redhat.com> CC: linux-ia64@vger.kernel.org CC: linux-kernel@vger.kernel.org Signed-off-by: Yury Norov <yury.norov@gmail.com> Acked-by: Andrew Morton <akpm@linux-foundation.org>
This commit is contained in:
parent
525d651560
commit
a570e68fab
1 changed files with 0 additions and 4 deletions
|
@ -576,8 +576,6 @@ clear_cpu_sibling_map(int cpu)
|
||||||
static void
|
static void
|
||||||
remove_siblinginfo(int cpu)
|
remove_siblinginfo(int cpu)
|
||||||
{
|
{
|
||||||
int last = 0;
|
|
||||||
|
|
||||||
if (cpu_data(cpu)->threads_per_core == 1 &&
|
if (cpu_data(cpu)->threads_per_core == 1 &&
|
||||||
cpu_data(cpu)->cores_per_socket == 1) {
|
cpu_data(cpu)->cores_per_socket == 1) {
|
||||||
cpumask_clear_cpu(cpu, &cpu_core_map[cpu]);
|
cpumask_clear_cpu(cpu, &cpu_core_map[cpu]);
|
||||||
|
@ -585,8 +583,6 @@ remove_siblinginfo(int cpu)
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
last = (cpumask_weight(&cpu_core_map[cpu]) == 1 ? 1 : 0);
|
|
||||||
|
|
||||||
/* remove it from all sibling map's */
|
/* remove it from all sibling map's */
|
||||||
clear_cpu_sibling_map(cpu);
|
clear_cpu_sibling_map(cpu);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue