Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 169921
b: refs/heads/master
c: a933c61
h: refs/heads/master
i:
  169919: 75f811e
v: v3
  • Loading branch information
Cyrill Gorcunov authored and Ingo Molnar committed Oct 14, 2009
1 parent e6edc4e commit 77b0ff5
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 20 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: 9844ab11c763bfed9f054c82366b19dcda66aca9
refs/heads/master: a933c61829509eb27083146dda392132baa0969a
22 changes: 3 additions & 19 deletions trunk/arch/x86/kernel/apic/apic.c
Original file line number Diff line number Diff line change
Expand Up @@ -241,28 +241,12 @@ static int modern_apic(void)
}

/*
* bare function to substitute write operation
* and it's _that_ fast :)
*/
static void native_apic_write_dummy(u32 reg, u32 v)
{
WARN_ON_ONCE((cpu_has_apic || !disable_apic));
}

static u32 native_apic_read_dummy(u32 reg)
{
WARN_ON_ONCE((cpu_has_apic && !disable_apic));
return 0;
}

/*
* right after this call apic->write/read doesn't do anything
* note that there is no restore operation it works one way
* right after this call apic become NOOP driven
* so apic->write/read doesn't do anything
*/
void apic_disable(void)
{
apic->read = native_apic_read_dummy;
apic->write = native_apic_write_dummy;
apic = &apic_noop;
}

void native_apic_wait_icr_idle(void)
Expand Down

0 comments on commit 77b0ff5

Please sign in to comment.