Skip to content

Commit

Permalink
powerpc: Exclude arch_sd_sibiling_asym_packing() on UP
Browse files Browse the repository at this point in the history
Only SMP systems care about load-balance features, plus this
saves some .text space on UP and also fixes the build.

Reported-by: Michael Ellerman <michael@ellerman.id.au>
Signed-off-by: Peter Zijlstra <a.p.zijlstra@chello.nl>
Cc: Michael Neuling <mikey@neuling.org>
LKML-Reference: <tip-76cbd8a8f8b0dddbff89a6708bd5bd13c0d21a00@git.kernel.org>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
  • Loading branch information
Peter Zijlstra authored and Ingo Molnar committed Jun 9, 2010
1 parent 76cbd8a commit 89275d5
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions arch/powerpc/kernel/process.c
Original file line number Diff line number Diff line change
Expand Up @@ -1269,6 +1269,7 @@ unsigned long randomize_et_dyn(unsigned long base)
return ret;
}

#ifdef CONFIG_SMP
int arch_sd_sibiling_asym_packing(void)
{
if (cpu_has_feature(CPU_FTR_ASYM_SMT)) {
Expand All @@ -1277,3 +1278,4 @@ int arch_sd_sibiling_asym_packing(void)
}
return 0;
}
#endif

0 comments on commit 89275d5

Please sign in to comment.