Skip to content

Commit 0b25c94

Browse files
alyssarosenzweigjannau
authored andcommitted
rust: time: bind NSECS_PER_SEC
drm/asahi will use this. Signed-off-by: Alyssa Rosenzweig <alyssa@rosenzweig.io>
1 parent 1abb12f commit 0b25c94

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

rust/kernel/time.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,9 @@
1212
/// The number of nanoseconds per millisecond.
1313
pub const NSEC_PER_MSEC: i64 = bindings::NSEC_PER_MSEC as i64;
1414

15+
/// The number of nanoseconds per second.
16+
pub const NSEC_PER_SEC: i64 = bindings::NSEC_PER_SEC as i64;
17+
1518
/// The time unit of Linux kernel. One jiffy equals (1/HZ) second.
1619
pub type Jiffies = crate::ffi::c_ulong;
1720

0 commit comments

Comments
 (0)