repo.or.cz
/
qemu
/
qemu-dev-zwu.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
Fix apic build with kvm disabled
[qemu/qemu-dev-zwu.git]
/
kvm
/
test
/
lib
/
x86
/
smp.h
blob
c2e73501c8d58dac5506753ce218b936ef3883f3
1
#ifndef __SMP_H
2
#define __SMP_H
3
4
struct
spinlock
{
5
int
v
;
6
};
7
8
void
smp_init
(
void
);
9
10
int
cpu_count
(
void
);
11
int
smp_id
(
void
);
12
void
on_cpu
(
int
cpu
,
void
(*
function
)(
void
*
data
),
void
*
data
);
13
void
on_cpu_async
(
int
cpu
,
void
(*
function
)(
void
*
data
),
void
*
data
);
14
void
spin_lock
(
struct
spinlock
*
lock
);
15
void
spin_unlock
(
struct
spinlock
*
lock
);
16
17
#endif