process.c (ad1bb82c057ecebfdb0b619e023c57b425ef7e7e) process.c (714acdbd1c94e7e3ab90f6b6938f1ccb27b662f0)
1/*
2 * Copyright (C) 2008-2009 Michal Simek <monstr@monstr.eu>
3 * Copyright (C) 2008-2009 PetaLogix
4 * Copyright (C) 2006 Atmark Techno, Inc.
5 *
6 * This file is subject to the terms and conditions of the GNU General Public
7 * License. See the file "COPYING" in the main directory of this archive
8 * for more details.

--- 40 unchanged lines hidden (view full) ---

49
50void (*pm_power_off)(void) = NULL;
51EXPORT_SYMBOL(pm_power_off);
52
53void flush_thread(void)
54{
55}
56
1/*
2 * Copyright (C) 2008-2009 Michal Simek <monstr@monstr.eu>
3 * Copyright (C) 2008-2009 PetaLogix
4 * Copyright (C) 2006 Atmark Techno, Inc.
5 *
6 * This file is subject to the terms and conditions of the GNU General Public
7 * License. See the file "COPYING" in the main directory of this archive
8 * for more details.

--- 40 unchanged lines hidden (view full) ---

49
50void (*pm_power_off)(void) = NULL;
51EXPORT_SYMBOL(pm_power_off);
52
53void flush_thread(void)
54{
55}
56
57int copy_thread_tls(unsigned long clone_flags, unsigned long usp,
58 unsigned long arg, struct task_struct *p, unsigned long tls)
57int copy_thread(unsigned long clone_flags, unsigned long usp, unsigned long arg,
58 struct task_struct *p, unsigned long tls)
59{
60 struct pt_regs *childregs = task_pt_regs(p);
61 struct thread_info *ti = task_thread_info(p);
62
63 if (unlikely(p->flags & PF_KTHREAD)) {
64 /* if we're creating a new kernel thread then just zeroing all
65 * the registers. That's OK for a brand new thread.*/
66 memset(childregs, 0, sizeof(struct pt_regs));

--- 88 unchanged lines hidden ---
59{
60 struct pt_regs *childregs = task_pt_regs(p);
61 struct thread_info *ti = task_thread_info(p);
62
63 if (unlikely(p->flags & PF_KTHREAD)) {
64 /* if we're creating a new kernel thread then just zeroing all
65 * the registers. That's OK for a brand new thread.*/
66 memset(childregs, 0, sizeof(struct pt_regs));

--- 88 unchanged lines hidden ---