x86: clean up process_32/64.c
PATCH 1/1 x86: clean up process_32/64.c
White space and coding style clean up.
Make process_32/64.c similar.
Signed-off-by Hiroshi Shimamoto <[email protected]>
--- arch/x86/kernel/process_32.c | 20 ++-- arch/x86/kernel/process_64.c | 307 +++++++++++++++++++++--------------------- 2 files changed, 163 insertions(+), 164 deletions(-)
arch/x86/kernel/process_32.c +10 -10
@@ -133,7 +133,7 @@ EXPORT_SYMBOL(default_idle);* to poll the ->work.need_resched flag instead of waiting for the * cross-CPU IPI to arrive. Use this option with caution. */ -static void poll_idle (void ) +static void poll_idle (void ) {cpu_relax (); }
@@ -330,8 +330,8 @@ void __show_registers(struct pt_regs *regs, int all)printk ("ESI: %08lx EDI: %08lx EBP: %08lx ESP: %08lx\n" , regs->esi, regs->edi, regs->ebp, esp);printk (" DS: %04x ES: %04x FS: %04x GS: %04x SS: %04x\n" , - regs->xds &0xffff , regs->xes &0xffff , - regs->xfs &0xffff , gs, ss); + regs->xds &0xffff , regs->xes &0xffff , + regs->xfs &0xffff , gs, ss);if (!all)return ;
@@ -426,7 +426,7 @@ void flush_thread(void)struct task_struct *tsk = current;memset (tsk->thread.debugreg,0 ,sizeof (unsigned long )*8 ); -memset (tsk->thread.tls_array,0 ,sizeof (tsk->thread.tls_array)); +memset (tsk->thread.tls_array,0 ,sizeof (tsk->thread.tls_array));clear_tsk_thread_flag (tsk,TIF_DEBUG );/* * Forget coprocessor state..
@@ -451,8 +451,8 @@ void prepare_to_copy(struct task_struct *tsk) }int copy_thread (int nr,unsigned long clone_flags,unsigned long esp, -unsigned long unused, -struct task_struct * p,struct pt_regs * regs) +unsigned long unused, +struct task_struct * p,struct pt_regs * regs) {struct pt_regs * childregs;struct task_struct *tsk;
@@ -468,7 +468,7 @@ int copy_thread(int nr, unsigned long clone_flags, unsigned long esp, p->thread.eip = (unsigned long ) ret_from_fork; -savesegment (gs,p->thread.gs); +savesegment (gs, p->thread.gs); tsk = current;if (unlikely (test_tsk_thread_flag (tsk,TIF_IO_BITMAP ))) {
@@ -513,7 +513,7 @@ void dump_thread(struct pt_regs * regs, struct user * dump) dump->u_dsize -= dump->u_tsize; dump->u_ssize =0 ;for (i =0 ; i <8 ; i++) - dump->u_debugreg[i] = current->thread.debugreg[i]; + dump->u_debugreg[i] = current->thread.debugreg[i];if (dump->start_stack <TASK_SIZE ) dump->u_ssize = ((unsigned long ) (TASK_SIZE - dump->start_stack)) >>PAGE_SHIFT ;
@@ -528,7 +528,7 @@ void dump_thread(struct pt_regs * regs, struct user * dump) dump->regs.ds = regs->xds; dump->regs.es = regs->xes; dump->regs.fs = regs->xfs; -savesegment (gs,dump->regs.gs); +savesegment (gs, dump->regs.gs); dump->regs.orig_eax = regs->orig_eax; dump->regs.eip = regs->eip; dump->regs.cs = regs->xcs;
@@ -540,7 +540,7 @@ void dump_thread(struct pt_regs * regs, struct user * dump) }EXPORT_SYMBOL (dump_thread); -/* +/* * Capture the user space registers if the task is not running (in user space) */ int dump_task_regs (struct task_struct *tsk,elf_gregset_t *regs)
arch/x86/kernel/process_64.c +153 -154
611 lines not on this page · raw message
Signature · 1 line
1.5.3.4
Quoted 2 lines · Hiroshi Shimamoto
White space and coding style clean up.
Make process_32/64.c similar.
there were renames and other cleanups in x86.git meanwhile that conflicted with your patch, so parts of your patch did not apply. Would you be interested in resending the remaining cleanups? I've attached the current mergup of your patch below.
Ingo
------------------>
Subject: x86: clean up process_32/64.c
From: Hiroshi Shimamoto <[email protected]>
White space and coding style clean up.
Make process_32/64.c similar.
Signed-off-by Hiroshi Shimamoto <[email protected]>
Signed-off-by Ingo Molnar <[email protected]>
Signed-off-by Thomas Gleixner <[email protected]>
--- arch/x86/kernel/process_32.c | 6 - arch/x86/kernel/process_64.c | 175 +++++++++++++++++++++---------------------- 2 files changed, 90 insertions(+), 91 deletions(-)
arch/x86/kernel/process_32.c +3 -3
@@ -133,7 +133,7 @@ EXPORT_SYMBOL(default_idle);* to poll the ->work.need_resched flag instead of waiting for the * cross-CPU IPI to arrive. Use this option with caution. */ -static void poll_idle (void ) +static void poll_idle (void ) {cpu_relax (); }
@@ -473,7 +473,7 @@ int copy_thread(int nr, unsigned long cl p->thread.ip = (unsigned long ) ret_from_fork; -savesegment (gs,p->thread.gs); +savesegment (gs, p->thread.gs); tsk = current;if (unlikely (test_tsk_thread_flag (tsk,TIF_IO_BITMAP ))) {
@@ -551,7 +551,7 @@ void dump_thread(struct pt_regs * regs, }EXPORT_SYMBOL (dump_thread); -/* +/* * Capture the user space registers if the task is not running (in user space) */ int dump_task_regs (struct task_struct *tsk,elf_gregset_t *regs)
arch/x86/kernel/process_64.c +87 -88
344 lines not on this page · raw message