From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-wr1-f52.google.com (mail-wr1-f52.google.com [209.85.221.52]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 77F72239E69 for ; Mon, 2 Jun 2025 15:19:08 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.221.52 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1748877550; cv=none; b=NTtCXW4t+btYrH2j7N7jcdCREnBNqPM1RPRPlm75YlqDHDwyv8pJA13IdIKelqv2kC1ckhyULx8Uaqi/CcUBlen9T2nhwL+VZsI3obVGU+t8Ya8U/aQAZ7SJ9Wx5JN/102IHrE2SgBeJUdrOGcf9XrHewMt1oPPTHPyvgovPnww= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1748877550; c=relaxed/simple; bh=GxbSdL0PyZ8UlejUoxlDIdlFpATxnSdyF2KX6oHR03A=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=aCybeJryPzWkwXZf+ivc8XOrj6QJhVfFy5NHeEQ1yLdd0DIYq05w+96nxPQftS8omsBgPL2MDQw2TJQZynQPcGNiKMSR1PqbHu2daYyGgpcp4FogCIdRihRB1UUl+rpq326KXJtRadY9Bf+lIkDUW0tcoV4PwXG3AWZQv976yyQ= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org; spf=pass smtp.mailfrom=linaro.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b=q1Ht0zWV; arc=none smtp.client-ip=209.85.221.52 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linaro.org Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="q1Ht0zWV" Received: by mail-wr1-f52.google.com with SMTP id ffacd0b85a97d-3a5123c1533so127928f8f.2 for ; Mon, 02 Jun 2025 08:19:08 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1748877546; x=1749482346; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=h4kATdXtYuRJowbluuoUfq4iaqlYfYT07dwMRu/eijw=; b=q1Ht0zWVmXyQXOxoXmReB/1O6jeMdlz5oaNDqn+KKfsTcemeYF/cWZff6Jucji0rZx L9BuslqtLxJHpy2EaXOX3uNx5u9qZmdYMW1FJFkgdVLTI3W+g02DIhsj45UGQL8uFgKj QVE2LMVrATzGalVID2OybgjblihUuI0LoOUALUaI0YjjmmutX5rv5vgK1YNuSB/HRn15 p83eNbwJeY4LPD6KZqGewBAcNaluhiDxtec1at/zWZZz2CPHsz+uyLaVShpJk2oIAZNZ HMDE0QHiJ22gy15jTq07FOrXi0icJltEKeYAh1/qh+eY4i2aiLtwz9f6uK5h2C/1F23X mUWg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1748877546; x=1749482346; h=content-transfer-encoding:mime-version: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=h4kATdXtYuRJowbluuoUfq4iaqlYfYT07dwMRu/eijw=; b=WQGTtPWomiJ6Dx7YsoTfjGGRKn1Mfpn/DoJcrgSaJXtUo1RkvklnymQ1a/oeb9XOD5 +mX9lCFVrlZIAJQvBrji74sBFVmvAqjwIIqwNv3jWcJpj/blEA7po5BLOkFxKDh+Fr1P 3wJwweDht7NNnZTTd7Gbd5Sptcp72kbmoDzZ5kTW7hnPyr3CawRRYePWS9wqH6lttdzV PGDoTbTPMsF5/aRJLVvcjAkmcQtpttCtGGdbkryp7Kx+wnp/DwdPZw6hE7gzunu5prA4 54VROxKlwOFssiWuGA3SyLnNYjs+ZP1VM2eH1csAFl/B+ZB/49e8zeggDsT48fLa/NyL HIQA== X-Forwarded-Encrypted: i=1; AJvYcCUAwHv5+Upm0KEbVM+TSL7qeTYvXxr1wZR1zmegwo8xvPeSpXAP1cw53dAXVxuK+8JXhXDOqMKtNEUgeg==@vger.kernel.org X-Gm-Message-State: AOJu0YwAj+eyDgeU5ajE15/8MTgUBhcGnyGNouue2HE1P78nu7mDuhF/ jsrfigmtV9gRm8jjgWCVF+pddDLaTB9Ru9DbhKbxGyBnmDoZallTMPxPw66GTvLWdxw= X-Gm-Gg: ASbGncv9NwokZguQ+A5dttzeP/j1HbF97svolpMbP7gxd9GjCVJ5H9sTLAZVKo68iQY F8l5BljTwuIDGF0+mvULLkf/Vm5hemdVCV3xJ08rtyfb+X8A38wU3P/ub2g06CStzMqodNOTKLu k4gcvdn4CA9EamFVPA5z5ewbaQv6SOFM5mo9aA7JQ40Tx8sgHbXyZNaxA3b/axq6JGm6J3TxuX9 QrhBb/ibkRXlRX9knchAXGlG4PRqj7m4IP7kA5xOEyXWonxUf4qt/+t8/GNUvZ1FBrnMw8d4kwr Mhg3ldCH0Xuh5Wq4J9c5cqdrwu+zZLzbYmWv5YbDDE6wQeJpmFy4+1brY7189P7pwURGcznXXaw KKg== X-Google-Smtp-Source: AGHT+IGo3+b4mB4bJZk3jsrIr83JxAnU/93JoVte/2RVs9090BDS0xWFY0i+YN16EfaKcepr/Do0FQ== X-Received: by 2002:a5d:588f:0:b0:3a4:de13:2a25 with SMTP id ffacd0b85a97d-3a4f89dcb7cmr10264360f8f.45.1748877546552; Mon, 02 Jun 2025 08:19:06 -0700 (PDT) Received: from mai.. (146725694.box.freepro.com. [130.180.211.218]) by smtp.gmail.com with ESMTPSA id ffacd0b85a97d-3a4efe74111sm15619844f8f.56.2025.06.02.08.19.05 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 02 Jun 2025 08:19:06 -0700 (PDT) From: Daniel Lezcano To: daniel.lezcano@linaro.org, tglx@linutronix.de Cc: Jim Cromie , Maxime Coquelin , Alexandre Torgue , Chen-Yu Tsai , Jernej Skrabec , Samuel Holland , Thierry Reding , Jonathan Hunter , "Peter Zijlstra (Intel)" , Marco Elver , Nam Cao , linux-kernel@vger.kernel.org, linux-stm32@st-md-mailman.stormreply.com, linux-arm-kernel@lists.infradead.org, linux-sunxi@lists.linux.dev, linux-tegra@vger.kernel.org, John Stulz , Will McVicker , Peter Griffin , Saravan Kanna Subject: [PATCH v1 7/7] time: Export symbol for sched_clock register function Date: Mon, 2 Jun 2025 17:18:51 +0200 Message-ID: <20250602151853.1942521-8-daniel.lezcano@linaro.org> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20250602151853.1942521-1-daniel.lezcano@linaro.org> References: <20250602151853.1942521-1-daniel.lezcano@linaro.org> Precedence: bulk X-Mailing-List: linux-tegra@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit The timer drivers could be converted into modules. The different functions to register the clocksource or the clockevent are already exporting their symbols for modules but the sched_clock_register() function is missing. Export the symbols so the drivers using this function can be converted into modules. Signed-off-by: Daniel Lezcano --- kernel/time/sched_clock.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/kernel/time/sched_clock.c b/kernel/time/sched_clock.c index cc15fe293719..cc1afec306b3 100644 --- a/kernel/time/sched_clock.c +++ b/kernel/time/sched_clock.c @@ -174,8 +174,7 @@ static enum hrtimer_restart sched_clock_poll(struct hrtimer *hrt) return HRTIMER_RESTART; } -void __init -sched_clock_register(u64 (*read)(void), int bits, unsigned long rate) +void sched_clock_register(u64 (*read)(void), int bits, unsigned long rate) { u64 res, wrap, new_mask, new_epoch, cyc, ns; u32 new_mult, new_shift; @@ -247,6 +246,7 @@ sched_clock_register(u64 (*read)(void), int bits, unsigned long rate) pr_debug("Registered %pS as sched_clock source\n", read); } +EXPORT_SYMBOL_GPL(sched_clock_register); void __init generic_sched_clock_init(void) { -- 2.43.0