x86: Remove the useless branch in c_start()
authorMichael Wang <wangyun@linux.vnet.ibm.com>
Wed, 19 Sep 2012 05:42:23 +0000 (13:42 +0800)
committerIngo Molnar <mingo@kernel.org>
Wed, 26 Sep 2012 11:27:56 +0000 (13:27 +0200)
commitdec08a837fda146fee498ffc5ecd0d2eeeacd025
tree2f97fc053268c1e08f6b43a77070873a0bc74ffb
parent6f0f9b6b3fcfe5e156f20d4f804f0d505c750b3c
x86: Remove the useless branch in c_start()

Since 'cpu == -1' in cpumask_next() is legal, no need to handle
'*pos == 0' specially.

About the comments:

/* just in case, cpu 0 is not the first */

A test with a cpumask in which cpu 0 is not the first has been
done, and it works well.

This patch will remove that useless branch to clean the code.

Signed-off-by: Michael Wang <wangyun@linux.vnet.ibm.com>
Cc: kjwinchester@gmail.com
Cc: borislav.petkov@amd.com
Cc: ak@linux.intel.com
Link: http://lkml.kernel.org/r/1348033343-23658-1-git-send-email-wangyun@linux.vnet.ibm.com
Signed-off-by: Ingo Molnar <mingo@kernel.org>
arch/x86/kernel/cpu/proc.c