sched/deadline: Don't re-initialize 'struct cpudl'
authorViresh Kumar <viresh.kumar@linaro.org>
Thu, 13 Apr 2017 09:15:49 +0000 (14:45 +0530)
committerIngo Molnar <mingo@kernel.org>
Thu, 10 Aug 2017 10:18:13 +0000 (12:18 +0200)
The 'struct cpudl' passed to cpudl_init() is already initialized to zero.
Don't do that again.

Signed-off-by: Viresh Kumar <viresh.kumar@linaro.org>
Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Cc: Linus Torvalds <torvalds@linux-foundation.org>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Thomas Gleixner <tglx@linutronix.de>
Cc: Vincent Guittot <vincent.guittot@linaro.org>
Cc: linaro-kernel@lists.linaro.org
Link: http://lkml.kernel.org/r/bd4c229806bc96694b15546207afcc221387d2f5.1492065513.git.viresh.kumar@linaro.org
Signed-off-by: Ingo Molnar <mingo@kernel.org>
kernel/sched/cpudeadline.c

index fba235c7d02679a5881f71971f84d778a4222972..bdf448b6556f1329e08ad46f48c7c2091dfcbef5 100644 (file)
@@ -246,7 +246,6 @@ int cpudl_init(struct cpudl *cp)
 {
        int i;
 
-       memset(cp, 0, sizeof(*cp));
        raw_spin_lock_init(&cp->lock);
        cp->size = 0;