From patchwork Fri Apr 25 03:18:41 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Zi Shen Lim X-Patchwork-Id: 29029 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-yh0-f71.google.com (mail-yh0-f71.google.com [209.85.213.71]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 85926203AC for ; Fri, 25 Apr 2014 03:19:50 +0000 (UTC) Received: by mail-yh0-f71.google.com with SMTP id a41sf12994282yho.10 for ; Thu, 24 Apr 2014 20:19:50 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:delivered-to:from:to:cc:subject:date:message-id :in-reply-to:references:mime-version:sender:precedence:list-id :x-original-sender:x-original-authentication-results:mailing-list :list-post:list-help:list-archive:list-unsubscribe:content-type; bh=g9kyaYciYmYo/RPMkAs3vNyZy6P1NezDR/AuxWRcx7Y=; b=JjzjSplchZV1dwb3Knrq3hqK4qB32Qb8i4M8ZX4uKd+A3j5iv2n7D9h3ytBRXhRAjn K4Qxf01JwLjnAB9b996xqhqd6mUWDgGC8RzK64OZlOf3vByRT/x4gIm+NEF/9k+BYQzh SW7VFeNoh7wZXr++04WgTAdxLQ4wKGW5fVyxrpJP39QwvUEnGQ4V0p2t09gREvRinnn2 hwu1NH+w0wCoh7KU8/qrAnWEDPGhIFgBqqfnlrqR4WMdi5qiWMpa1MvbTHDXA5yiJ4iK PtqUJ/EHDgwRNBJswtu7+KaH5zyo5F+fEXeB8sDCm4PRuC0VBITbiuhxf4s5ep9avp2W KOKA== X-Gm-Message-State: ALoCoQmn6T+kHUV/FBetfKBbycEESp8uRBEnOBjFIu7x20j0xjGUvoMsN5XBhxDlrianPcMXtQjs X-Received: by 10.236.121.238 with SMTP id r74mr1602768yhh.23.1398395990226; Thu, 24 Apr 2014 20:19:50 -0700 (PDT) X-BeenThere: patchwork-forward@linaro.org Received: by 10.140.37.84 with SMTP id q78ls1397421qgq.69.gmail; Thu, 24 Apr 2014 20:19:50 -0700 (PDT) X-Received: by 10.220.59.65 with SMTP id k1mr4386629vch.22.1398395990090; Thu, 24 Apr 2014 20:19:50 -0700 (PDT) Received: from mail-ve0-f182.google.com (mail-ve0-f182.google.com [209.85.128.182]) by mx.google.com with ESMTPS id sh5si1412797vdc.212.2014.04.24.20.19.50 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Thu, 24 Apr 2014 20:19:50 -0700 (PDT) Received-SPF: none (google.com: patch+caf_=patchwork-forward=linaro.org@linaro.org does not designate permitted sender hosts) client-ip=209.85.128.182; Received: by mail-ve0-f182.google.com with SMTP id jw12so4100095veb.27 for ; Thu, 24 Apr 2014 20:19:50 -0700 (PDT) X-Received: by 10.221.34.7 with SMTP id sq7mr4354679vcb.5.1398395989957; Thu, 24 Apr 2014 20:19:49 -0700 (PDT) X-Forwarded-To: patchwork-forward@linaro.org X-Forwarded-For: patch@linaro.org patchwork-forward@linaro.org Delivered-To: patch@linaro.org Received: by 10.220.221.72 with SMTP id ib8csp64900vcb; Thu, 24 Apr 2014 20:19:49 -0700 (PDT) X-Received: by 10.68.139.71 with SMTP id qw7mr8213824pbb.68.1398395988713; Thu, 24 Apr 2014 20:19:48 -0700 (PDT) Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id au1si1399846pbd.442.2014.04.24.20.19.47; Thu, 24 Apr 2014 20:19:48 -0700 (PDT) Received-SPF: none (google.com: linux-kernel-owner@vger.kernel.org does not designate permitted sender hosts) client-ip=209.132.180.67; Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751484AbaDYDS5 (ORCPT + 27 others); Thu, 24 Apr 2014 23:18:57 -0400 Received: from mail-gw3-out.broadcom.com ([216.31.210.64]:2358 "EHLO mail-gw3-out.broadcom.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750773AbaDYDSz (ORCPT ); Thu, 24 Apr 2014 23:18:55 -0400 X-IronPort-AV: E=Sophos;i="4.97,924,1389772800"; d="scan'208";a="25985942" Received: from irvexchcas08.broadcom.com (HELO IRVEXCHCAS08.corp.ad.broadcom.com) ([10.9.208.57]) by mail-gw3-out.broadcom.com with ESMTP; 24 Apr 2014 20:38:23 -0700 Received: from IRVEXCHSMTP3.corp.ad.broadcom.com (10.9.207.53) by IRVEXCHCAS08.corp.ad.broadcom.com (10.9.208.57) with Microsoft SMTP Server (TLS) id 14.3.174.1; Thu, 24 Apr 2014 20:18:55 -0700 Received: from mail-sj1-12.sj.broadcom.com (10.10.10.20) by IRVEXCHSMTP3.corp.ad.broadcom.com (10.9.207.53) with Microsoft SMTP Server id 14.3.174.1; Thu, 24 Apr 2014 20:18:55 -0700 Received: from lc-sj1-5012.broadcom.com (lc-sj1-5012.sj.broadcom.com [10.66.65.230]) by mail-sj1-12.sj.broadcom.com (Postfix) with ESMTP id 179B427A81; Thu, 24 Apr 2014 20:18:55 -0700 (PDT) Received: by lc-sj1-5012.broadcom.com (Postfix, from userid 28931) id 1132BE01ECB; Thu, 24 Apr 2014 20:18:55 -0700 (PDT) From: Zi Shen Lim To: Mark Brown , Catalin Marinas , Lorenzo Pieralisi , Mark Rutland , Will Deacon CC: Zi Shen Lim , , Subject: [PATCHv2 1/2] arm64, sched: Remove unused mc_capable() and smt_capable() Date: Thu, 24 Apr 2014 20:18:41 -0700 Message-ID: <1398395922-7482-2-git-send-email-zlim@broadcom.com> X-Mailer: git-send-email 1.8.4.3 In-Reply-To: <1398395922-7482-1-git-send-email-zlim@broadcom.com> References: <1398395922-7482-1-git-send-email-zlim@broadcom.com> MIME-Version: 1.0 Sender: linux-kernel-owner@vger.kernel.org Precedence: list List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Removed-Original-Auth: Dkim didn't pass. X-Original-Sender: zlim@broadcom.com X-Original-Authentication-Results: mx.google.com; spf=neutral (google.com: patch+caf_=patchwork-forward=linaro.org@linaro.org does not designate permitted sender hosts) smtp.mail=patch+caf_=patchwork-forward=linaro.org@linaro.org Mailing-list: list patchwork-forward@linaro.org; contact patchwork-forward+owners@linaro.org X-Google-Group-Id: 836684582541 List-Post: , List-Help: , List-Archive: List-Unsubscribe: , Remove unused and deprecated mc_capable() and smt_capable(). Both were added recently by f6e763b93a6c ("arm64: topology: Implement basic CPU topology support"). Uses of both were removed by 8e7fbcbc22c1 ("sched: Remove stale power aware scheduling remnants and dysfunctional knobs"). Reviewed-by: Mark Brown Signed-off-by: Zi Shen Lim --- v1->v2: No changes. - Added Mark's review-by. arch/arm64/include/asm/topology.h | 3 --- 1 file changed, 3 deletions(-) diff --git a/arch/arm64/include/asm/topology.h b/arch/arm64/include/asm/topology.h index 0172e6d..7ebcd31 100644 --- a/arch/arm64/include/asm/topology.h +++ b/arch/arm64/include/asm/topology.h @@ -20,9 +20,6 @@ extern struct cpu_topology cpu_topology[NR_CPUS]; #define topology_core_cpumask(cpu) (&cpu_topology[cpu].core_sibling) #define topology_thread_cpumask(cpu) (&cpu_topology[cpu].thread_sibling) -#define mc_capable() (cpu_topology[0].cluster_id != -1) -#define smt_capable() (cpu_topology[0].thread_id != -1) - void init_cpu_topology(void); void store_cpu_topology(unsigned int cpuid); const struct cpumask *cpu_coregroup_mask(int cpu);