Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
matisse
android_kernel_samsung_matisse
Commits
89a8a5a6
Commit
89a8a5a6
authored
17 years ago
by
Ralf Baechle
Browse files
Options
Download
Email Patches
Plain Diff
[MIPS] SMP: Use ISO C struct initializer for local structs.
Signed-off-by:
Ralf Baechle
<
ralf@linux-mips.org
>
parent
c50cade9
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
10 deletions
+13
-10
arch/mips/kernel/smp.c
arch/mips/kernel/smp.c
+13
-10
No files found.
arch/mips/kernel/smp.c
View file @
89a8a5a6
...
...
@@ -407,11 +407,12 @@ void flush_tlb_range(struct vm_area_struct *vma, unsigned long start, unsigned l
preempt_disable
();
if
((
atomic_read
(
&
mm
->
mm_users
)
!=
1
)
||
(
current
->
mm
!=
mm
))
{
struct
flush_tlb_data
fd
;
struct
flush_tlb_data
fd
=
{
.
vma
=
vma
,
.
addr1
=
start
,
.
addr2
=
end
,
};
fd
.
vma
=
vma
;
fd
.
addr1
=
start
;
fd
.
addr2
=
end
;
smp_on_other_tlbs
(
flush_tlb_range_ipi
,
&
fd
);
}
else
{
cpumask_t
mask
=
cpu_online_map
;
...
...
@@ -435,10 +436,11 @@ static void flush_tlb_kernel_range_ipi(void *info)
void
flush_tlb_kernel_range
(
unsigned
long
start
,
unsigned
long
end
)
{
struct
flush_tlb_data
fd
;
struct
flush_tlb_data
fd
=
{
.
addr1
=
start
,
.
addr2
=
end
,
};
fd
.
addr1
=
start
;
fd
.
addr2
=
end
;
on_each_cpu
(
flush_tlb_kernel_range_ipi
,
&
fd
,
1
,
1
);
}
...
...
@@ -453,10 +455,11 @@ void flush_tlb_page(struct vm_area_struct *vma, unsigned long page)
{
preempt_disable
();
if
((
atomic_read
(
&
vma
->
vm_mm
->
mm_users
)
!=
1
)
||
(
current
->
mm
!=
vma
->
vm_mm
))
{
struct
flush_tlb_data
fd
;
struct
flush_tlb_data
fd
=
{
.
vma
=
vma
,
.
addr1
=
page
,
};
fd
.
vma
=
vma
;
fd
.
addr1
=
page
;
smp_on_other_tlbs
(
flush_tlb_page_ipi
,
&
fd
);
}
else
{
cpumask_t
mask
=
cpu_online_map
;
...
...
This diff is collapsed.
Click to expand it.
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