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
a1e262f6
Commit
a1e262f6
authored
Feb 15, 2016
by
Rich Felker
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
sh: do not perform IPI-based cache flush except on boards that need it
Signed-off-by:
Rich Felker
<
dalias@libc.org
>
parent
b4214e41
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
0 deletions
+3
-0
arch/sh/mm/cache.c
arch/sh/mm/cache.c
+3
-0
No files found.
arch/sh/mm/cache.c
View file @
a1e262f6
...
@@ -42,6 +42,8 @@ static inline void cacheop_on_each_cpu(void (*func) (void *info), void *info,
...
@@ -42,6 +42,8 @@ static inline void cacheop_on_each_cpu(void (*func) (void *info), void *info,
{
{
preempt_disable
();
preempt_disable
();
/* Needing IPI for cross-core flush is SHX3-specific. */
#ifdef CONFIG_CPU_SHX3
/*
/*
* It's possible that this gets called early on when IRQs are
* It's possible that this gets called early on when IRQs are
* still disabled due to ioremapping by the boot CPU, so don't
* still disabled due to ioremapping by the boot CPU, so don't
...
@@ -49,6 +51,7 @@ static inline void cacheop_on_each_cpu(void (*func) (void *info), void *info,
...
@@ -49,6 +51,7 @@ static inline void cacheop_on_each_cpu(void (*func) (void *info), void *info,
*/
*/
if
(
num_online_cpus
()
>
1
)
if
(
num_online_cpus
()
>
1
)
smp_call_function
(
func
,
info
,
wait
);
smp_call_function
(
func
,
info
,
wait
);
#endif
func
(
info
);
func
(
info
);
...
...
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