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
nexedi
linux
Commits
fc632575
Commit
fc632575
authored
Dec 12, 2015
by
Helge Deller
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
parisc: Reduce overhead of parisc_requires_coherency()
Signed-off-by:
Helge Deller
<
deller@gmx.de
>
parent
602c9c9a
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
17 additions
and
10 deletions
+17
-10
arch/parisc/include/asm/processor.h
arch/parisc/include/asm/processor.h
+8
-9
arch/parisc/kernel/processor.c
arch/parisc/kernel/processor.c
+9
-1
No files found.
arch/parisc/include/asm/processor.h
View file @
fc632575
...
...
@@ -311,18 +311,17 @@ extern unsigned long get_wchan(struct task_struct *p);
#define cpu_relax() barrier()
#define cpu_relax_lowlatency() cpu_relax()
/*
Used as a macro to identify the combined VIPT/PIPT cached
*
CPUs which require a guarantee of coherency (no inequivalent
*
aliases with different data, whether clean or not) to operate */
static
inline
int
parisc_requires_coherency
(
void
)
{
/*
*
parisc_requires_coherency() is used to identify the combined VIPT/PIPT
*
cached CPUs which require a guarantee of coherency (no inequivalent aliases
* with different data, whether clean or not) to operate
*/
#ifdef CONFIG_PA8X00
return
(
boot_cpu_data
.
cpu_type
==
mako
)
||
(
boot_cpu_data
.
cpu_type
==
mako2
);
extern
int
_parisc_requires_coherency
;
#define parisc_requires_coherency() _parisc_requires_coherency
#else
return
0
;
#define parisc_requires_coherency() (0)
#endif
}
#endif
/* __ASSEMBLY__ */
...
...
arch/parisc/kernel/processor.c
View file @
fc632575
...
...
@@ -44,6 +44,10 @@
struct
system_cpuinfo_parisc
boot_cpu_data
__read_mostly
;
EXPORT_SYMBOL
(
boot_cpu_data
);
#ifdef CONFIG_PA8X00
int
_parisc_requires_coherency
__read_mostly
;
EXPORT_SYMBOL
(
_parisc_requires_coherency
);
#endif
DEFINE_PER_CPU
(
struct
cpuinfo_parisc
,
cpu_data
);
...
...
@@ -277,8 +281,12 @@ void __init collect_boot_cpu_data(void)
boot_cpu_data
.
cpu_type
=
parisc_get_cpu_type
(
boot_cpu_data
.
hversion
);
boot_cpu_data
.
cpu_name
=
cpu_name_version
[
boot_cpu_data
.
cpu_type
][
0
];
boot_cpu_data
.
family_name
=
cpu_name_version
[
boot_cpu_data
.
cpu_type
][
1
];
}
#ifdef CONFIG_PA8X00
_parisc_requires_coherency
=
(
boot_cpu_data
.
cpu_type
==
mako
)
||
(
boot_cpu_data
.
cpu_type
==
mako2
);
#endif
}
/**
...
...
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