linux: Add jiffies.h with MAX_JIFFY_OFFSET
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 <noreply@anthropic.com> Signed-off-by: Simon Glass <simon.glass@canonical.com>
This commit is contained in:
18
include/linux/jiffies.h
Normal file
18
include/linux/jiffies.h
Normal file
@@ -0,0 +1,18 @@
|
||||
/* SPDX-License-Identifier: GPL-2.0 */
|
||||
/*
|
||||
* Jiffies and time conversion
|
||||
*
|
||||
* Copyright 2025 Canonical Ltd
|
||||
* Written by Simon Glass <simon.glass@canonical.com>
|
||||
*
|
||||
* Minimal version for U-Boot - based on Linux
|
||||
*/
|
||||
#ifndef _LINUX_JIFFIES_H
|
||||
#define _LINUX_JIFFIES_H
|
||||
|
||||
#include <linux/types.h>
|
||||
#include <limits.h>
|
||||
|
||||
#define MAX_JIFFY_OFFSET ((LONG_MAX >> 1) - 1)
|
||||
|
||||
#endif /* _LINUX_JIFFIES_H */
|
||||
Reference in New Issue
Block a user