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
652a0e05
Commit
652a0e05
authored
Jul 08, 2002
by
David Mosberger
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ia64: Fix perfmon initialization bug. Patch by Stephane Eranian.
parent
f8fff297
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
11 additions
and
5 deletions
+11
-5
arch/ia64/kernel/irq_ia64.c
arch/ia64/kernel/irq_ia64.c
+7
-0
arch/ia64/kernel/perfmon.c
arch/ia64/kernel/perfmon.c
+3
-5
include/asm-ia64/perfmon.h
include/asm-ia64/perfmon.h
+1
-0
No files found.
arch/ia64/kernel/irq_ia64.c
View file @
652a0e05
...
...
@@ -36,6 +36,10 @@
#include <asm/pgtable.h>
#include <asm/system.h>
#ifdef CONFIG_PERFMON
# include <asm/perfmon.h>
#endif
#define IRQ_DEBUG 0
/* default base addr of IPI table */
...
...
@@ -172,6 +176,9 @@ init_IRQ (void)
register_percpu_irq
(
IA64_SPURIOUS_INT_VECTOR
,
NULL
);
#ifdef CONFIG_SMP
register_percpu_irq
(
IA64_IPI_VECTOR
,
&
ipi_irqaction
);
#endif
#ifdef CONFIG_PERFMON
perfmon_init_percpu
();
#endif
platform_irq_init
();
}
...
...
arch/ia64/kernel/perfmon.c
View file @
652a0e05
...
...
@@ -4157,11 +4157,6 @@ perfmon_init (void)
pal_perf_mon_info_u_t
pm_info
;
s64
status
;
register_percpu_irq
(
IA64_PERFMON_VECTOR
,
&
perfmon_irqaction
);
ia64_set_pmv
(
IA64_PERFMON_VECTOR
);
ia64_srlz_d
();
pmu_conf
.
pfm_is_disabled
=
1
;
printk
(
"perfmon: version %u.%u (sampling format v%u.%u) IRQ %u
\n
"
,
...
...
@@ -4239,6 +4234,9 @@ __initcall(perfmon_init);
void
perfmon_init_percpu
(
void
)
{
if
(
smp_processor_id
()
==
0
)
register_percpu_irq
(
IA64_PERFMON_VECTOR
,
&
perfmon_irqaction
);
ia64_set_pmv
(
IA64_PERFMON_VECTOR
);
ia64_srlz_d
();
}
...
...
include/asm-ia64/perfmon.h
View file @
652a0e05
...
...
@@ -173,6 +173,7 @@ extern int pfm_release_debug_registers(struct task_struct *);
extern
int
pfm_cleanup_smpl_buf
(
struct
task_struct
*
);
extern
void
pfm_syst_wide_update_task
(
struct
task_struct
*
,
int
);
extern
void
pfm_ovfl_block_reset
(
void
);
extern
void
perfmon_init_percpu
(
void
);
#endif
/* __KERNEL__ */
...
...
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