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
c59414cc
Commit
c59414cc
authored
Sep 24, 2014
by
Vineet Gupta
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ARC: refactoring: reduce the scope of some local vars
Signed-off-by:
Vineet Gupta
<
vgupta@synopsys.com
>
parent
68d8feee
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
9 deletions
+5
-9
arch/arc/mm/cache_arc700.c
arch/arc/mm/cache_arc700.c
+5
-9
No files found.
arch/arc/mm/cache_arc700.c
View file @
c59414cc
...
@@ -530,16 +530,9 @@ EXPORT_SYMBOL(dma_cache_wback);
...
@@ -530,16 +530,9 @@ EXPORT_SYMBOL(dma_cache_wback);
*/
*/
void
flush_icache_range
(
unsigned
long
kstart
,
unsigned
long
kend
)
void
flush_icache_range
(
unsigned
long
kstart
,
unsigned
long
kend
)
{
{
unsigned
int
tot_sz
,
off
,
sz
;
unsigned
int
tot_sz
;
unsigned
long
phy
,
pfn
;
/* printk("Kernel Cache Cohenercy: %lx to %lx\n",kstart, kend); */
WARN
(
kstart
<
TASK_SIZE
,
"%s() can't handle user vaddr"
,
__func__
);
/* This is not the right API for user virtual address */
if
(
kstart
<
TASK_SIZE
)
{
BUG_ON
(
"Flush icache range for user virtual addr space"
);
return
;
}
/* Shortcut for bigger flush ranges.
/* Shortcut for bigger flush ranges.
* Here we don't care if this was kernel virtual or phy addr
* Here we don't care if this was kernel virtual or phy addr
...
@@ -572,6 +565,9 @@ void flush_icache_range(unsigned long kstart, unsigned long kend)
...
@@ -572,6 +565,9 @@ void flush_icache_range(unsigned long kstart, unsigned long kend)
* straddles across 2 virtual pages and hence need for loop
* straddles across 2 virtual pages and hence need for loop
*/
*/
while
(
tot_sz
>
0
)
{
while
(
tot_sz
>
0
)
{
unsigned
int
off
,
sz
;
unsigned
long
phy
,
pfn
;
off
=
kstart
%
PAGE_SIZE
;
off
=
kstart
%
PAGE_SIZE
;
pfn
=
vmalloc_to_pfn
((
void
*
)
kstart
);
pfn
=
vmalloc_to_pfn
((
void
*
)
kstart
);
phy
=
(
pfn
<<
PAGE_SHIFT
)
+
off
;
phy
=
(
pfn
<<
PAGE_SHIFT
)
+
off
;
...
...
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