From: Luiz Capitulino Date: Wed, 29 Jul 2015 19:14:17 +0000 (-0400) Subject: clockevents: Drop redundant cpumask check in tick_check_new_device() X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=d74892c5b291c0010295d26d6b1e11cd70451722;p=GitHub%2Fexynos8895%2Fandroid_kernel_samsung_universal8895.git clockevents: Drop redundant cpumask check in tick_check_new_device() The same check is performed by tick_check_percpu(). Signed-off-by: Luiz Capitulino Link: http://lkml.kernel.org/r/20150729151417.069d1bb0@redhat.com Signed-off-by: Thomas Gleixner --- diff --git a/kernel/time/tick-common.c b/kernel/time/tick-common.c index f8bf47571dda..d11c55b6ab7d 100644 --- a/kernel/time/tick-common.c +++ b/kernel/time/tick-common.c @@ -304,9 +304,6 @@ void tick_check_new_device(struct clock_event_device *newdev) int cpu; cpu = smp_processor_id(); - if (!cpumask_test_cpu(cpu, newdev->cpumask)) - goto out_bc; - td = &per_cpu(tick_cpu_device, cpu); curdev = td->evtdev;