Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
xcap
xcap-capability-linux
Commits
be609f35
Commit
be609f35
authored
Oct 23, 2006
by
Ralf Baechle
Browse files
[MIPS] Oprofile: fix on non-VSMP / non-SMTC SMP configurations.
Signed-off-by:
Ralf Baechle
<
ralf@linux-mips.org
>
parent
a7aacdf9
Changes
1
Hide whitespace changes
Inline
Side-by-side
arch/mips/oprofile/op_model_mipsxx.c
View file @
be609f35
...
...
@@ -31,16 +31,18 @@
#define M_COUNTER_OVERFLOW (1UL << 31)
#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
#define WHAT 0
#define WHAT 0
#define vpe_id() smp_processor_id()
#endif
#define __define_perf_accessors(r, n, np) \
\
static inline unsigned int r_c0_ ## r ## n(void) \
{ \
unsigned int cpu =
smp_processor
_id(); \
unsigned int cpu =
vpe
_id();
\
\
switch (cpu) { \
case 0: \
...
...
@@ -55,7 +57,7 @@ static inline unsigned int r_c0_ ## r ## n(void) \
\
static inline void w_c0_ ## r ## n(unsigned int value) \
{ \
unsigned int cpu =
smp_processor
_id(); \
unsigned int cpu =
vpe
_id();
\
\
switch (cpu) { \
case 0: \
...
...
Write
Preview
Supports
Markdown
0%
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!
Cancel
Please
register
or
sign in
to comment