From nobody Wed Feb 11 03:02:03 2026 Received: from mail-pg1-f196.google.com (mail-pg1-f196.google.com [209.85.215.196]) (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 96D6D1F09AD for ; Tue, 10 Feb 2026 02:56:08 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.215.196 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1770692169; cv=none; b=OCtPdJHD6BG4Aj7sUeKNVNMQHfnQopo7jw/3yYFUaIWdSZo/lxjazPzG7tzKw4pt2KqZCpj5idZOJF9JVvPwT8coMXpAKqYoXH/af3BW0+yBahMF1ePuoWr9302PrJKgunn22qEheoUL2azIIWrkCw8Or/OHQB1VFUyZbXymrNA= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1770692169; c=relaxed/simple; bh=qSJ76guPf/hy465ZZcOicCtcCmgjqJyxj15a5GuEKXg=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=oTg8JVXBg1U81ZTWGr9UJ2DlXWoY5eIDMDmxXbuOBqeWD9z8khQXeXzD+p9dHqIVsCEnaPMLMpDzcXKZ21fjHT7jklsTNV2daDtXRSs/zQif5A9bdjVL5TwBMXcgly7Ph4Hoi3VTnJCTg7kCqaqVk0mVeK7KBDB3zakqGy4rD6c= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b=ZOzOySki; arc=none smtp.client-ip=209.85.215.196 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="ZOzOySki" Received: by mail-pg1-f196.google.com with SMTP id 41be03b00d2f7-c06cb8004e8so2066561a12.0 for ; Mon, 09 Feb 2026 18:56:08 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1770692168; x=1771296968; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=bJ9pk2D1tV1Is03np2QcgI4tbg2LvO7bnqrcE0ywxJI=; b=ZOzOySkiwnmU5QvhIaQMTt8bHfS2+YdFOTwFe6sK4CK+yF2nRZ5q4w7jxIn6fZ4QnU qy0EZfcWgVWJski9Vz5viIpG6KvLpQODbGLjlTf88Jlf5DHNTBMJQlFmn8OBkkmAAff3 +tQwy06sXLHr0jA52QbNnlOVYp1NMrquPSN+UZArLArNFI3FKceYfNqpcjBluxeWTjzj +VdNw+51Tp/1sHPJrS3ofvK44m/HjpbIBvO23JHZPkca5LTaGRDCChE1KmYZErZbH99R wpTC58i8wLO4soPn1i+b2kM47JvqnDdiZVyW9JgUbYGJBxXehA6vaNoSoM9+LtU++Imn ov9w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1770692168; x=1771296968; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-gg:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=bJ9pk2D1tV1Is03np2QcgI4tbg2LvO7bnqrcE0ywxJI=; b=El2ny9K3BqHFi7nmW1GUXo0JEZD04oIwUDI8vvcMmjX70wxce9v4YOiNjybIuTDC7y Oqskiz+UDAwag0SiIenrgFECsZiixt6D0e6Y+rfi26Ev2r2piZ4cknM7Tje/CRRq1NVo FbUyKLImTLbw6AUu/tqpS2HwQMtaGEopSypD08w7anZ2kR4eukTokSc4VzGqypKr/Ye9 NWwOBr4KjTTaxXP47RkzpDDdSjKPMxNsJ10Qe9jPf5HP84tSFRSJCFFOhdXP/jsmADhw mOFdql5dBAShup4zMkgOx0nn9hVw+BFstUZ0Hd4crg01ZZnRtgxF7Uhvvs9qfR8JH1QP TbkA== X-Gm-Message-State: AOJu0YzlTSoLx9zc04kTYs6A9AJteJZmh62aVYxjPHEnMhXQPKgfbOYj yIL6kpn0YxIxmKcY5kaAQf3aaHVQQOwfflk/YC8P3ftFh82CNNzWatuS X-Gm-Gg: AZuq6aK5+UKEeiZLffRZovxRHjpuX8eaDjzmcIZwcqv7eTQuI9jFxp4p3TcueXEQIvK /jaBrsdhFCyZSa6swMlMfe05Zmsoc4ie63NkuRzA0kavwBdaOTVA4JZvQ8fBrpDZBtEhlqAvj6Z EW+hH4zZMjzOuXj6W5L4jIBf+AijWu48qp9eecMz9FyN2XT1bc1eAzzcNh/v+nuTSyvH8kWGbCw EOcEOv4f73GOeIo1M1bJbzbUdxgzuuizrOqKoJQ6bi76rXCpKcvBpddf6N8iH5yrftmuNzaI3/2 ac8G8zu4g1q0vmXnP487DwHzJPDW1laThyE3YZajoon19q5vmvmHNQyW/WaCW+T7KwxO8SMTIZy FFgH4tpN2jIri2bwyopeR7MiqyDdskM79rJSKHgfXYMPg1YnLSMvhRNzh18tVT4ulmMyzdF/QOF EoAgJ572fWWhkFcU4gnhKHawDUptChkLs+YJk7dzGkbFCGNbU= X-Received: by 2002:a17:90b:2b87:b0:356:22ef:57b9 with SMTP id 98e67ed59e1d1-3566799b31cmr553178a91.3.1770692167885; Mon, 09 Feb 2026 18:56:07 -0800 (PST) Received: from DESKTOP-MOQC9AF.mioffice.cn ([43.224.245.239]) by smtp.gmail.com with ESMTPSA id 98e67ed59e1d1-354b64a8a9esm8071523a91.1.2026.02.09.18.56.06 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 09 Feb 2026 18:56:07 -0800 (PST) From: Zhan Xusheng X-Google-Original-From: Zhan Xusheng To: Thomas Gleixner Cc: linux-kernel@vger.kernel.org, Zhan Xusheng Subject: [PATCH] clocksource: Update registration failure behavior documentation Date: Tue, 10 Feb 2026 10:56:03 +0800 Message-ID: <20260210025603.143764-1-zhanxusheng@xiaomi.com> X-Mailer: git-send-email 2.43.0 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" The documentation for clocksource registration functions has been updated to clarify the failure behavior. Specifically, the return value on failure is no longer an error code (-EBUSY). Instead, the function will issue warnings but always return 0 on failure, as previously successful registration attempts might still leave the system in an inconsistent state. Signed-off-by: Zhan Xusheng --- kernel/time/clocksource.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/kernel/time/clocksource.c b/kernel/time/clocksource.c index df7194961658..6a56282dbd08 100644 --- a/kernel/time/clocksource.c +++ b/kernel/time/clocksource.c @@ -1228,7 +1228,8 @@ EXPORT_SYMBOL_GPL(__clocksource_update_freq_scale); * @scale: Scale factor multiplied against freq to get clocksource hz * @freq: clocksource frequency (cycles per second) divided by scale * - * Returns -EBUSY if registration fails, zero otherwise. + * Returns 0 on success. On failure, it will issue warnings but will not r= eturn + * a specific error code. * * This *SHOULD NOT* be called directly! Please use the * clocksource_register_hz() or clocksource_register_khz helper functions. --=20 2.43.0