Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp5542728rwd; Sun, 18 Jun 2023 13:56:40 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ7ClSbQifkcvJe2Wsjj6ZYeF+AFJnHiS3T0m4OfXsXTCZnErPoHZtKidmRSGChd87jBgiq+ X-Received: by 2002:a17:903:1248:b0:1b3:eed9:cf1c with SMTP id u8-20020a170903124800b001b3eed9cf1cmr8357724plh.50.1687121799717; Sun, 18 Jun 2023 13:56:39 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1687121799; cv=none; d=google.com; s=arc-20160816; b=ZCFGejfzU95lETYKxSvszCUrnqYAV09mRgWxO0QmRtnmM+Y2P4fkxn5qLZTndhgILN R8S700EXaMzNPn+OxJN5mCJv0D5XuyefuQgXtRh41HQG/Hu3baqxrUoH0TuOIfnfKnV8 1FT3VzPSlwzgekBXiTRr0PML9x3mMQ7HLKt5aKFoOgIRU1AG64hl5JX419RIvQLmR+cw 661hBj59K5Pk2RV2qSREfdvrCpoF1TxOWi1eQY5zsKQn/JfmvO72OdJaFqZ0Y0/gnA/0 y18tD8jyOAmwEQUApisM3udh6YRMI6f6CSX+VuydYJtu7rqdNptbeCZ4NeOhTAh91359 DGlg== 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=0bfaKx3xDRMGieD/cLTtc1R4ve8YrpObv9B4nbGNRTI=; b=hL0Nnqu3/8z1d9mEh5qkfux2Nz0y2gHRiYXz8od2liWfkUlALHXLBJTWgOG64957kR TqBHgVbzKbPXN4Ry5bkyRGrkx2N3sS97DC9DDJUr7RZ9dVVhX4uwUze08tOF3p8yqfCh 5b8MHb+tA1grnMyGjxIzHOQZELU933ZbbWZrX7pbIi2FgBWapsI/40eDSyagc8jYvKKq XK3NJSYbSQ+xgrVn5zOl7tEZXz8un0KVkkbkyrXJBoDBJSC0dVM3t8ltqb0r2ja6VemG dkuF41r0ZgTb5M24o7aNfqDCSwNxOf9ogYa7u5TmU31dr3bHOvKAKVkq9MirC1bHtQ72 H+fA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linutronix.de header.s=2020 header.b=rHaBxaOi; 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id lc8-20020a170902fa8800b001ab2431f012si3285559plb.423.2023.06.18.13.56.27; Sun, 18 Jun 2023 13:56:39 -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=rHaBxaOi; 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 S229682AbjFRUuW (ORCPT + 99 others); Sun, 18 Jun 2023 16:50:22 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48654 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229577AbjFRUt7 (ORCPT ); Sun, 18 Jun 2023 16:49:59 -0400 Received: from galois.linutronix.de (Galois.linutronix.de [IPv6:2a0a:51c0:0:12e:550::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 59B5DE4D; Sun, 18 Jun 2023 13:49:58 -0700 (PDT) Date: Sun, 18 Jun 2023 20:49:56 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1687121397; 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=0bfaKx3xDRMGieD/cLTtc1R4ve8YrpObv9B4nbGNRTI=; b=rHaBxaOir0uZy3I70VdIoT9c/n2EzTlQmUkOLdfQ9IdfjP5J036DLvDsa40XR8I7XOFhOS PqbV1lEs3k0bWrqjs8LQ/Y/2swK7iQmkuBtU2RzF0CpQvXucl+A4DIXTO3FeE+JX/YBn9j mQJD5LEaBIR5IAlTaEGkbKgIWKUUnPX1pFhoA4liD6XqMpBQk0iJQuR8aDdXL3uCJJywfh XyYQ9sF8bUNkt7grBNH8vdz/0sj5Wx03q1kHNren5eGmXLs3Y+aWmAg/zpl+YaCtoGCAp+ 1Q2yyHBdb3NJvqHuRFB2QgEA/y31e0I0tPGkJZcPf4umewgfkurP0FwcovrVnA== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1687121397; 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=0bfaKx3xDRMGieD/cLTtc1R4ve8YrpObv9B4nbGNRTI=; b=ykWO3XdL8CtKkXK4UcLix52qvGIV5hRIi9VRFmhyB/n5nTaXtQNzagFkP7JcvRgScVSQ0l yw3Vcpz8QIFtBOBw== 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: <168712139656.404.3211180858081086828.tip-bot2@tip-bot2> Robot-ID: Robot-Unsubscribe: Contact to get blacklisted from these emails Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit 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 The following commit has been merged into the timers/core branch of tip: Commit-ID: 200dbd6d14e6a3b22162d78b4f7a253426dba7ee Gitweb: https://git.kernel.org/tip/200dbd6d14e6a3b22162d78b4f7a253426dba7ee Author: Thomas Gleixner AuthorDate: Tue, 25 Apr 2023 20:49:25 +02:00 Committer: Thomas Gleixner CommitterDate: Sun, 18 Jun 2023 22:41:52 +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 ae8799e..d357728 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",