From patchwork Mon Jun 5 15:08:25 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: tip-bot2 for Thomas Gleixner X-Patchwork-Id: 103319 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:994d:0:b0:3d9:f83d:47d9 with SMTP id k13csp2753086vqr; Mon, 5 Jun 2023 08:09:50 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ6WY6rQKDXEuN7/RhI2ctRmkywgcjN1lHovP7VzMe3tFQzW8X7N1x5TWCqSPsBg9AmtS1Lw X-Received: by 2002:a05:6a21:6811:b0:10a:eea0:6987 with SMTP id wr17-20020a056a21681100b0010aeea06987mr6421026pzb.26.1685977789911; Mon, 05 Jun 2023 08:09:49 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1685977789; cv=none; d=google.com; s=arc-20160816; b=RWQhJzZdAfbnACJxACtjdH7gOCk/ZcFX2/wsPtEvLvjC89U52bP0Vx60o/55RRkNJ2 dO5+bALb/Z7P46/3v2SbDsZyyOQVc0QH0zblA/cia6oJcp/UQuAvR6mv5mNuhot0rbNa fJenYsDeEotCFyYISwX+gVeoLAc4TC9dC3pycY85JfLfTCMoSxw9lmG5pWv+4QHmaPkX lWy2Shm4uXvxAh5HtTJ8zH7G56lsxXPypfPODOx/D8m6bzlk3HX8XZM61wNfBHN0d2o6 vySNMJdOilzrQ0bPtBIiAi+41j00RUn2q9/yXl0jTt0Quq2L7YsKBgrSY9PFq+3imIm9 APNw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:robot-unsubscribe :robot-id:message-id:mime-version:references:in-reply-to:cc:subject :to:reply-to:sender:from:dkim-signature:dkim-signature:date; bh=3d2BXh0h4elG7qlNWfNxWWJunObZyqtevvQxFq0QGqk=; b=kB/2asnFXoKIRhwug6JajbKkwCr548imesuKaM5sZueOOOCjPAAZCO2fJf5lO+OEpv 1kb0UTuk9YjmwkOo7SalaROkjNLraWlyJqozNPb2iNq+jtUHEWgkg5JKSPGK0SibJsF4 N0QhyA8beKgPQNsTW2I76j/L9aC40+GRalT56Ap9P8BYspU1KNfiakVH7qL/7f69NnVa Dj1pgBCcFaQacsHPcPnJb1pQn34LJMA5EEtt7BPCn9qla/dUwe2HII6urzKCq5EL+16e 6hFBm4K5rMYoruBFATpmxBYDcvM2GBMBdYSzn8ktnuwFkpgrfNMGS3ZyA9EWRY8Gqeve +6Ow== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linutronix.de header.s=2020 header.b=b47SumWD; dkim=neutral (no key) header.i=@linutronix.de; 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=QUARANTINE dis=NONE) header.from=linutronix.de Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id g29-20020aa796bd000000b006556984fbf6si3676898pfk.290.2023.06.05.08.09.37; Mon, 05 Jun 2023 08:09:49 -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=@linutronix.de header.s=2020 header.b=b47SumWD; dkim=neutral (no key) header.i=@linutronix.de; 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=QUARANTINE dis=NONE) header.from=linutronix.de Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232804AbjFEPIn (ORCPT + 99 others); Mon, 5 Jun 2023 11:08:43 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47876 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233783AbjFEPI2 (ORCPT ); Mon, 5 Jun 2023 11:08:28 -0400 Received: from galois.linutronix.de (Galois.linutronix.de [IPv6:2a0a:51c0:0:12e:550::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 22D42F2; Mon, 5 Jun 2023 08:08:27 -0700 (PDT) Date: Mon, 05 Jun 2023 15:08:25 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1685977705; h=from:from:sender:sender:reply-to:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=3d2BXh0h4elG7qlNWfNxWWJunObZyqtevvQxFq0QGqk=; b=b47SumWDvZeaFmpDa6FA91TVSgKCjqZCMGCI7q6ZAIXHuxqElCP8qpywL1Hv6Viq4wc9CU 9pxsrIvP6WgfWZEmja1byPkaYoq2xc9A9yH1lztlBoqyXjkhqzN30dPEpa1C+cExhX8CXG dwlMizUAz9LUOJaaLgwuMZcN2Eh5TAUJgVPwZUwvokaRIx7LPmHkCuh93nIEYjAgWGCHaj p/Xcr/TRgOxiDCBgptM4rBxqKInd+MfrimaNRGVN2QvMDANAjmm6AHVrdt4bGLqclq8t+Q yKCeDf6Jes56KSQF+iXk7D318cXIKiaKNfC+A78247J9HGy4SWHTxGkz8/A/Gw== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1685977705; h=from:from:sender:sender:reply-to:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=3d2BXh0h4elG7qlNWfNxWWJunObZyqtevvQxFq0QGqk=; b=KPb4qNTEyU/y2Iu48TwVlekYqI6/OdQUxtTg9A0jKHtCHJ0bgGQ3x355a8RVV2RGfWKC8m bNzPiea7sWGcuUAQ== From: "tip-bot2 for Thomas Gleixner" Sender: tip-bot2@linutronix.de Reply-to: linux-kernel@vger.kernel.org To: linux-tip-commits@vger.kernel.org Subject: [tip: timers/core] posix-timers: Remove pointless comments Cc: Thomas Gleixner , Frederic Weisbecker , x86@kernel.org, linux-kernel@vger.kernel.org In-Reply-To: <20230425183313.832240451@linutronix.de> References: <20230425183313.832240451@linutronix.de> MIME-Version: 1.0 Message-ID: <168597770528.404.15468213878026107518.tip-bot2@tip-bot2> Robot-ID: Robot-Unsubscribe: Contact to get blacklisted from these emails X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED,SPF_HELO_NONE, SPF_PASS,T_SCC_BODY_TEXT_LINE 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 X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1764175393746466663?= X-GMAIL-MSGID: =?utf-8?q?1767875846823937368?= The following commit has been merged into the timers/core branch of tip: Commit-ID: 478a93ac9ed7da5e7cd98e00502b142e22dab4d7 Gitweb: https://git.kernel.org/tip/478a93ac9ed7da5e7cd98e00502b142e22dab4d7 Author: Thomas Gleixner AuthorDate: Tue, 25 Apr 2023 20:49:25 +02:00 Committer: Thomas Gleixner CommitterDate: Mon, 05 Jun 2023 17:03:39 +02:00 posix-timers: Remove pointless comments Documenting the obvious is just consuming space for no value. Signed-off-by: Thomas Gleixner Reviewed-by: Frederic Weisbecker Link: https://lore.kernel.org/r/20230425183313.832240451@linutronix.de --- kernel/time/posix-timers.c | 25 ------------------------- 1 file changed, 25 deletions(-) diff --git a/kernel/time/posix-timers.c b/kernel/time/posix-timers.c index a22c183..fde1ca9 100644 --- a/kernel/time/posix-timers.c +++ b/kernel/time/posix-timers.c @@ -59,19 +59,6 @@ static const struct k_clock clock_realtime, clock_monotonic; #error "SIGEV_THREAD_ID must not share bit with other SIGEV values!" #endif -/* - * CLOCKs: The POSIX standard calls for a couple of clocks and allows us - * to implement others. This structure defines the various - * clocks. - * - * FUNCTIONS: The CLOCKs structure defines possible functions to - * handle various clock functions. - * - * The standard POSIX timer management code assumes the - * following: 1.) The k_itimer struct (sched.h) is used for - * the timer. 2.) The list, it_lock, it_clock, it_id and - * it_pid fields are not modified by timer code. - */ static struct k_itimer *__lock_timer(timer_t timer_id, unsigned long *flags); #define lock_timer(tid, flags) \ @@ -141,7 +128,6 @@ static inline void unlock_timer(struct k_itimer *timr, unsigned long flags) spin_unlock_irqrestore(&timr->it_lock, flags); } -/* Get clock_realtime */ static int posix_get_realtime_timespec(clockid_t which_clock, struct timespec64 *tp) { ktime_get_real_ts64(tp); @@ -153,7 +139,6 @@ static ktime_t posix_get_realtime_ktime(clockid_t which_clock) return ktime_get_real(); } -/* Set clock_realtime */ static int posix_clock_realtime_set(const clockid_t which_clock, const struct timespec64 *tp) { @@ -166,9 +151,6 @@ static int posix_clock_realtime_adj(const clockid_t which_clock, return do_adjtimex(t); } -/* - * Get monotonic time for posix timers - */ static int posix_get_monotonic_timespec(clockid_t which_clock, struct timespec64 *tp) { ktime_get_ts64(tp); @@ -181,9 +163,6 @@ static ktime_t posix_get_monotonic_ktime(clockid_t which_clock) return ktime_get(); } -/* - * Get monotonic-raw time for posix timers - */ static int posix_get_monotonic_raw(clockid_t which_clock, struct timespec64 *tp) { ktime_get_raw_ts64(tp); @@ -191,7 +170,6 @@ static int posix_get_monotonic_raw(clockid_t which_clock, struct timespec64 *tp) return 0; } - static int posix_get_realtime_coarse(clockid_t which_clock, struct timespec64 *tp) { ktime_get_coarse_real_ts64(tp); @@ -242,9 +220,6 @@ static int posix_get_hrtimer_res(clockid_t which_clock, struct timespec64 *tp) return 0; } -/* - * Initialize everything, well, just everything in Posix clocks/timers ;) - */ static __init int init_posix_timers(void) { posix_timers_cache = kmem_cache_create("posix_timers_cache",