Commit-ID: 9d69bb2cd96221b35bcabb3c1ffe84160bcf1b9f Gitweb: http://git.kernel.org/tip/9d69bb2cd96221b35bcabb3c1ffe84160bcf1b9f Author: H. Peter Anvin <hpa@xxxxxxxxxxxxxxx> AuthorDate: Fri, 20 Dec 2013 15:34:22 -0800 Committer: H. Peter Anvin <hpa@xxxxxxxxxxxxxxx> CommitDate: Fri, 20 Dec 2013 15:34:22 -0800 x86, irq: Change check_vectors() to check_irq_vectors_for_cpu_disable() In the context of smpboot.c especially, it is not at all obvious what "check_vectors" actually mean. Since this function is only called in one place, without arguments, we can afford to be a bit more verbose with the function name and make it clear at a glance what the function does. Cc: Prarit Bhargava <prarit@xxxxxxxxxx> Link: http://lkml.kernel.org/r/1387554609-9823-1-git-send-email-prarit@xxxxxxxxxx Signed-off-by: H. Peter Anvin <hpa@xxxxxxxxxxxxxxx> --- arch/x86/include/asm/irq.h | 2 +- arch/x86/kernel/irq.c | 2 +- arch/x86/kernel/smpboot.c | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/arch/x86/include/asm/irq.h b/arch/x86/include/asm/irq.h index dfd7372..cb6cfcd 100644 --- a/arch/x86/include/asm/irq.h +++ b/arch/x86/include/asm/irq.h @@ -25,7 +25,7 @@ extern void irq_ctx_init(int cpu); #ifdef CONFIG_HOTPLUG_CPU #include <linux/cpumask.h> -extern int check_vectors(void); +extern int check_irq_vectors_for_cpu_disable(void); extern void fixup_irqs(void); extern void irq_force_complete_move(int); #endif diff --git a/arch/x86/kernel/irq.c b/arch/x86/kernel/irq.c index 483f111..7d40698 100644 --- a/arch/x86/kernel/irq.c +++ b/arch/x86/kernel/irq.c @@ -266,7 +266,7 @@ EXPORT_SYMBOL_GPL(vector_used_by_percpu_irq); * This cpu is going to be removed and its vectors migrated to the remaining * online cpus. Check to see if there are enough vectors in the remaining cpus. */ -int check_vectors(void) +int check_irq_vectors_for_cpu_disable(void) { int irq, cpu; unsigned int vector, this_count, count; diff --git a/arch/x86/kernel/smpboot.c b/arch/x86/kernel/smpboot.c index 7ac6654..391ea52 100644 --- a/arch/x86/kernel/smpboot.c +++ b/arch/x86/kernel/smpboot.c @@ -1314,7 +1314,7 @@ int native_cpu_disable(void) { int ret; - ret = check_vectors(); + ret = check_irq_vectors_for_cpu_disable(); if (ret) return ret; -- To unsubscribe from this list: send the line "unsubscribe linux-tip-commits" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html
![]() |