aboutsummaryrefslogtreecommitdiffstats
path: root/arch/i386/kernel/process.c
diff options
context:
space:
mode:
authorAlexey Dobriyan <adobriyan@gmail.com>2005-06-23 03:08:33 -0400
committerLinus Torvalds <torvalds@ppc970.osdl.org>2005-06-23 12:45:11 -0400
commit129f69465b411592247c408f93d7106939223be1 (patch)
treef585dff5c44ffdd0ee4ce05dec56dbc8477eb909 /arch/i386/kernel/process.c
parenta9ed8817966dd723754a990f1003264a21b5747e (diff)
[PATCH] Remove i386_ksyms.c, almost.
* EXPORT_SYMBOL's moved to other files * #include <linux/config.h>, <linux/module.h> where needed * #include's in i386_ksyms.c cleaned up * After copy-paste, redundant due to Makefiles rules preprocessor directives removed: #ifdef CONFIG_FOO EXPORT_SYMBOL(foo); #endif obj-$(CONFIG_FOO) += foo.o * Tiny reformat to fit in 80 columns Signed-off-by: Alexey Dobriyan <adobriyan@gmail.com> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'arch/i386/kernel/process.c')
-rw-r--r--arch/i386/kernel/process.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/arch/i386/kernel/process.c b/arch/i386/kernel/process.c
index 96e3ea6b17c7..3c3f245cca53 100644
--- a/arch/i386/kernel/process.c
+++ b/arch/i386/kernel/process.c
@@ -73,6 +73,7 @@ unsigned long thread_saved_pc(struct task_struct *tsk)
73 * Powermanagement idle function, if any.. 73 * Powermanagement idle function, if any..
74 */ 74 */
75void (*pm_idle)(void); 75void (*pm_idle)(void);
76EXPORT_SYMBOL(pm_idle);
76static DEFINE_PER_CPU(unsigned int, cpu_idle_state); 77static DEFINE_PER_CPU(unsigned int, cpu_idle_state);
77 78
78void disable_hlt(void) 79void disable_hlt(void)
@@ -105,6 +106,9 @@ void default_idle(void)
105 cpu_relax(); 106 cpu_relax();
106 } 107 }
107} 108}
109#ifdef CONFIG_APM_MODULE
110EXPORT_SYMBOL(default_idle);
111#endif
108 112
109/* 113/*
110 * On SMP it's slightly faster (but much more power-consuming!) 114 * On SMP it's slightly faster (but much more power-consuming!)
@@ -325,6 +329,7 @@ int kernel_thread(int (*fn)(void *), void * arg, unsigned long flags)
325 /* Ok, create the new process.. */ 329 /* Ok, create the new process.. */
326 return do_fork(flags | CLONE_VM | CLONE_UNTRACED, 0, &regs, 0, NULL, NULL); 330 return do_fork(flags | CLONE_VM | CLONE_UNTRACED, 0, &regs, 0, NULL, NULL);
327} 331}
332EXPORT_SYMBOL(kernel_thread);
328 333
329/* 334/*
330 * Free current thread data structures etc.. 335 * Free current thread data structures etc..
@@ -508,6 +513,7 @@ void dump_thread(struct pt_regs * regs, struct user * dump)
508 513
509 dump->u_fpvalid = dump_fpu (regs, &dump->i387); 514 dump->u_fpvalid = dump_fpu (regs, &dump->i387);
510} 515}
516EXPORT_SYMBOL(dump_thread);
511 517
512/* 518/*
513 * Capture the user space registers if the task is not running (in user space) 519 * Capture the user space registers if the task is not running (in user space)
@@ -731,6 +737,7 @@ unsigned long get_wchan(struct task_struct *p)
731 } while (count++ < 16); 737 } while (count++ < 16);
732 return 0; 738 return 0;
733} 739}
740EXPORT_SYMBOL(get_wchan);
734 741
735/* 742/*
736 * sys_alloc_thread_area: get a yet unused TLS descriptor index. 743 * sys_alloc_thread_area: get a yet unused TLS descriptor index.