Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
L
linux-davinci-2.6.23
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-2.6.23
Commits
d9ae2bad
Commit
d9ae2bad
authored
Nov 10, 2005
by
Stephen Rothwell
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
powerpc: make iSeries use generic virtual irq mapping
Signed-off-by:
Stephen Rothwell
<
sfr@canb.auug.org.au
>
parent
4ba529a8
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
25 deletions
+3
-25
arch/powerpc/kernel/irq.c
arch/powerpc/kernel/irq.c
+0
-3
arch/powerpc/platforms/iseries/irq.c
arch/powerpc/platforms/iseries/irq.c
+3
-22
No files found.
arch/powerpc/kernel/irq.c
View file @
d9ae2bad
...
@@ -311,7 +311,6 @@ void __init init_IRQ(void)
...
@@ -311,7 +311,6 @@ void __init init_IRQ(void)
}
}
#ifdef CONFIG_PPC64
#ifdef CONFIG_PPC64
#ifndef CONFIG_PPC_ISERIES
/*
/*
* Virtual IRQ mapping code, used on systems with XICS interrupt controllers.
* Virtual IRQ mapping code, used on systems with XICS interrupt controllers.
*/
*/
...
@@ -420,8 +419,6 @@ unsigned int real_irq_to_virt_slowpath(unsigned int real_irq)
...
@@ -420,8 +419,6 @@ unsigned int real_irq_to_virt_slowpath(unsigned int real_irq)
}
}
#endif
/* CONFIG_PPC_ISERIES */
#ifdef CONFIG_IRQSTACKS
#ifdef CONFIG_IRQSTACKS
struct
thread_info
*
softirq_ctx
[
NR_CPUS
];
struct
thread_info
*
softirq_ctx
[
NR_CPUS
];
struct
thread_info
*
hardirq_ctx
[
NR_CPUS
];
struct
thread_info
*
hardirq_ctx
[
NR_CPUS
];
...
...
arch/powerpc/platforms/iseries/irq.c
View file @
d9ae2bad
...
@@ -42,13 +42,6 @@
...
@@ -42,13 +42,6 @@
#include "irq.h"
#include "irq.h"
#include "call_pci.h"
#include "call_pci.h"
/* This maps virtual irq numbers to real irqs */
unsigned
int
virt_irq_to_real_map
[
NR_IRQS
];
/* The next available virtual irq number */
/* Note: the pcnet32 driver assumes irq numbers < 2 aren't valid. :( */
static
int
next_virtual_irq
=
2
;
static
long
Pci_Interrupt_Count
;
static
long
Pci_Interrupt_Count
;
static
long
Pci_Event_Count
;
static
long
Pci_Event_Count
;
...
@@ -350,26 +343,14 @@ static hw_irq_controller iSeries_IRQ_handler = {
...
@@ -350,26 +343,14 @@ static hw_irq_controller iSeries_IRQ_handler = {
int
__init
iSeries_allocate_IRQ
(
HvBusNumber
busNumber
,
int
__init
iSeries_allocate_IRQ
(
HvBusNumber
busNumber
,
HvSubBusNumber
subBusNumber
,
HvAgentId
deviceId
)
HvSubBusNumber
subBusNumber
,
HvAgentId
deviceId
)
{
{
unsigned
int
realirq
,
virtirq
;
int
virtirq
;
unsigned
int
realirq
;
u8
idsel
=
(
deviceId
>>
4
);
u8
idsel
=
(
deviceId
>>
4
);
u8
function
=
deviceId
&
7
;
u8
function
=
deviceId
&
7
;
virtirq
=
next_virtual_irq
++
;
realirq
=
((
busNumber
-
1
)
<<
6
)
+
((
idsel
-
1
)
<<
3
)
+
function
;
realirq
=
((
busNumber
-
1
)
<<
6
)
+
((
idsel
-
1
)
<<
3
)
+
function
;
virt
_irq_to_real_map
[
virtirq
]
=
realirq
;
virt
irq
=
virt_irq_create_mapping
(
realirq
)
;
irq_desc
[
virtirq
].
handler
=
&
iSeries_IRQ_handler
;
irq_desc
[
virtirq
].
handler
=
&
iSeries_IRQ_handler
;
return
virtirq
;
return
virtirq
;
}
}
int
virt_irq_create_mapping
(
unsigned
int
real_irq
)
{
BUG
();
/* Don't call this on iSeries, yet */
return
0
;
}
void
virt_irq_init
(
void
)
{
return
;
}
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