From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id B7BA63A7F64 for ; Tue, 24 Feb 2026 16:36:18 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1771950978; cv=none; b=SHfOp4rSvQYS7285EFyUu2UpYzkAlgu8SCCK2iw3kVQfEldo1W5XAh1eBig9OZrAEpU7VIk2n32oekSGleWFjn7dpKBUP557oJ9FSDXmF4ZX90nGW0PbF0qOVutcDH6r6Qqn3y7EgeUt+fQz6CoA3kn3CqJrTjBZwJEyTLLgL/c= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1771950978; c=relaxed/simple; bh=EXbifuHpIDd/8o4MFyR5Z/UiiXn9TTSCoZIjZ4QYDyk=; h=Date:Message-ID:From:To:Cc:Subject:References:MIME-Version: Content-Type; b=ft/SL711uEDPuNucRe7Fcv/gDawzx3SuewoLIa3aS6ocQUBfVaV7E5DaDwHyFx/1aJnPp3B5YNv484uJ0iQraVVTVjk9B0L6Mdhymm9BJ/z2XZbmteOkaV6aMz8elPGOxxaZqjm4wX0VvtBsQOis7w5A6yDOLtctLA0beRf8X8k= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=pKBIO3Jd; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="pKBIO3Jd" Received: by smtp.kernel.org (Postfix) with ESMTPSA id BFEF3C19423; Tue, 24 Feb 2026 16:36:17 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1771950978; bh=EXbifuHpIDd/8o4MFyR5Z/UiiXn9TTSCoZIjZ4QYDyk=; h=Date:From:To:Cc:Subject:References:From; b=pKBIO3JdT9Oo2uFlWIkpEyaGJyeI/OwKUsF4dMtnQJ1LOYwITqSkV6SL8N+k/sf/J o8xayYoovAP6F+6Il7RKr72Udl2fGm0ZK2i38IYKEVlTJc0llz2h3TLKD+pZjRCljo g1eQ+DmvnkVotToNuyB7X+FU2QhaVd75rTbbkj1GYt2BibGp64PQykcOIx+yFRXs+7 e7E9pe48+ebSlmKtUM4RQ4H+jDhR/8UZIG0vG5D1HCom7SH/9YwpsfV7jNPZh1yiib 9CN90rIB0uHBbNa3saNFxim6eQ+sUojt4a2AMMGVRdNFZiCjPWNryMr6h3qfkJBR2W TsovxMCrMeTEQ== Date: Tue, 24 Feb 2026 17:36:15 +0100 Message-ID: <20260224163429.609049777@kernel.org> User-Agent: quilt/0.68 From: Thomas Gleixner To: LKML Cc: Anna-Maria Behnsen , John Stultz , Stephen Boyd , Daniel Lezcano , Juri Lelli , Vincent Guittot , Dietmar Eggemann , Steven Rostedt , Ben Segall , Mel Gorman , Valentin Schneider , x86@kernel.org, Peter Zijlstra , Frederic Weisbecker , Eric Dumazet Subject: [patch 13/48] clockevents: Remove redundant CLOCK_EVT_FEAT_KTIME References: <20260224163022.795809588@kernel.org> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 The only real usecase for this is the hrtimer based broadcast device. No point in using two different feature flags for this. Signed-off-by: Thomas Gleixner --- include/linux/clockchips.h | 1 - kernel/time/clockevents.c | 4 ++-- kernel/time/tick-broadcast-hrtimer.c | 1 - 3 files changed, 2 insertions(+), 4 deletions(-) --- a/include/linux/clockchips.h +++ b/include/linux/clockchips.h @@ -45,7 +45,6 @@ enum clock_event_state { */ # define CLOCK_EVT_FEAT_PERIODIC 0x000001 # define CLOCK_EVT_FEAT_ONESHOT 0x000002 -# define CLOCK_EVT_FEAT_KTIME 0x000004 /* * x86(64) specific (mis)features: --- a/kernel/time/clockevents.c +++ b/kernel/time/clockevents.c @@ -319,8 +319,8 @@ int clockevents_program_event(struct clo WARN_ONCE(!clockevent_state_oneshot(dev), "Current state: %d\n", clockevent_get_state(dev)); - /* Shortcut for clockevent devices that can deal with ktime. */ - if (dev->features & CLOCK_EVT_FEAT_KTIME) + /* ktime_t based reprogramming for the broadcast hrtimer device */ + if (unlikely(dev->features & CLOCK_EVT_FEAT_HRTIMER)) return dev->set_next_ktime(expires, dev); delta = ktime_to_ns(ktime_sub(expires, ktime_get())); --- a/kernel/time/tick-broadcast-hrtimer.c +++ b/kernel/time/tick-broadcast-hrtimer.c @@ -78,7 +78,6 @@ static struct clock_event_device ce_broa .set_state_shutdown = bc_shutdown, .set_next_ktime = bc_set_next, .features = CLOCK_EVT_FEAT_ONESHOT | - CLOCK_EVT_FEAT_KTIME | CLOCK_EVT_FEAT_HRTIMER, .rating = 0, .bound_on = -1,