diff options
Diffstat (limited to 'kvm/test/x86/smptest.c')
-rw-r--r-- | kvm/test/x86/smptest.c | 25 |
1 files changed, 0 insertions, 25 deletions
diff --git a/kvm/test/x86/smptest.c b/kvm/test/x86/smptest.c deleted file mode 100644 index 37805999b..000000000 --- a/kvm/test/x86/smptest.c +++ /dev/null @@ -1,25 +0,0 @@ -#include "libcflat.h" -#include "smp.h" - -static void ipi_test(void *data) -{ - int n = (long)data; - - printf("ipi called, cpu %d\n", n); - if (n != smp_id()) - printf("but wrong cpu %d\n", smp_id()); -} - -int main() -{ - int ncpus; - int i; - - smp_init(); - - ncpus = cpu_count(); - printf("found %d cpus\n", ncpus); - for (i = 0; i < ncpus; ++i) - on_cpu(i, ipi_test, (void *)(long)i); - return 0; -} |