Refactor cpu_has_work/any_cpu_has_work in cpus.c
authorJan Kiszka <jan.kiszka@siemens.com>
Wed, 9 Feb 2011 15:29:37 +0000 (16:29 +0100)
committerMarcelo Tosatti <mtosatti@redhat.com>
Mon, 14 Feb 2011 14:39:46 +0000 (12:39 -0200)
commit795342fc57cb8dbbee17a1bc563e96ebd452b2c5
tree9b58ba329ba237412d14334c1588ea2d66d75eba
parent15e74ec4f25a8387f1bae7c9eaa753c018e7d6f7
Refactor cpu_has_work/any_cpu_has_work in cpus.c

Avoid duplicate use of the function name cpu_has_work, it's confusing,
also their scope. Refactor cpu_has_work to cpu_thread_is_idle and do the
same with any_cpu_has_work.

Signed-off-by: Jan Kiszka <jan.kiszka@siemens.com>
Signed-off-by: Marcelo Tosatti <mtosatti@redhat.com>
cpus.c