From patchwork Mon Dec 22 11:56:08 2025 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Simon Glass X-Patchwork-Id: 1034 Return-Path: X-Original-To: u-boot-concept@u-boot.org Delivered-To: u-boot-concept@u-boot.org DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=u-boot.org; s=default; t=1766404632; bh=JN243x7yWHbZFHP6xgmSnCcM5WYAKxv42xhP5Q/o6WQ=; h=From:To:Date:In-Reply-To:References:CC:Subject:List-Id: List-Archive:List-Help:List-Owner:List-Post:List-Subscribe: List-Unsubscribe:From; b=IRHA8+/pi2bTlVwhQ+iTpGxAVtTyHXkl50pNB+jMXHQ8/nGa334BR3q2KGEtfjF1E 8M4G+LQ5T1nR6TPlIS5S//gqjNFTI6oXlFWeHSE0HpXb6TdW6tdLgYdRxNEdhhhCoZ 21djyZlX6PxdBZkUY69mHLiXxYw3cdpc2Lo5hLWFB26yVgnmixeRGkvboGsh7fNVrv XoL7woJ/PvvsqGWuEsnQa95CTCwmxl6xaw76Xg7rLtoYCG4WcdK5hG1lOB+C21LVue 1ewo2ISu6sI2M1ewRIOYZHxSkiaz4ifu55cXWWAq9LJo3ekyHR1hEhIXMwjdA0aplB /C3afzVQnKa3g== Received: from localhost (localhost [127.0.0.1]) by mail.u-boot.org (Postfix) with ESMTP id 84C6364D66 for ; Mon, 22 Dec 2025 04:57:12 -0700 (MST) X-Virus-Scanned: Debian amavis at Received: from mail.u-boot.org ([127.0.0.1]) by localhost (mail.u-boot.org [127.0.0.1]) (amavis, port 10024) with ESMTP id jRRz9xFa2z0r for ; Mon, 22 Dec 2025 04:57:12 -0700 (MST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=u-boot.org; s=default; t=1766404632; bh=JN243x7yWHbZFHP6xgmSnCcM5WYAKxv42xhP5Q/o6WQ=; h=From:To:Date:In-Reply-To:References:CC:Subject:List-Id: List-Archive:List-Help:List-Owner:List-Post:List-Subscribe: List-Unsubscribe:From; b=IRHA8+/pi2bTlVwhQ+iTpGxAVtTyHXkl50pNB+jMXHQ8/nGa334BR3q2KGEtfjF1E 8M4G+LQ5T1nR6TPlIS5S//gqjNFTI6oXlFWeHSE0HpXb6TdW6tdLgYdRxNEdhhhCoZ 21djyZlX6PxdBZkUY69mHLiXxYw3cdpc2Lo5hLWFB26yVgnmixeRGkvboGsh7fNVrv XoL7woJ/PvvsqGWuEsnQa95CTCwmxl6xaw76Xg7rLtoYCG4WcdK5hG1lOB+C21LVue 1ewo2ISu6sI2M1ewRIOYZHxSkiaz4ifu55cXWWAq9LJo3ekyHR1hEhIXMwjdA0aplB /C3afzVQnKa3g== Received: from mail.u-boot.org (localhost [127.0.0.1]) by mail.u-boot.org (Postfix) with ESMTP id 7289164D59 for ; Mon, 22 Dec 2025 04:57:12 -0700 (MST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=u-boot.org; s=default; t=1766404630; bh=BOJVbEcB/6A0iJ6QhT9pnVbLG/hX78/BO1Yb7/ZYRb8=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=ofTBJxr0gE1+JtqPuKX1e6Cc7C4QNeK3sSZF1Xp7miUC4Oiikts0C5wWYbGIkOsrD vjIM2Gtyiy0Ho4rgmuc0TcJk5jRtBTtBzW4pG9VACfKWOELMmTWGOd48/i7X/72ejr T0mB+91f77y3aeoh/RWxrz5+8/qrm6RXf0M5Ze0JSTRU0chbBe4V2pbr2dHHELSS4X MViiQHGwdgCFD4y96yMiv3RD4rNcAnmOAy9alhA7lFC5lVr7xUS6ZxnSckQxrddVxR +ZuuIrh/G8RSgEobTmYnN2KaX6wRggkFkfuyN+a66X4uBSYWclQPjqS12PZ4faOb2C L7+DxuVZm5ogg== Received: from localhost (localhost [127.0.0.1]) by mail.u-boot.org (Postfix) with ESMTP id 82BF15FB5A; Mon, 22 Dec 2025 04:57:10 -0700 (MST) X-Virus-Scanned: Debian amavis at Received: from mail.u-boot.org ([127.0.0.1]) by localhost (mail.u-boot.org [127.0.0.1]) (amavis, port 10026) with ESMTP id VfC_fwT77XEr; Mon, 22 Dec 2025 04:57:10 -0700 (MST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=u-boot.org; s=default; t=1766404626; bh=7PNlsZdWPfSBBv1qZRDNQqx7v53lU7mYeWjCNbSKzzw=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=vHT6HD4c0woWTFt7KdAs05uPkwTK7IO1ytxeEJp/VtksyIvMu+PVytZOTKxE3+L+v gCek9NuZiEVNx9YHE9T+iTGHB9MfVbp4DxpEqg99h1mNTqWTx+e4sO/M+MYJ3XCSuT Yb5RiKnl9ieY5EYy5RMuFcZ/nrzb3xEWH+ns/SH2ljOn2HUaJ+uO8sHi48qldNXOPl gyatg0agF/mx6wyhVuKFt6vUwkZqliFKisrS+EYTyR2GSPabnQGqeO3WDsXT8CBTND 0YkSD16yaAdr3tfB2q2m1lvQ2XidgOUqQ/okcYaXvnD8tMPJTVwTQV2JMEyLJpyJbO b2YurExqdONQQ== Received: from u-boot.org (unknown [73.34.74.121]) by mail.u-boot.org (Postfix) with ESMTPSA id 3473A64C31; Mon, 22 Dec 2025 04:57:06 -0700 (MST) From: Simon Glass To: U-Boot Concept Date: Mon, 22 Dec 2025 04:56:08 -0700 Message-ID: <20251222115639.700578-5-sjg@u-boot.org> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20251222115639.700578-1-sjg@u-boot.org> References: <20251222115639.700578-1-sjg@u-boot.org> MIME-Version: 1.0 Message-ID-Hash: 3V3C4O62FWLL2C63LNWJ4KEOHW44CDBZ X-Message-ID-Hash: 3V3C4O62FWLL2C63LNWJ4KEOHW44CDBZ X-MailFrom: sjg@u-boot.org X-Mailman-Rule-Misses: dmarc-mitigation; no-senders; approved; loop; banned-address; emergency; member-moderation; nonmember-moderation; administrivia; implicit-dest; max-recipients; max-size; news-moderation; no-subject; digests; suspicious-header CC: Simon Glass , "Claude Opus 4 . 5" X-Mailman-Version: 3.3.10 Precedence: list Subject: [Concept] [PATCH 04/26] linux: Add jiffies.h with MAX_JIFFY_OFFSET List-Id: Discussion and patches related to U-Boot Concept Archived-At: List-Archive: List-Help: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: From: Simon Glass Add a minimal jiffies.h header with MAX_JIFFY_OFFSET definition, matching the Linux kernel header location for this constant. Co-developed-by: Claude Opus 4.5 Signed-off-by: Simon Glass --- include/linux/jiffies.h | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 include/linux/jiffies.h diff --git a/include/linux/jiffies.h b/include/linux/jiffies.h new file mode 100644 index 00000000000..daef4a337a2 --- /dev/null +++ b/include/linux/jiffies.h @@ -0,0 +1,18 @@ +/* SPDX-License-Identifier: GPL-2.0 */ +/* + * Jiffies and time conversion + * + * Copyright 2025 Canonical Ltd + * Written by Simon Glass + * + * Minimal version for U-Boot - based on Linux + */ +#ifndef _LINUX_JIFFIES_H +#define _LINUX_JIFFIES_H + +#include +#include + +#define MAX_JIFFY_OFFSET ((LONG_MAX >> 1) - 1) + +#endif /* _LINUX_JIFFIES_H */