x86_64: acpi/wakeup_64 cleanup

- remove %ds re-set, it's already set in wakeup_long64
- remove double labels and alignment (ENTRY already adds both)
- use meaningful resume point labelname
- skip alignment while jumping from wakeup_long64 to the resume point
- remove .size, .type and unused labels
[v2]
- added ENDPROCs

Signed-off-by: Jiri Slaby <jirislaby@gmail.com>
Acked-by: Cyrill Gorcunov <gorcunov@openvz.org>
Acked-by: Pavel Machek <pavel@suse.cz>
Signed-off-by: Rafael J. Wysocki <rjw@sisk.pl>
Signed-off-by: Len Brown <len.brown@intel.com>

authored by Jiri Slaby and committed by Len Brown e6bd6760 adfafefd

+7 -19
+7 -19
arch/x86/kernel/acpi/wakeup_64.S
··· 13 13 * Hooray, we are in Long 64-bit mode (but still running in low memory) 14 14 */ 15 15 ENTRY(wakeup_long64) 16 - wakeup_long64: 17 16 movq saved_magic, %rax 18 17 movq $0x123456789abcdef0, %rdx 19 18 cmpq %rdx, %rax ··· 33 34 34 35 movq saved_rip, %rax 35 36 jmp *%rax 37 + ENDPROC(wakeup_long64) 36 38 37 39 bogus_64_magic: 38 40 jmp bogus_64_magic 39 41 40 - .align 2 41 - .p2align 4,,15 42 - .globl do_suspend_lowlevel 43 - .type do_suspend_lowlevel,@function 44 - do_suspend_lowlevel: 45 - .LFB5: 42 + ENTRY(do_suspend_lowlevel) 46 43 subq $8, %rsp 47 44 xorl %eax, %eax 48 45 call save_processor_state ··· 62 67 pushfq 63 68 popq pt_regs_flags(%rax) 64 69 65 - movq $.L97, saved_rip(%rip) 70 + movq $resume_point, saved_rip(%rip) 66 71 67 72 movq %rsp, saved_rsp 68 73 movq %rbp, saved_rbp ··· 74 79 movl $3, %edi 75 80 xorl %eax, %eax 76 81 jmp acpi_enter_sleep_state 77 - .L97: 78 - .p2align 4,,7 79 - .L99: 80 - .align 4 81 - movl $24, %eax 82 - movw %ax, %ds 83 82 83 + .align 4 84 + resume_point: 84 85 /* We don't restore %rax, it must be 0 anyway */ 85 86 movq $saved_context, %rax 86 87 movq saved_context_cr4(%rax), %rbx ··· 108 117 xorl %eax, %eax 109 118 addq $8, %rsp 110 119 jmp restore_processor_state 111 - .LFE5: 112 - .Lfe5: 113 - .size do_suspend_lowlevel, .Lfe5-do_suspend_lowlevel 114 - 120 + ENDPROC(do_suspend_lowlevel) 121 + 115 122 .data 116 - ALIGN 117 123 ENTRY(saved_rbp) .quad 0 118 124 ENTRY(saved_rsi) .quad 0 119 125 ENTRY(saved_rdi) .quad 0