~ubuntu-branches/ubuntu/hardy/kvm/hardy-backports

« back to all changes in this revision

Viewing changes to user/test/x86/smp.h

  • Committer: Bazaar Package Importer
  • Author(s): Soren Hansen
  • Date: 2007-11-15 02:21:55 UTC
  • mfrom: (1.1.10 upstream)
  • Revision ID: james.westby@ubuntu.com-20071115022155-pxoxb8kfcrkn72mi
Tags: 1:52+dfsg-0ubuntu1
* New upstream release.
* 08_default_tdf.patch
  - Make -tdf the default and add a -no-tdf option.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#ifndef __SMP_H
 
2
#define __SMP_H
 
3
 
 
4
struct spinlock {
 
5
    int v;
 
6
};
 
7
 
 
8
void smp_init(void (*smp_main)(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 spin_lock(struct spinlock *lock);
 
14
void spin_unlock(struct spinlock *lock);
 
15
 
 
16
#endif