fork.c (b75058614fdd3140074a640b514f6a0b4d485a2d) | fork.c (0584df9c12f449124d0bfef9899e5365604ee7a9) |
---|---|
1// SPDX-License-Identifier: GPL-2.0-only 2/* 3 * linux/kernel/fork.c 4 * 5 * Copyright (C) 1991, 1992 Linus Torvalds 6 */ 7 8/* --- 2018 unchanged lines hidden (view full) --- 2027 retval = PTR_ERR(p->mempolicy); 2028 p->mempolicy = NULL; 2029 goto bad_fork_cleanup_threadgroup_lock; 2030 } 2031#endif 2032#ifdef CONFIG_CPUSETS 2033 p->cpuset_mem_spread_rotor = NUMA_NO_NODE; 2034 p->cpuset_slab_spread_rotor = NUMA_NO_NODE; | 1// SPDX-License-Identifier: GPL-2.0-only 2/* 3 * linux/kernel/fork.c 4 * 5 * Copyright (C) 1991, 1992 Linus Torvalds 6 */ 7 8/* --- 2018 unchanged lines hidden (view full) --- 2027 retval = PTR_ERR(p->mempolicy); 2028 p->mempolicy = NULL; 2029 goto bad_fork_cleanup_threadgroup_lock; 2030 } 2031#endif 2032#ifdef CONFIG_CPUSETS 2033 p->cpuset_mem_spread_rotor = NUMA_NO_NODE; 2034 p->cpuset_slab_spread_rotor = NUMA_NO_NODE; |
2035 seqcount_spinlock_init(&p->mems_allowed_seq, &p->alloc_lock); | 2035 seqcount_init(&p->mems_allowed_seq); |
2036#endif 2037#ifdef CONFIG_TRACE_IRQFLAGS | 2036#endif 2037#ifdef CONFIG_TRACE_IRQFLAGS |
2038 p->irq_events = 0; 2039 p->hardirq_enable_ip = 0; 2040 p->hardirq_enable_event = 0; 2041 p->hardirq_disable_ip = _THIS_IP_; 2042 p->hardirq_disable_event = 0; 2043 p->softirqs_enabled = 1; 2044 p->softirq_enable_ip = _THIS_IP_; 2045 p->softirq_enable_event = 0; 2046 p->softirq_disable_ip = 0; 2047 p->softirq_disable_event = 0; 2048 p->softirq_context = 0; | 2038 memset(&p->irqtrace, 0, sizeof(p->irqtrace)); 2039 p->irqtrace.hardirq_disable_ip = _THIS_IP_; 2040 p->irqtrace.softirq_enable_ip = _THIS_IP_; 2041 p->softirqs_enabled = 1; 2042 p->softirq_context = 0; |
2049#endif 2050 2051 p->pagefault_disabled = 0; 2052 2053#ifdef CONFIG_LOCKDEP 2054 lockdep_init_task(p); 2055#endif 2056 --- 1041 unchanged lines hidden --- | 2043#endif 2044 2045 p->pagefault_disabled = 0; 2046 2047#ifdef CONFIG_LOCKDEP 2048 lockdep_init_task(p); 2049#endif 2050 --- 1041 unchanged lines hidden --- |