From patchwork Mon Feb 18 06:28:11 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Masahiro Yamada X-Patchwork-Id: 158577 Delivered-To: patch@linaro.org Received: by 2002:a02:48:0:0:0:0:0 with SMTP id 69csp2136525jaa; Sun, 17 Feb 2019 22:28:47 -0800 (PST) X-Google-Smtp-Source: AHgI3IYx4Nx2kR+X3iSiSKXlVsj7S+Uvit5HIR+gijnEOV3N7E2okztI5uQuzW3ubj3k6MvmcRn2 X-Received: by 2002:a17:902:aa8c:: with SMTP id d12mr24019079plr.25.1550471326934; Sun, 17 Feb 2019 22:28:46 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1550471326; cv=none; d=google.com; s=arc-20160816; b=vzlCqr7dv/S60dXvtA+VRr5BC0DEnGk4azoC/BV6L96URoWBSLcCOMXIfHjZK1+rwo iKBRCnxiojzJJLYUSuUuosdMFdt32h97Xqhwd9QxToBFIEHQHDSOfuNCzpEkld8CAHYd 8E96imW/EiIJOy8Alu8pw+CCg1/s1Uq3T+wu7sCGZ2s+LrgwGZ8qSnpnOs9qQ9QqfXYI ho8UqPGciPKTX6O7QaKeRNTb99/GfYml06tphs2BK4sYvI15in26sO7CXLkJvwlbOHDx yUUBPHI0TrfBNdEIJt+hpCrpOCuBFhTsun0eM3CLMrhPjY+Cm42lUHTyqHOBO70cPkt0 PmwA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from :dkim-signature:dkim-filter; bh=GQ7y1jv3TPMmSnBg82zb/DrP9e/mLTCQYVUXjI9OyZ4=; b=0PFOze+ajdXRPP+cLDhNoP9kgKSPe1T7oJPIWEG1ShanMH+2M+9W8gDr5g1bVCyU2+ WrW5oluVJYjdmNLCg3KDVwIWJpiP26yNrjOhariiRfGILTFC5SOoNhkYUMjx9MhR0ca0 p0WqosJxP5vAt8weU5pmEp3Ba11/gdmTNu6KWDvjK3lceUc1C92h1+kV4dWxRw/ZAhNf TgZypGfumHIvxidMGFtjUsyZjZ1uIaA3P0Y0t8XY8P0mzmRCpQKYiYYGrpPnJ3nypSmL RVPwIvQPw/HQ5RGg1z8EO6argkNSshOjdFtqxY/VE6xfAOUVYFlO8Puc2pFHaAu6Gsjg T24w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@nifty.com header.s=dec2015msa header.b=KkA3AKPZ; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 92si13044277plw.158.2019.02.17.22.28.46; Sun, 17 Feb 2019 22:28:46 -0800 (PST) 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=@nifty.com header.s=dec2015msa header.b=KkA3AKPZ; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728234AbfBRG2m (ORCPT + 32 others); Mon, 18 Feb 2019 01:28:42 -0500 Received: from conuserg-07.nifty.com ([210.131.2.74]:22802 "EHLO conuserg-07.nifty.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725881AbfBRG2l (ORCPT ); Mon, 18 Feb 2019 01:28:41 -0500 Received: from pug.e01.socionext.com (p14092-ipngnfx01kyoto.kyoto.ocn.ne.jp [153.142.97.92]) (authenticated) by conuserg-07.nifty.com with ESMTP id x1I6SF1Z003818; Mon, 18 Feb 2019 15:28:16 +0900 DKIM-Filter: OpenDKIM Filter v2.10.3 conuserg-07.nifty.com x1I6SF1Z003818 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nifty.com; s=dec2015msa; t=1550471296; bh=GQ7y1jv3TPMmSnBg82zb/DrP9e/mLTCQYVUXjI9OyZ4=; h=From:To:Cc:Subject:Date:From; b=KkA3AKPZ51exYb2sT/Xer+WNznFqHg5jSHzJaOkrzi89Me3a+WapQkd+0VVxGWMt+ D315WrZ1URvw8GckMPFT/LVqSOtTEbjl2WxpUWYYccQJ2CFgPhy66HzBa/ElDa50WA 4trva+OK9SxyQhykCu7cZeWylxqkYkF6nh4lbP4/tw3fy55Ohr9Y9IOdqBA1PJWilT Iq11cpMPGyY0K8pKCK+RkBHqNKMiawtr+V9sLTWKj1v6Qu5gxbokMjtUFZ8k3T44NM 5BVO3DVnhjMXE241ukLo7JclWtX90L+iIz/z2MXhP6j6iP/+8acZ+Kua/9X0Im/aWO 0jGEtrIS3U9iQ== X-Nifty-SrcIP: [153.142.97.92] From: Masahiro Yamada To: Li Zefan , Tejun Heo , cgroups@vger.kernel.org Cc: Masahiro Yamada , linux-kernel@vger.kernel.org Subject: [PATCH] cpuset: remove unused task_has_mempolicy() Date: Mon, 18 Feb 2019 15:28:11 +0900 Message-Id: <1550471291-4327-1-git-send-email-yamada.masahiro@socionext.com> X-Mailer: git-send-email 2.7.4 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org This is a remnant of commit 5f155f27cb7f ("mm, cpuset: always use seqlock when changing task's nodemask"). Signed-off-by: Masahiro Yamada --- kernel/cgroup/cpuset.c | 13 ------------- 1 file changed, 13 deletions(-) -- 2.7.4 diff --git a/kernel/cgroup/cpuset.c b/kernel/cgroup/cpuset.c index 479743d..72afd55 100644 --- a/kernel/cgroup/cpuset.c +++ b/kernel/cgroup/cpuset.c @@ -203,19 +203,6 @@ static inline struct cpuset *parent_cs(struct cpuset *cs) return css_cs(cs->css.parent); } -#ifdef CONFIG_NUMA -static inline bool task_has_mempolicy(struct task_struct *task) -{ - return task->mempolicy; -} -#else -static inline bool task_has_mempolicy(struct task_struct *task) -{ - return false; -} -#endif - - /* bits in struct cpuset flags field */ typedef enum { CS_ONLINE,