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
a0f4207d
Commit
a0f4207d
authored
Jul 29, 2014
by
Sonic Zhang
Committed by
Steven Miao
Apr 23, 2015
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
bug[220] kgdb: change the smp cross core function entry
Signed-off-by:
Sonic Zhang
<
sonic.zhang@analog.com
>
parent
4eb147c8
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
8 deletions
+4
-8
arch/blackfin/kernel/kgdb.c
arch/blackfin/kernel/kgdb.c
+4
-8
No files found.
arch/blackfin/kernel/kgdb.c
View file @
a0f4207d
...
...
@@ -330,9 +330,6 @@ static void bfin_disable_hw_debug(struct pt_regs *regs)
}
#ifdef CONFIG_SMP
extern
void
generic_exec_single
(
int
cpu
,
struct
call_single_data
*
data
,
int
wait
);
static
struct
call_single_data
kgdb_smp_ipi_data
[
NR_CPUS
];
void
kgdb_passive_cpu_callback
(
void
*
info
)
{
kgdb_nmicallback
(
raw_smp_processor_id
(),
get_irq_regs
());
...
...
@@ -343,15 +340,14 @@ void kgdb_roundup_cpus(unsigned long flags)
unsigned
int
cpu
;
for
(
cpu
=
cpumask_first
(
cpu_online_mask
);
cpu
<
nr_cpu_ids
;
cpu
=
cpumask_next
(
cpu
,
cpu_online_mask
))
{
kgdb_smp_ipi_data
[
cpu
].
func
=
kgdb_passive_cpu_callback
;
generic_exec_single
(
cpu
,
&
kgdb_smp_ipi_data
[
cpu
],
0
);
}
cpu
=
cpumask_next
(
cpu
,
cpu_online_mask
))
smp_call_function_single
(
cpu
,
kgdb_passive_cpu_callback
,
NULL
,
0
);
}
void
kgdb_roundup_cpu
(
int
cpu
,
unsigned
long
flags
)
{
generic_exec_single
(
cpu
,
&
kgdb_smp_ipi_data
[
cpu
]
,
0
);
smp_call_function_single
(
cpu
,
kgdb_passive_cpu_callback
,
NULL
,
0
);
}
#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