Skip to content

Commit

Permalink
lguest: the host code
Browse files Browse the repository at this point in the history
This is the code for the "lg.ko" module, which allows lguest guests to
be launched.

[akpm@linux-foundation.org: update for futex-new-private-futexes]
[akpm@linux-foundation.org: build fix]
[jmorris@namei.org: lguest: use hrtimers]
[akpm@linux-foundation.org: x86_64 build fix]
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
Cc: Andi Kleen <ak@suse.de>
Cc: Eric Dumazet <dada1@cosmosbay.com>
Cc: Thomas Gleixner <tglx@linutronix.de>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
  • Loading branch information
Rusty Russell authored and Linus Torvalds committed Jul 19, 2007
1 parent 07ad157 commit d7e28ff
Show file tree
Hide file tree
Showing 17 changed files with 2,702 additions and 34 deletions.
4 changes: 3 additions & 1 deletion arch/i386/kernel/tsc.c
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ static int tsc_enabled;
* an extra value to store the TSC freq
*/
unsigned int tsc_khz;
EXPORT_SYMBOL_GPL(tsc_khz);

int tsc_disable;

Expand Down Expand Up @@ -58,10 +59,11 @@ __setup("notsc", tsc_setup);
*/
static int tsc_unstable;

static inline int check_tsc_unstable(void)
int check_tsc_unstable(void)
{
return tsc_unstable;
}
EXPORT_SYMBOL_GPL(check_tsc_unstable);

/* Accellerators for sched_clock()
* convert from cycles(64bits) => nanoseconds (64bits)
Expand Down
2 changes: 1 addition & 1 deletion arch/x86_64/kernel/tsc.c
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ unsigned long long sched_clock(void)

static int tsc_unstable;

static inline int check_tsc_unstable(void)
inline int check_tsc_unstable(void)
{
return tsc_unstable;
}
Expand Down
Loading

0 comments on commit d7e28ff

Please sign in to comment.