Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
L
linux
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
linux
Commits
dc9267f0
Commit
dc9267f0
authored
Aug 31, 2004
by
David S. Miller
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[SPARC64]: SA_SAMPLE_RANDOMNESS fix.
Signed-off-by:
David S. Miller
<
davem@redhat.com
>
parent
306b8009
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
5 deletions
+14
-5
arch/sparc64/kernel/irq.c
arch/sparc64/kernel/irq.c
+14
-5
No files found.
arch/sparc64/kernel/irq.c
View file @
dc9267f0
...
@@ -791,16 +791,24 @@ void handler_irq(int irq, struct pt_regs *regs)
...
@@ -791,16 +791,24 @@ void handler_irq(int irq, struct pt_regs *regs)
#endif
#endif
if
((
flags
&
IBF_MULTI
)
==
0
)
{
if
((
flags
&
IBF_MULTI
)
==
0
)
{
struct
irqaction
*
ap
=
bp
->
irq_info
;
struct
irqaction
*
ap
=
bp
->
irq_info
;
ap
->
handler
(
__irq
(
bp
),
ap
->
dev_id
,
regs
);
int
ret
;
random
|=
ap
->
flags
&
SA_SAMPLE_RANDOM
;
ret
=
ap
->
handler
(
__irq
(
bp
),
ap
->
dev_id
,
regs
);
if
(
ret
==
IRQ_HANDLED
)
random
|=
ap
->
flags
;
}
else
{
}
else
{
void
**
vector
=
(
void
**
)
bp
->
irq_info
;
void
**
vector
=
(
void
**
)
bp
->
irq_info
;
int
ent
;
int
ent
;
for
(
ent
=
0
;
ent
<
4
;
ent
++
)
{
for
(
ent
=
0
;
ent
<
4
;
ent
++
)
{
struct
irqaction
*
ap
=
vector
[
ent
];
struct
irqaction
*
ap
=
vector
[
ent
];
if
(
ap
!=
NULL
)
{
if
(
ap
!=
NULL
)
{
ap
->
handler
(
__irq
(
bp
),
ap
->
dev_id
,
regs
);
int
ret
;
random
|=
ap
->
flags
&
SA_SAMPLE_RANDOM
;
ret
=
ap
->
handler
(
__irq
(
bp
),
ap
->
dev_id
,
regs
);
if
(
ret
==
IRQ_HANDLED
)
random
|=
ap
->
flags
;
}
}
}
}
}
}
...
@@ -813,8 +821,9 @@ void handler_irq(int irq, struct pt_regs *regs)
...
@@ -813,8 +821,9 @@ void handler_irq(int irq, struct pt_regs *regs)
}
}
#endif
#endif
upa_writel
(
ICLR_IDLE
,
bp
->
iclr
);
upa_writel
(
ICLR_IDLE
,
bp
->
iclr
);
/* Test and add entropy */
/* Test and add entropy */
if
(
random
)
if
(
random
&
SA_SAMPLE_RANDOM
)
add_interrupt_randomness
(
irq
);
add_interrupt_randomness
(
irq
);
}
}
}
else
}
else
...
...
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