From patchwork Thu Mar 23 11:35:58 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Viresh Kumar X-Patchwork-Id: 95902 Delivered-To: patch@linaro.org Received: by 10.140.89.233 with SMTP id v96csp692508qgd; Thu, 23 Mar 2017 04:36:51 -0700 (PDT) X-Received: by 10.99.189.9 with SMTP id a9mr2358694pgf.190.1490269011535; 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 S933878AbdCWLgh (ORCPT + 15 others); Thu, 23 Mar 2017 07:36:37 -0400 Received: from mail-pg0-f41.google.com ([74.125.83.41]:33335 "EHLO mail-pg0-f41.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S933392AbdCWLge (ORCPT ); Thu, 23 Mar 2017 07:36:34 -0400 Received: by mail-pg0-f41.google.com with SMTP id w20so19787138pgc.0 for ; Thu, 23 Mar 2017 04:36:34 -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=2RWmEdnTqfrlOd0zFOyAT+MTIEwqmaeNE9Xu/ku5kSs=; b=CrEJW7wVkT6Gi1lQVw92Ks5MURRJvv/otrChKAfxO8zmx6elXpIa7SrI3Tkti9Dsmy minYDhUXFPubOUvB0udjIM8HvmsWGu8UOi+/1BLUGoIxE4ucJz4+kKbvF1eRJrgbjMJs 4c5knMNfcGiJpcx7eBJoZ9KiDml2+pkeWoLr0= 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=2RWmEdnTqfrlOd0zFOyAT+MTIEwqmaeNE9Xu/ku5kSs=; b=ueMUM6QMWRpT47+s1NoxsNGe9iNfb+bJIK/FQl6H38pudCGZDscW7Kuasc4HrwkBd1 lLtKTpNX5VIFuMojXOY2VRR3lC9Q51wfk5OJ44ZWZPHAZoqZv/1hWdR/4DoAS9UnN1DX ZhLe+M5gLn+spKeM7oTAAJX2Zym61hmV/tLn5lWdWLePQppijlH7dBzVSdZ2vq0tgtl+ xR3UHf1qNvf5G22niNUYLN72u1OucqiwKUodHElyjHnSIRFJ2ii+mlEO9wv8xqveDacP Y5Wkm9CBgusXNsFdCWa7ZRaDqRtshry7pq5NNXXaMk9SZEWctM0dnh/9Ba1QhzrD0TPE 5VUg== X-Gm-Message-State: AFeK/H33gkU6kPd7gjYWXB8yHwvgPKZnQcWSGbwLy0Ihi9dTpEWo6Zcm59j5ydRLSz2XtDQ3 X-Received: by 10.84.177.36 with SMTP id w33mr2935378plb.105.1490268993595; Thu, 23 Mar 2017 04:36:33 -0700 (PDT) Received: from localhost ([122.171.239.200]) by smtp.gmail.com with ESMTPSA id j188sm4511246pfg.27.2017.03.23.04.36.32 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 23 Mar 2017 04:36:32 -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 3/4] sched: cpupri: don't re-initialize struct cpupri Date: Thu, 23 Mar 2017 17:05:58 +0530 Message-Id: <2923fa952e725e5c3ba82c128dfa18ca4597ae6c.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 cpupri passed to cpupri_init() is already initialized to zero. Don't do that again. Signed-off-by: Viresh Kumar --- kernel/sched/cpupri.c | 3 --- 1 file changed, 3 deletions(-) -- 2.12.0.432.g71c3a4f4ba37 diff --git a/kernel/sched/cpupri.c b/kernel/sched/cpupri.c index 981fcd7dc394..d6165d87ef3e 100644 --- a/kernel/sched/cpupri.c +++ b/kernel/sched/cpupri.c @@ -209,12 +209,9 @@ int cpupri_init(struct cpupri *cp) { int i; - memset(cp, 0, sizeof(*cp)); - for (i = 0; i < CPUPRI_NR_PRIORITIES; i++) { struct cpupri_vec *vec = &cp->pri_to_cpu[i]; - atomic_set(&vec->count, 0); if (!zalloc_cpumask_var(&vec->mask, GFP_KERNEL)) goto cleanup; }