Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
L
linux-davinci
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Redmine
Redmine
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
linux
linux-davinci
Commits
58c81852
Commit
58c81852
authored
Jul 28, 2009
by
Thomas Gleixner
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'rt/drivers-char' into rt/base
parents
36d6b375
be791b93
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
4 deletions
+5
-4
drivers/char/random.c
drivers/char/random.c
+5
-4
No files found.
drivers/char/random.c
View file @
58c81852
...
...
@@ -623,8 +623,11 @@ static void add_timer_randomness(struct timer_rand_state *state, unsigned num)
preempt_disable
();
/* if over the trickle threshold, use only 1 in 4096 samples */
if
(
input_pool
.
entropy_count
>
trickle_thresh
&&
(
__get_cpu_var
(
trickle_count
)
++
&
0xfff
))
goto
out
;
(
__get_cpu_var
(
trickle_count
)
++
&
0xfff
))
{
preempt_enable
();
return
;
}
preempt_enable
();
sample
.
jiffies
=
jiffies
;
sample
.
cycles
=
get_cycles
();
...
...
@@ -666,8 +669,6 @@ static void add_timer_randomness(struct timer_rand_state *state, unsigned num)
credit_entropy_bits
(
&
input_pool
,
min_t
(
int
,
fls
(
delta
>>
1
),
11
));
}
out:
preempt_enable
();
}
void
add_input_randomness
(
unsigned
int
type
,
unsigned
int
code
,
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment