projects
/
linux-2.6-block.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
cc1e127
)
random: use proper jiffies comparison macro
author
Jason A. Donenfeld
<Jason@zx2c4.com>
Tue, 10 May 2022 13:20:42 +0000
(15:20 +0200)
committer
Jason A. Donenfeld
<Jason@zx2c4.com>
Wed, 18 May 2022 13:53:53 +0000
(15:53 +0200)
This expands to exactly the same code that it replaces, but makes things
consistent by using the same macro for jiffy comparisons throughout.
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
drivers/char/random.c
patch
|
blob
|
blame
|
history
diff --git
a/drivers/char/random.c
b/drivers/char/random.c
index 3860d534cf05855a2a76846afc58995cb96c3af5..9024aeba2d28c7641379ab84587b669857c80561 100644
(file)
--- a/
drivers/char/random.c
+++ b/
drivers/char/random.c
@@
-325,7
+325,7
@@
static bool crng_has_old_seed(void)
interval = max_t(unsigned int, CRNG_RESEED_START_INTERVAL,
(unsigned int)uptime / 2 * HZ);
}
- return time_
after(jiffies,
READ_ONCE(base_crng.birth) + interval);
+ return time_
is_before_jiffies(
READ_ONCE(base_crng.birth) + interval);
}
/*