From patchwork Thu Mar 23 11:35:57 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Viresh Kumar X-Patchwork-Id: 95901 Delivered-To: patch@linaro.org Received: by 10.140.89.233 with SMTP id v96csp692504qgd; Thu, 23 Mar 2017 04:36:51 -0700 (PDT) X-Received: by 10.99.238.5 with SMTP id e5mr2311904pgi.49.1490269011233; Thu, 23 Mar 2017 04:36:51 -0700 (PDT) Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id h25si3794598pfk.166.2017.03.23.04.36.51; Thu, 23 Mar 2017 04:36:51 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S933758AbdCWLge (ORCPT + 15 others); Thu, 23 Mar 2017 07:36:34 -0400 Received: from mail-pf0-f175.google.com ([209.85.192.175]:36164 "EHLO mail-pf0-f175.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S933392AbdCWLgb (ORCPT ); Thu, 23 Mar 2017 07:36:31 -0400 Received: by mail-pf0-f175.google.com with SMTP id o126so104629396pfb.3 for ; Thu, 23 Mar 2017 04:36:30 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :in-reply-to:references; bh=x2VZLfsqJBGyAQF0ZA/YfLsE/DbBqlKfKP1LeYELp18=; b=ZVvV9mv4UaxzvE4Bbi26F+fL6YEd8RgJcKSLTJnF/aGjbkXxdcfrCVGQ8yzjpJ/4jV RavKoEysyij1dnlDJTSJ/mX0cNiLNC/ScmAyF5qombN1xZqxRmVFtsLaoHIRtc5THYTI Nzeywufk5sa+1LnIwHNJ8xmK2Us8SXuupDG/I= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:in-reply-to:references; bh=x2VZLfsqJBGyAQF0ZA/YfLsE/DbBqlKfKP1LeYELp18=; b=cXb1x965HUglCjW+Y6+6OnBpFruAfXTvqszmQn0hiVCyLkDa0kRuDrsyuuTUo59eSw XsnzhCnWZXczOJa+Iqw1Q3y5Yqh29UwPuRs4qRy0XneEmwPM/p4NntsPfLgtZ30XI1NP 60sNuyLc5MdGVCq1o2nWhkxxEG0sLO2Fb5nEA8yD2Uw3XazPuGZLjd6cSksM03Ct5/tS nWDJTHJDZOIPfTVdQP/lp19WSfoCYLQzbhfp7XaF+qSKNzSDl+D2CbqKmlOvNXjr/OUW Km+6nzaB4rfp+XXgudogutsM5QKgpxAlNG+xm5BkTq9aGtj+Rhvrt031POSEBXU2nNQ+ IlQA== X-Gm-Message-State: AFeK/H0HEgo3TwVh43DLfnngr/wjzjr3tL5YqxpxVUoSCCZtn7haEuHQk1Hq8x96MPhtcV6D X-Received: by 10.84.130.106 with SMTP id 97mr2988015plc.132.1490268990144; Thu, 23 Mar 2017 04:36:30 -0700 (PDT) Received: from localhost ([122.171.239.200]) by smtp.gmail.com with ESMTPSA id e13sm9864795pgf.48.2017.03.23.04.36.29 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 23 Mar 2017 04:36:29 -0700 (PDT) From: Viresh Kumar To: Ingo Molnar , Peter Zijlstra Cc: linaro-kernel@lists.linaro.org, linux-kernel@vger.kernel.org, Vincent Guittot , Viresh Kumar Subject: [PATCH 2/4] sched: cpudeadline: don't re-initialize struct cpudl Date: Thu, 23 Mar 2017 17:05:57 +0530 Message-Id: <6ca332777208030e46a3090939631746dce037d8.1490268634.git.viresh.kumar@linaro.org> X-Mailer: git-send-email 2.12.0.432.g71c3a4f4ba37 In-Reply-To: References: In-Reply-To: References: Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The struct cpudl passed to cpudl_init() is already initialized to zero. Don't do that again. Signed-off-by: Viresh Kumar --- kernel/sched/cpudeadline.c | 2 -- 1 file changed, 2 deletions(-) -- 2.12.0.432.g71c3a4f4ba37 diff --git a/kernel/sched/cpudeadline.c b/kernel/sched/cpudeadline.c index fba235c7d026..a51e91bf3907 100644 --- a/kernel/sched/cpudeadline.c +++ b/kernel/sched/cpudeadline.c @@ -246,9 +246,7 @@ int cpudl_init(struct cpudl *cp) { int i; - memset(cp, 0, sizeof(*cp)); raw_spin_lock_init(&cp->lock); - cp->size = 0; cp->elements = kcalloc(nr_cpu_ids, sizeof(struct cpudl_item),