From patchwork Fri Mar 4 13:35:57 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Claudiu Beznea X-Patchwork-Id: 12769129 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 46B1CC433EF for ; Fri, 4 Mar 2022 13:37:22 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-ID:Date:Subject:CC:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=pl7sLv/L+rykQp8+2cvgyHRYzY02kQ1IcA870DLlTRo=; b=SSA2xYQpWrbl2J l9YICYYVsX6ZBypYsTYxHrdWTsRKy/hixhJSCviyMPbUuqBznGaL/fxYeyT/YnLrvof8/uLVSlW7k Wp/GQvtYlI0stNsXSBd27hFdaZadt1YSX8LhmWMhoy4ivNYyVt991KAg0LKksNjLIS7dxxRAeNpTU v8rl8cvNndkW7cJgvp97KHemcJeefQ6laItt18F8eBVhhso56xY0id0bVQxZ2Dyzlqj4Mpy/z5OPS /RSY4zBeV+amhNH9sjLM7eoR7EvjZseBvh+Fk0UuH31MYr2qI7BoSQA2JizV2kcATe/8Br1tOkqxP EUiJBj79h+zoxv9V1dlQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1nQ866-00AGVF-95; Fri, 04 Mar 2022 13:35:54 +0000 Received: from esa.microchip.iphmx.com ([68.232.154.123]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1nQ85C-00AG7p-0F for linux-arm-kernel@lists.infradead.org; Fri, 04 Mar 2022 13:34:59 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=microchip.com; i=@microchip.com; q=dns/txt; s=mchp; t=1646400898; x=1677936898; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=3OTySUvfj9YLZ+NLvxOpjOu3QfEnAa4NzFTMBjne5gU=; b=i7PcZZ8xqRTD9+YCZYRLtKcJKhFqH9NEZd7Kgg6tIgGPQT3meup+gk1O /P/zy8vi4/Hg4Z5DUmaVUljtDQ2SMdotkj023NTYewqEqR5UwgYY9GU4i ONfrqYY6cqbCJ7FUF4w80Inast4vFc5Ya09QGyRMci3im9oot2ag9yCyt 95iA0h7D4+IF6P22TCWeAduHMrKHtA1boiQtK1H6XOPNj8ruldqBgeSQJ 58aSmsmVPL+24Q+LX6dPNbCuAiqnFg2eDC6K6xa6z0HD6EgXzt17rJGMD fFcUSFkHVfSwrw2ilNINcTW9oepJ9bDMRHHv7rZBkGognsflxMktLJIB9 A==; X-IronPort-AV: E=Sophos;i="5.90,155,1643698800"; d="scan'208";a="148098681" Received: from smtpout.microchip.com (HELO email.microchip.com) ([198.175.253.82]) by esa4.microchip.iphmx.com with ESMTP/TLS/AES256-SHA256; 04 Mar 2022 06:34:56 -0700 Received: from chn-vm-ex04.mchp-main.com (10.10.85.152) by chn-vm-ex01.mchp-main.com (10.10.85.143) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2375.17; Fri, 4 Mar 2022 06:34:56 -0700 Received: from localhost.localdomain (10.10.115.15) by chn-vm-ex04.mchp-main.com (10.10.85.152) with Microsoft SMTP Server id 15.1.2375.17 via Frontend Transport; Fri, 4 Mar 2022 06:34:55 -0700 From: Claudiu Beznea To: , CC: , , Claudiu Beznea Subject: [PATCH v3 2/6] clocksource/drivers/timer-microchip-pit64b: use notrace Date: Fri, 4 Mar 2022 15:35:57 +0200 Message-ID: <20220304133601.2404086-3-claudiu.beznea@microchip.com> X-Mailer: git-send-email 2.33.0 In-Reply-To: <20220304133601.2404086-1-claudiu.beznea@microchip.com> References: <20220304133601.2404086-1-claudiu.beznea@microchip.com> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20220304_053458_168005_41D3581D X-CRM114-Status: UNSURE ( 9.94 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org Use notrace for mchp_pit64b_sched_read_clk() to avoid recursive call of prepare_ftrace_return() when issuing: echo function_graph > /sys/kernel/debug/tracing/current_tracer Fixes: 625022a5f160 ("clocksource/drivers/timer-microchip-pit64b: Add Microchip PIT64B support") Signed-off-by: Claudiu Beznea --- drivers/clocksource/timer-microchip-pit64b.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/clocksource/timer-microchip-pit64b.c b/drivers/clocksource/timer-microchip-pit64b.c index cfa4ec7ef396..790d2c9b42a7 100644 --- a/drivers/clocksource/timer-microchip-pit64b.c +++ b/drivers/clocksource/timer-microchip-pit64b.c @@ -165,7 +165,7 @@ static u64 mchp_pit64b_clksrc_read(struct clocksource *cs) return mchp_pit64b_cnt_read(mchp_pit64b_cs_base); } -static u64 mchp_pit64b_sched_read_clk(void) +static u64 notrace mchp_pit64b_sched_read_clk(void) { return mchp_pit64b_cnt_read(mchp_pit64b_cs_base); }