Received: by 2002:a05:6358:111d:b0:dc:6189:e246 with SMTP id f29csp2665786rwi; Tue, 1 Nov 2022 10:12:35 -0700 (PDT) X-Google-Smtp-Source: AMsMyM4Fy1Bgvn+GTIaaoy18s3WVwu39joK69w2gfzXtjHJ+1fA5oYO9qDbI6edjvZQrI1Y+aWBj X-Received: by 2002:a17:906:5dac:b0:78d:fa65:a4a9 with SMTP id n12-20020a1709065dac00b0078dfa65a4a9mr18695991ejv.223.1667322755715; Tue, 01 Nov 2022 10:12:35 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1667322755; cv=none; d=google.com; s=arc-20160816; b=wYtVRemTChUzyMJQ+CekVBdgJ20pkp2P8kytHSoeD8/5QbGUd7zduhYiVKspu8rP4F WUIVTbLOKrEMx1X09M70ZUCyhen7jkOhm6JqnGTjgMOtKp/3cSO05ZzIJZ7NbEq3skl3 D+0NkvGn6A36IuGgKAv32xN5UMIsFR7aTfrm19axgGpcmAdNLT4F3ryCPKGq7L8/Shof LIecDwhrD39ITf8ogLiQO2m6nVem6WIksvlme9mbG/+j2VI1UEjFM2J7GJW+BWGOjZ0c FPbZKcorbYoEiIRrIqc775ux5ymbB1uWqX3uDo9i6EKE1YMi2S1yJHs19Igklg6yNYl9 Iwsw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:references:in-reply-to:message-id:date:subject :cc:to:from:dkim-signature; bh=GM5W8kdEVZTdrJaLxSP8hWg1gbfPZ58r3qozGiSOj2M=; b=bTyg5hczTIy5KtEltLS63h0iwaA7acCROg3tflGRjQyXefV3pHQlfUOovoHzCkmoP9 3177HqXDvHfQ3H596bJFT31lw/2GuLL5GCq/HvpVwhUFYhXAWVXdUViniOcwGQk/7KGl SkONmUZTzOhuZ+RI7o0G6A+Sr8j7MS8LpfCk/qbF73mKrVfwVLeew0MbJvV0aw/hpHO0 DfWC9wDp2Dc2C3S/BNHUW4Amfq9yUa3OrjqYCjAiY8E6MsqveDVHOHDeUdrTPpylaBHk QrWg6VsgrJEWOuqjUvB1rly0H5rGEMhv5T89V5so9jeOAL+Th19hqdBQ3jtUjnypG7BU 98cg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=SxPqmxfI; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id k7-20020a170906578700b007878c9d73a2si9543735ejq.426.2022.11.01.10.12.12; Tue, 01 Nov 2022 10:12:35 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=SxPqmxfI; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 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 S230482AbiKAQcA (ORCPT + 96 others); Tue, 1 Nov 2022 12:32:00 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33944 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230000AbiKAQbc (ORCPT ); Tue, 1 Nov 2022 12:31:32 -0400 Received: from mail-wr1-x433.google.com (mail-wr1-x433.google.com [IPv6:2a00:1450:4864:20::433]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id AA04B1C908 for ; Tue, 1 Nov 2022 09:31:30 -0700 (PDT) Received: by mail-wr1-x433.google.com with SMTP id bs21so20912251wrb.4 for ; Tue, 01 Nov 2022 09:31:30 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=references:in-reply-to:message-id:date:subject:cc:to:from:from:to :cc:subject:date:message-id:reply-to; bh=GM5W8kdEVZTdrJaLxSP8hWg1gbfPZ58r3qozGiSOj2M=; b=SxPqmxfIyvPOuEndXUQFG+OUFf7gJowHMKLuR43rLJqZMJzPjxWJCbL8bE/XilZt6u 6OcjOItYooR+Q2TvHWn8iOG0TOznhm5YwJKGEfJuGuWM92s+qjwmDdYep/0sR/01hARH k77ELga2o+iLBhcgPLz5FQDVv4DLsVvS+i04iHADLF7Fhna9/c0urtxzzElRtrN5atxI diKTnNlY174lxr1n0aCGRLhts1ZUoTTsgQ3KfDI/iVWLKesoS1sjrLg/wfNiINooyk2A EFvbRZPbQY+OETVwXNJ3MAbquUr6loK4yFJLVh+6ocClsDMRcQr+YHwhiTfwbrBKTJJQ L4Ew== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=references:in-reply-to:message-id:date:subject:cc:to:from :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=GM5W8kdEVZTdrJaLxSP8hWg1gbfPZ58r3qozGiSOj2M=; b=5t7MVRXODqvGXx5SoqG1wsJYftJnM8gE2id1sKVCqyaai2SU6sefuQGRl4A5UerTcr MDb3jgW6YFjymZELFCEnrbuFwsvsAxljFmRaXp0CzZnsZ+HvJ8lb+pm/W9swTH44gO83 T8kWv7qavc8OrsmCdrqWEPWmvuYeoYwKyBxtgXYXIGRkTkbK3JxW8r1ROcgosU8cJsp/ Of/LqejwBD6WAdHg9CXkITfC5S+Th9Psx8NQ/3L9fv8Aata5ZYPS0wOXjJ/0CTdcQLn5 h/LCc/MmI6xA+2sQIJA5wY4PtfPlOxxIMNzPowywdIYboZZGATpAeybEGIzEth7vYQUP i+3g== X-Gm-Message-State: ACrzQf2kKAg2HpxRBNfWfTP7BaJUAEswLQpfjykgzh7v3OzHDh9Z1lFU 3kaPXRfMpl7xChr83o0CjmAcSQ== X-Received: by 2002:a5d:484f:0:b0:236:9c97:6f85 with SMTP id n15-20020a5d484f000000b002369c976f85mr12476548wrs.636.1667320290279; Tue, 01 Nov 2022 09:31:30 -0700 (PDT) Received: from linaro.org ([2a00:23c5:6809:2201:e844:18b6:fc5:bbc9]) by smtp.gmail.com with ESMTPSA id bu15-20020a056000078f00b0022ac1be009esm8339844wrb.16.2022.11.01.09.31.29 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 01 Nov 2022 09:31:29 -0700 (PDT) From: Mike Leach To: coresight@lists.linaro.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Cc: mathieu.poirier@linaro.org, suzuki.poulose@arm.com, peterz@infradead.org, mingo@redhat.com, acme@kernel.org, linux-perf-users@vger.kernel.org, leo.yan@linaro.org, quic_jinlmao@quicinc.com, Mike Leach Subject: [PATCH v5 08/14] coresight: trace id: Remove legacy get trace ID function. Date: Tue, 1 Nov 2022 16:30:57 +0000 Message-Id: <20221101163103.17921-9-mike.leach@linaro.org> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20221101163103.17921-1-mike.leach@linaro.org> References: <20221101163103.17921-1-mike.leach@linaro.org> X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Removes legacy coresight_get_trace_id() function now its use has been removed from the ETM code. Signed-off-by: Mike Leach --- include/linux/coresight-pmu.h | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/include/linux/coresight-pmu.h b/include/linux/coresight-pmu.h index ffff4e6277e5..624f4843453e 100644 --- a/include/linux/coresight-pmu.h +++ b/include/linux/coresight-pmu.h @@ -8,7 +8,6 @@ #define _LINUX_CORESIGHT_PMU_H #define CORESIGHT_ETM_PMU_NAME "cs_etm" -#define CORESIGHT_ETM_PMU_SEED 0x10 /* * The legacy Trace ID system based on fixed calculation from the cpu @@ -44,15 +43,4 @@ #define ETM4_CFG_BIT_RETSTK 12 #define ETM4_CFG_BIT_VMID_OPT 15 -static inline int coresight_get_trace_id(int cpu) -{ - /* - * A trace ID of value 0 is invalid, so let's start at some - * random value that fits in 7 bits and go from there. Since - * the common convention is to have data trace IDs be I(N) + 1, - * set instruction trace IDs as a function of the CPU number. - */ - return (CORESIGHT_ETM_PMU_SEED + (cpu * 2)); -} - #endif -- 2.17.1