Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 72357
b: refs/heads/master
c: 9b7711f
h: refs/heads/master
i:
  72355: ee7b675
v: v3
  • Loading branch information
Hiroshi Shimamoto authored and Thomas Gleixner committed Oct 23, 2007
1 parent b2dac07 commit 98d5c80
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 703530238b580d69d4a112d3ab3d58c0eb1e7246
refs/heads/master: 9b7711f0839d12edac3abfc2f3e4c5bdc660878b
14 changes: 14 additions & 0 deletions trunk/arch/x86/kernel/apic_64.c
Original file line number Diff line number Diff line change
Expand Up @@ -287,6 +287,20 @@ void disable_local_APIC(void)
apic_write(APIC_SPIV, value);
}

void lapic_shutdown(void)
{
unsigned long flags;

if (!cpu_has_apic)
return;

local_irq_save(flags);

disable_local_APIC();

local_irq_restore(flags);
}

/*
* This is to verify that we're looking at a real local APIC.
* Check these against your board if the CPUs aren't getting
Expand Down
1 change: 1 addition & 0 deletions trunk/include/asm-x86/apic_64.h
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,7 @@ extern void clear_local_APIC (void);
extern void connect_bsp_APIC (void);
extern void disconnect_bsp_APIC (int virt_wire_setup);
extern void disable_local_APIC (void);
extern void lapic_shutdown (void);
extern int verify_local_APIC (void);
extern void cache_APIC_registers (void);
extern void sync_Arb_IDs (void);
Expand Down

0 comments on commit 98d5c80

Please sign in to comment.