diff options
author | Len Brown <len.brown@intel.com> | 2005-08-05 00:44:28 -0400 |
---|---|---|
committer | Len Brown <len.brown@intel.com> | 2005-08-05 00:45:14 -0400 |
commit | 4be44fcd3bf648b782f4460fd06dfae6c42ded4b (patch) | |
tree | 5b5b7d296ea58786f53b95e5eac9565ff66890b0 /arch/x86_64/kernel/acpi | |
parent | c65ade4dc8b486e8c8b9b0a6399789a5428e2039 (diff) |
[ACPI] Lindent all ACPI files
Signed-off-by: Len Brown <len.brown@intel.com>
Diffstat (limited to 'arch/x86_64/kernel/acpi')
-rw-r--r-- | arch/x86_64/kernel/acpi/sleep.c | 17 |
1 files changed, 10 insertions, 7 deletions
diff --git a/arch/x86_64/kernel/acpi/sleep.c b/arch/x86_64/kernel/acpi/sleep.c index 7a275de6df22..148f6f7ea315 100644 --- a/arch/x86_64/kernel/acpi/sleep.c +++ b/arch/x86_64/kernel/acpi/sleep.c | |||
@@ -47,7 +47,6 @@ | |||
47 | #include <asm/proto.h> | 47 | #include <asm/proto.h> |
48 | #include <asm/tlbflush.h> | 48 | #include <asm/tlbflush.h> |
49 | 49 | ||
50 | |||
51 | /* -------------------------------------------------------------------------- | 50 | /* -------------------------------------------------------------------------- |
52 | Low-Level Sleep Support | 51 | Low-Level Sleep Support |
53 | -------------------------------------------------------------------------- */ | 52 | -------------------------------------------------------------------------- */ |
@@ -77,11 +76,12 @@ static void init_low_mapping(void) | |||
77 | * Create an identity mapped page table and copy the wakeup routine to | 76 | * Create an identity mapped page table and copy the wakeup routine to |
78 | * low memory. | 77 | * low memory. |
79 | */ | 78 | */ |
80 | int acpi_save_state_mem (void) | 79 | int acpi_save_state_mem(void) |
81 | { | 80 | { |
82 | init_low_mapping(); | 81 | init_low_mapping(); |
83 | 82 | ||
84 | memcpy((void *) acpi_wakeup_address, &wakeup_start, &wakeup_end - &wakeup_start); | 83 | memcpy((void *)acpi_wakeup_address, &wakeup_start, |
84 | &wakeup_end - &wakeup_start); | ||
85 | acpi_copy_wakeup_routine(acpi_wakeup_address); | 85 | acpi_copy_wakeup_routine(acpi_wakeup_address); |
86 | 86 | ||
87 | return 0; | 87 | return 0; |
@@ -90,7 +90,7 @@ int acpi_save_state_mem (void) | |||
90 | /* | 90 | /* |
91 | * acpi_restore_state | 91 | * acpi_restore_state |
92 | */ | 92 | */ |
93 | void acpi_restore_state_mem (void) | 93 | void acpi_restore_state_mem(void) |
94 | { | 94 | { |
95 | set_pgd(pgd_offset(current->mm, 0UL), low_ptr); | 95 | set_pgd(pgd_offset(current->mm, 0UL), low_ptr); |
96 | flush_tlb_all(); | 96 | flush_tlb_all(); |
@@ -108,7 +108,8 @@ void __init acpi_reserve_bootmem(void) | |||
108 | { | 108 | { |
109 | acpi_wakeup_address = (unsigned long)alloc_bootmem_low(PAGE_SIZE); | 109 | acpi_wakeup_address = (unsigned long)alloc_bootmem_low(PAGE_SIZE); |
110 | if ((&wakeup_end - &wakeup_start) > PAGE_SIZE) | 110 | if ((&wakeup_end - &wakeup_start) > PAGE_SIZE) |
111 | printk(KERN_CRIT "ACPI: Wakeup code way too big, will crash on attempt to suspend\n"); | 111 | printk(KERN_CRIT |
112 | "ACPI: Wakeup code way too big, will crash on attempt to suspend\n"); | ||
112 | } | 113 | } |
113 | 114 | ||
114 | static int __init acpi_sleep_setup(char *str) | 115 | static int __init acpi_sleep_setup(char *str) |
@@ -127,6 +128,8 @@ static int __init acpi_sleep_setup(char *str) | |||
127 | 128 | ||
128 | __setup("acpi_sleep=", acpi_sleep_setup); | 129 | __setup("acpi_sleep=", acpi_sleep_setup); |
129 | 130 | ||
130 | #endif /*CONFIG_ACPI_SLEEP*/ | 131 | #endif /*CONFIG_ACPI_SLEEP */ |
131 | 132 | ||
132 | void acpi_pci_link_exit(void) {} | 133 | void acpi_pci_link_exit(void) |
134 | { | ||
135 | } | ||