Commit 5dd3733b authored by David S. Miller's avatar David S. Miller

[SPARC64]: More entropy in add_timer_randomness.

Based upon a patch from Richard Mortimer.
Signed-off-by: default avatarDavid S. Miller <davem@redhat.com>
parent ad2739b5
......@@ -822,6 +822,11 @@ static void add_timer_randomness(struct timer_rand_state *state, unsigned num)
} else {
time = jiffies;
}
#elif defined (__sparc_v9__)
unsigned long tick = tick_ops->get_tick();
time = (unsigned int) tick;
num ^= (tick >> 32UL);
#else
time = jiffies;
#endif
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment