Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 35887
b: refs/heads/master
c: 3d08a25
h: refs/heads/master
i:
  35885: 7d4ae5e
  35883: 8518236
  35879: dc121b7
  35871: 236a406
v: v3
  • Loading branch information
Adrian Bunk authored and Andi Kleen committed Sep 26, 2006
1 parent 59b5317 commit 347878f
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 14 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: e8924acb2ef46b96c93f97025815ef3843cb67a2
refs/heads/master: 3d08a256da8aed5300bd0752200ece426f49b050
13 changes: 12 additions & 1 deletion trunk/arch/i386/kernel/apic.c
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,18 @@ static cpumask_t timer_bcast_ipi;
/*
* Knob to control our willingness to enable the local APIC.
*/
int enable_local_apic __initdata = 0; /* -1=force-disable, +1=force-enable */
static int enable_local_apic __initdata = 0; /* -1=force-disable, +1=force-enable */

static inline void lapic_disable(void)
{
enable_local_apic = -1;
clear_bit(X86_FEATURE_APIC, boot_cpu_data.x86_capability);
}

static inline void lapic_enable(void)
{
enable_local_apic = 1;
}

/*
* Debug level
Expand Down
12 changes: 0 additions & 12 deletions trunk/include/asm-i386/apic.h
Original file line number Diff line number Diff line change
Expand Up @@ -16,20 +16,8 @@
#define APIC_VERBOSE 1
#define APIC_DEBUG 2

extern int enable_local_apic;
extern int apic_verbosity;

static inline void lapic_disable(void)
{
enable_local_apic = -1;
clear_bit(X86_FEATURE_APIC, boot_cpu_data.x86_capability);
}

static inline void lapic_enable(void)
{
enable_local_apic = 1;
}

/*
* Define the default level of output to be very little
* This can be turned up by using apic=verbose for more
Expand Down

0 comments on commit 347878f

Please sign in to comment.