Received: by 2002:a05:6358:a55:b0:ec:fcf4:3ecf with SMTP id 21csp3196953rwb; Mon, 16 Jan 2023 05:08:46 -0800 (PST) X-Google-Smtp-Source: AMrXdXtkBnt0EmNituHEIAYTJLlzRBFV1wpxRAQKyViFn69zBX1ZAUC/fg/tAcsJoPqA5QoaiXEO X-Received: by 2002:aa7:d904:0:b0:49d:f444:ed04 with SMTP id a4-20020aa7d904000000b0049df444ed04mr7989236edr.17.1673874526205; Mon, 16 Jan 2023 05:08:46 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1673874526; cv=none; d=google.com; s=arc-20160816; b=M3+CeiHFFoygjx+sI6kiJcojxoM1AXSrzugL6jTFE9EIfPUrZ/PvpjgJR5MJXR5rFu t56tpom2o1GbSKz9pH13GRrkyausSfOl+BG4cY+FPIzZGEqtcXMYJGTa5uZRJgRIBXut qmaN5i3m3BJX5iv3/vlU+AycYrhmFPBLB25QIWbbiWxftYRS3mndor6cR4Dbl819JEpz 3TPPP50SxEnWnTlwyHLv96uK5tVuLR74+f6ajqVuD9HtS4Pay3a7EMMjOt2YzoScSGnD wr6e//4wytyBSP5ceJ2sKt0xFRwtrJe2IJUACQwj1T6/BZ8lRktFhtqlMt5D6aCuKnyL dCvg== 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=UhRbA3Bqp5wzwk6l8nkMnlzM8NPWC0TqClYGwAsB7GE=; b=XIQ5Gq0guGSXULABg/oOyU3Gou17Mr0eH2mtHEA89Nx1RHJPwOedUxIb92g2x+NeIt OyIT2SI261I91bC3viWERbjetQbzglumdgZANkhi8q4TPfCBdydBZZKhkm/2m08xQmlS V66ANzSmb/FQJEuKtXgWbrjROQlNYgfPL/q4KV+p/fEy0sam4HwpW3WsWXHT/nlf3xMw 9iIE776JnUq0jMIh4ETBgIREMQxKTrLgixc79lJfMIMcz7GW/+GGxdzKz6baGRi9zPOL kqsnfp/LBCsB6ks/x2ZL4Ee1PXQNtALQu10B31MyI597fo4/RlGwafABzUClpH1uL8cX JdHg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=m40ji9um; 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 y6-20020a056402270600b0049e190b68f1si2950893edd.499.2023.01.16.05.08.15; Mon, 16 Jan 2023 05:08:46 -0800 (PST) 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=m40ji9um; 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 S230432AbjAPMuY (ORCPT + 51 others); Mon, 16 Jan 2023 07:50:24 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39644 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230446AbjAPMtq (ORCPT ); Mon, 16 Jan 2023 07:49:46 -0500 Received: from mail-wm1-x333.google.com (mail-wm1-x333.google.com [IPv6:2a00:1450:4864:20::333]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9CD601E5DE for ; Mon, 16 Jan 2023 04:49:43 -0800 (PST) Received: by mail-wm1-x333.google.com with SMTP id fl11-20020a05600c0b8b00b003daf72fc844so2429231wmb.0 for ; Mon, 16 Jan 2023 04:49:43 -0800 (PST) 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=UhRbA3Bqp5wzwk6l8nkMnlzM8NPWC0TqClYGwAsB7GE=; b=m40ji9um9rIDYtcSBCzb6wsXOm/+4ZmSZ0PolpM4qGrslipjQc1xEq5i8ANf1CwMJq QpNb+wGIKmEQukxBdW1asUI2YQC64wfuO1L3+klA7pR12I+TIw3us81Hon5uCmEzclXR 3wAycOW5mr8fiH6beZ9tDneJirIhtQpOJsu9f+qieextJ5+Njw/9vHyGAaRgsmiYnZjA 52IWNOmsFxh7jmXDtoQSpWxMscIUnv4evVfahHv6Lz1zJ+8yEO5P4D6aWOC/ZH9zNB5a gM6+djsGMmpwqVw4UOmSJgz94yM081Itav8bUQ+GexXWtR4t9PEGC47MhVP+nbc7Y9eY 963A== 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=UhRbA3Bqp5wzwk6l8nkMnlzM8NPWC0TqClYGwAsB7GE=; b=He+yBlas+JG7yymyIm1kG8VmY+0xA0MAu4WEcIfhfsECCgWPI/dfPh/S0yFmQVFfYt iV8wuzc9ztOwpQiKBaeyFA3hW5trlY+VBEkQvW99ppTBVOmVT4KvPsDWGJjCvXeN1StR MzSi9WeEHxSIGZWGfk0VQbBO4B8cLBx7XFb4CPFvUue+Om4D0ClOYvR5Hrb83g6sIyDI /4BfRdaDpxVLyzYPoWnnMmxsTl9bMn5OrNOxQi7jczPcfRPWD46/O7TaMv8ZEOF1MxLe M9lQgsa4LLtXL4Ujxn68i56x3sl0rlRbqeqod3WbEd4mxkYAtwr5OJdaix9LW3WdTNun Xhxw== X-Gm-Message-State: AFqh2kqrqDsg7QzDJih9/HVyy9DhTIr/m/iDKIG4QF7ZvJzE+BrRFPUY M9ZFK+qitz5HvjCVM1BBi76M3l/tNO2UpoCV X-Received: by 2002:a05:600c:4a28:b0:3da:f9e9:3a1a with SMTP id c40-20020a05600c4a2800b003daf9e93a1amr3896373wmp.20.1673873383205; Mon, 16 Jan 2023 04:49:43 -0800 (PST) Received: from linaro.org ([2a00:23c5:6809:2201:6c91:710d:9433:e868]) by smtp.gmail.com with ESMTPSA id fl12-20020a05600c0b8c00b003dab40f9eafsm6896832wmb.35.2023.01.16.04.49.42 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 16 Jan 2023 04:49:42 -0800 (PST) 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 v7 08/15] coresight: trace id: Remove legacy get trace ID function. Date: Mon, 16 Jan 2023 12:49:21 +0000 Message-Id: <20230116124928.5440-9-mike.leach@linaro.org> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20230116124928.5440-1-mike.leach@linaro.org> References: <20230116124928.5440-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 Reviewed-by: Suzuki K Poulose --- 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