From patchwork Thu Mar 23 11:35:56 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Viresh Kumar X-Patchwork-Id: 95900 Delivered-To: patch@linaro.org Received: by 10.140.89.233 with SMTP id v96csp692499qgd; Thu, 23 Mar 2017 04:36:50 -0700 (PDT) X-Received: by 10.99.5.133 with SMTP id 127mr2396372pgf.8.1490269010560; Thu, 23 Mar 2017 04:36:50 -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.50; Thu, 23 Mar 2017 04:36:50 -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 S933567AbdCWLga (ORCPT + 15 others); Thu, 23 Mar 2017 07:36:30 -0400 Received: from mail-pg0-f47.google.com ([74.125.83.47]:36522 "EHLO mail-pg0-f47.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S933392AbdCWLg2 (ORCPT ); Thu, 23 Mar 2017 07:36:28 -0400 Received: by mail-pg0-f47.google.com with SMTP id g2so121694111pge.3 for ; Thu, 23 Mar 2017 04:36:27 -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=XKRF0py5SmsvtuZJ4DRcI0pxZnzIrsWcnrKWB6NCqe4=; b=ZK/hTWduXMyKHAWK/9MeaeL0ZOX7eyg1Hhg7ITxAeAuU8qh4/DUKA3KXnLA7yjGCM2 BuH/BX4ZckChJlP6BlLX4J7R64ToooaQv/41JcspsWxRsLNxRLNsIgj7caVtyrFbQ6GQ hzYJ2lUdDHHpHt7qgjUYYdPre70K3ccqNv9Ic= 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=XKRF0py5SmsvtuZJ4DRcI0pxZnzIrsWcnrKWB6NCqe4=; b=VpKARIbuQeyIfOj4HSF1+Z3DQMhLOxs1L0xjXuYKcBGRBeT3h4Oohi2VTGbX0kUub+ K2rEOwDumKQdhaLJvCJYa/G7dk5B0USloSS9/HGNJg27XyLX2BxlNyfnGNOyV9GbkyVx mMwUlYuoqcSUNlDglhv7gSXnI194m4MearDSpiCxMlAITStzjGWt1ibRHL/GFQcvV0D9 WIqba9p93JtGriDugYoJ6vKVreDtpcKH/jvmmUFMAYZk3Am8xe04BtLMdJd5/gizafzV +Rd+DL5lVmgn+Oxy8IgTK5wjN+mb4NjFeQO4M6ZglyloPNE6xtva39fBVpwaymUSNBxR NoAA== X-Gm-Message-State: AFeK/H1BzeKLXCDhOTEmb4mCUXHPCIdMwjU34EqvgHqh/3DM9pJ/J3ZH6b02/qrgS4HrvGvA X-Received: by 10.84.241.135 with SMTP id b7mr745980pll.188.1490268986913; Thu, 23 Mar 2017 04:36:26 -0700 (PDT) Received: from localhost ([122.171.239.200]) by smtp.gmail.com with ESMTPSA id z63sm9797275pfz.70.2017.03.23.04.36.25 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 23 Mar 2017 04:36:26 -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 1/4] sched: topology: drop memset() from init_rootdomain() Date: Thu, 23 Mar 2017 17:05:56 +0530 Message-Id: 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 There are only two callers of init_rootdomain(). One of them passes a global to it and another one sends dynamically allocated root-domain. There is no need to memset the root-domain in the first case as the structure is already reset. Update alloc_rootdomain() to allocate the memory with kzalloc() and remove the memset() call from init_rootdomain(). Signed-off-by: Viresh Kumar --- kernel/sched/topology.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) -- 2.12.0.432.g71c3a4f4ba37 diff --git a/kernel/sched/topology.c b/kernel/sched/topology.c index 1b0b4fb12837..a2497702e628 100644 --- a/kernel/sched/topology.c +++ b/kernel/sched/topology.c @@ -242,8 +242,6 @@ void rq_attach_root(struct rq *rq, struct root_domain *rd) static int init_rootdomain(struct root_domain *rd) { - memset(rd, 0, sizeof(*rd)); - if (!zalloc_cpumask_var(&rd->span, GFP_KERNEL)) goto out; if (!zalloc_cpumask_var(&rd->online, GFP_KERNEL)) @@ -292,7 +290,7 @@ static struct root_domain *alloc_rootdomain(void) { struct root_domain *rd; - rd = kmalloc(sizeof(*rd), GFP_KERNEL); + rd = kzalloc(sizeof(*rd), GFP_KERNEL); if (!rd) return NULL; 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), 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; } From patchwork Thu Mar 23 11:35:59 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Viresh Kumar X-Patchwork-Id: 95903 Delivered-To: patch@linaro.org Received: by 10.140.89.233 with SMTP id v96csp692515qgd; Thu, 23 Mar 2017 04:36:52 -0700 (PDT) X-Received: by 10.84.247.23 with SMTP id n23mr2937029pll.39.1490269012464; Thu, 23 Mar 2017 04:36:52 -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.52; Thu, 23 Mar 2017 04:36:52 -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 S934354AbdCWLgm (ORCPT + 15 others); Thu, 23 Mar 2017 07:36:42 -0400 Received: from mail-pf0-f182.google.com ([209.85.192.182]:36187 "EHLO mail-pf0-f182.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S933392AbdCWLgi (ORCPT ); Thu, 23 Mar 2017 07:36:38 -0400 Received: by mail-pf0-f182.google.com with SMTP id o126so104630501pfb.3 for ; Thu, 23 Mar 2017 04:36:37 -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=TUambgh7hRDMDXp6o1jSvK5jpLbc7sCmvOY5Ee5J2sc=; b=WmhGTzfziELi0IuiN6XWbPR1NPi8wimoRw5NeCjBrCLOw2KNlMH4yMeQGQdjMdax04 yVf3A+8N/R3yJBL6kbicYLvqN3FytBLBn98O0j2dw5wJ38q82t7z4rvfY/v4/qSPxwbb LH3J9hRCG6WKaa1GP0jVccLVrYe7Ye9g++YH0= 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=TUambgh7hRDMDXp6o1jSvK5jpLbc7sCmvOY5Ee5J2sc=; b=DFHYwGrMoKpN09VWd9RPP7zv/sblFA74+uWwXTleV+EhBiUUOXXhRZsdeSWf116Ak7 TM2mlxBqBofxY7Jvkmsmu9+4oOjiVo517uxeXSGPnF1xaMxr2BlUGSXK6MUxmM2N9BJ9 Mx/vdnGUiQjIkSZ5HhbVJ0wctF7UP4YopdAh1IF6bDyiNpJOG6qmHvCbfHNFQCsiVLKN OsSGoK/3Sk3gQ+s7mrKtqjsXIsc5weI5ysU1pQoLb3bem62L9aNV1bBXIvHEH7kYk2FG Q7kZM7JQvQMdiqLCBr6RR0TT31mifaaBVD+wSKK0eP0LX9j9owcRSrOysbLIy1Ernn7D LK5g== X-Gm-Message-State: AFeK/H0FHtjCBXLaAzbjSWj/vMYw96uZ8UkZa6OctFDZDZ0rD1fNpt80ukCDTGJJK8OtklCm X-Received: by 10.84.218.75 with SMTP id f11mr2974016plm.146.1490268996938; Thu, 23 Mar 2017 04:36:36 -0700 (PDT) Received: from localhost ([122.171.239.200]) by smtp.gmail.com with ESMTPSA id w28sm9883377pge.25.2017.03.23.04.36.35 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 23 Mar 2017 04:36:36 -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 4/4] sched: core: drop useless expression from sched_init() Date: Thu, 23 Mar 2017 17:05:59 +0530 Message-Id: <62813c68d43f7a9e1cf961710b6e1f4e698c7e4c.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 'ptr' is never used after setting 'rt_rq' and there is no need to update it. Signed-off-by: Viresh Kumar --- kernel/sched/core.c | 1 - 1 file changed, 1 deletion(-) -- 2.12.0.432.g71c3a4f4ba37 diff --git a/kernel/sched/core.c b/kernel/sched/core.c index 6d6cad9a46af..bd33a05d038b 100644 --- a/kernel/sched/core.c +++ b/kernel/sched/core.c @@ -5992,7 +5992,6 @@ void __init sched_init(void) ptr += nr_cpu_ids * sizeof(void **); root_task_group.rt_rq = (struct rt_rq **)ptr; - ptr += nr_cpu_ids * sizeof(void **); #endif /* CONFIG_RT_GROUP_SCHED */ }