Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
L
linux
Manage
Activity
Members
Labels
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
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Martyn Welch
linux
Commits
be609f35
Commit
be609f35
authored
18 years ago
by
Ralf Baechle
Browse files
Options
Downloads
Patches
Plain Diff
[MIPS] Oprofile: fix on non-VSMP / non-SMTC SMP configurations.
Signed-off-by:
Ralf Baechle
<
ralf@linux-mips.org
>
parent
a7aacdf9
Branches
main
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
arch/mips/oprofile/op_model_mipsxx.c
+6
-4
6 additions, 4 deletions
arch/mips/oprofile/op_model_mipsxx.c
with
6 additions
and
4 deletions
arch/mips/oprofile/op_model_mipsxx.c
+
6
−
4
View file @
be609f35
...
@@ -31,16 +31,18 @@
...
@@ -31,16 +31,18 @@
#define M_COUNTER_OVERFLOW (1UL << 31)
#define M_COUNTER_OVERFLOW (1UL << 31)
#ifdef CONFIG_MIPS_MT_SMP
#ifdef CONFIG_MIPS_MT_SMP
#define WHAT (M_TC_EN_VPE | M_PERFCTL_VPEID(smp_processor_id()))
#define WHAT (M_TC_EN_VPE | M_PERFCTL_VPEID(smp_processor_id()))
#define vpe_id() smp_processor_id()
#else
#else
#define WHAT 0
#define WHAT 0
#define vpe_id() smp_processor_id()
#endif
#endif
#define __define_perf_accessors(r, n, np) \
#define __define_perf_accessors(r, n, np) \
\
\
static inline unsigned int r_c0_ ## r ## n(void) \
static inline unsigned int r_c0_ ## r ## n(void) \
{ \
{ \
unsigned int cpu =
smp_processor
_id(); \
unsigned int cpu =
vpe
_id();
\
\
\
switch (cpu) { \
switch (cpu) { \
case 0: \
case 0: \
...
@@ -55,7 +57,7 @@ static inline unsigned int r_c0_ ## r ## n(void) \
...
@@ -55,7 +57,7 @@ static inline unsigned int r_c0_ ## r ## n(void) \
\
\
static inline void w_c0_ ## r ## n(unsigned int value) \
static inline void w_c0_ ## r ## n(unsigned int value) \
{ \
{ \
unsigned int cpu =
smp_processor
_id(); \
unsigned int cpu =
vpe
_id();
\
\
\
switch (cpu) { \
switch (cpu) { \
case 0: \
case 0: \
...
...
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