Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
B
bcmlinux
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Issue analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Broadcom
bcmlinux
Commits
76cb7d3e
Commit
76cb7d3e
authored
4 years ago
by
Oskar Viljasaar
Browse files
Options
Downloads
Patches
Plain Diff
Import openwrt pending patch 103-MIPS-perf-ath79-Fix-perfcount-IRQ-assignment
parent
2d0ca414
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
arch/mips/ath79/setup.c
+0
-6
0 additions, 6 deletions
arch/mips/ath79/setup.c
drivers/irqchip/irq-ath79-misc.c
+11
-0
11 additions, 0 deletions
drivers/irqchip/irq-ath79-misc.c
with
11 additions
and
6 deletions
arch/mips/ath79/setup.c
+
0
−
6
View file @
76cb7d3e
...
...
@@ -211,12 +211,6 @@ const char *get_system_type(void)
return
ath79_sys_type
;
}
int
get_c0_perfcount_int
(
void
)
{
return
ATH79_MISC_IRQ
(
5
);
}
EXPORT_SYMBOL_GPL
(
get_c0_perfcount_int
);
unsigned
int
get_c0_compare_int
(
void
)
{
return
CP0_LEGACY_COMPARE_IRQ
;
...
...
This diff is collapsed.
Click to expand it.
drivers/irqchip/irq-ath79-misc.c
+
11
−
0
View file @
76cb7d3e
...
...
@@ -22,6 +22,15 @@
#define AR71XX_RESET_REG_MISC_INT_ENABLE 4
#define ATH79_MISC_IRQ_COUNT 32
#define ATH79_MISC_PERF_IRQ 5
static
int
ath79_perfcount_irq
;
int
get_c0_perfcount_int
(
void
)
{
return
ath79_perfcount_irq
;
}
EXPORT_SYMBOL_GPL
(
get_c0_perfcount_int
);
static
void
ath79_misc_irq_handler
(
struct
irq_desc
*
desc
)
{
...
...
@@ -113,6 +122,8 @@ static void __init ath79_misc_intc_domain_init(
{
void
__iomem
*
base
=
domain
->
host_data
;
ath79_perfcount_irq
=
irq_create_mapping
(
domain
,
ATH79_MISC_PERF_IRQ
);
/* Disable and clear all interrupts */
__raw_writel
(
0
,
base
+
AR71XX_RESET_REG_MISC_INT_ENABLE
);
__raw_writel
(
0
,
base
+
AR71XX_RESET_REG_MISC_INT_STATUS
);
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment