Skip to contentSkip to conversation

clockevents: tick_check_new_device(): drop needless check

PATCH New Luiz Capitulino 2 participants 2 messages Jul 29, 2015 – Aug 1, 2015 Nohz, dynticks support

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 clockevents: tick_check_new_device(): drop needless check

The same check is performed by tick_check_percpu().

---
 kernel/time/tick-common.c | 3 ---
 1 file changed, 3 deletions(-)
kernel/time/tick-common.c +0 -3
index f8bf475..d11c55b 100644
@@ -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;
 
Signature · 1 line
2.1.0
#1 lore raw

[tip:timers/core] clockevents: Drop redundant cpumask check in tick_check_new_device()

clockevents: Drop redundant cpumask check in tick_check_new_device()
Commit-ID:  d74892c5b291c0010295d26d6b1e11cd70451722
Gitweb:     http://git.kernel.org/tip/d74892c5b291c0010295d26d6b1e11cd70451722
Author:     Luiz Capitulino <[email protected]>
AuthorDate: Wed, 29 Jul 2015 15:14:17 -0400
Committer:  Thomas Gleixner <[email protected]>
CommitDate: Sat, 1 Aug 2015 12:00:13 +0200

clockevents: Drop redundant cpumask check in tick_check_new_device()

The same check is performed by tick_check_percpu().

---
 kernel/time/tick-common.c | 3 ---
 1 file changed, 3 deletions(-)
kernel/time/tick-common.c +0 -3
index f8bf475..d11c55b 100644
@@ -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;