Gentoo Archives: gentoo-commits

From: "Ben de Groot (yngwin)" <yngwin@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in sys-kernel/ck-sources/files: bfs462-update_inittask.patch bfs462-rtmn-fix.patch
Date: Sun, 31 May 2015 23:27:58
Message-Id: 20150531232753.25F81A14@oystercatcher.gentoo.org
1 yngwin 15/05/31 23:27:53
2
3 Added: bfs462-update_inittask.patch bfs462-rtmn-fix.patch
4 Log:
5 Add upstream BFS 462 patches (bug #549788)
6
7 (Portage version: 2.2.20/cvs/Linux x86_64, signed Manifest commit with key 0x4FDF9CFD2FAC514E!)
8
9 Revision Changes Path
10 1.1 sys-kernel/ck-sources/files/bfs462-update_inittask.patch
11
12 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-kernel/ck-sources/files/bfs462-update_inittask.patch?rev=1.1&view=markup
13 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-kernel/ck-sources/files/bfs462-update_inittask.patch?rev=1.1&content-type=text/plain
14
15 Index: bfs462-update_inittask.patch
16 ===================================================================
17 Add missing init task changes.
18
19 -ck
20
21 ---
22 include/linux/init_task.h | 4 ++++
23 1 file changed, 4 insertions(+)
24
25 Index: linux-4.0.2-ck1/include/linux/init_task.h
26 ===================================================================
27 --- linux-4.0.2-ck1.orig/include/linux/init_task.h 2015-05-08 09:03:54.922287214 +1000
28 +++ linux-4.0.2-ck1/include/linux/init_task.h 2015-05-08 14:09:52.046246570 +1000
29 @@ -200,6 +200,9 @@ extern struct task_group root_task_group
30 .cpus_allowed = CPU_MASK_ALL, \
31 .mm = NULL, \
32 .active_mm = &init_mm, \
33 + .restart_block = { \
34 + .fn = do_no_restart_syscall, \
35 + }, \
36 .run_list = LIST_HEAD_INIT(tsk.run_list), \
37 .time_slice = HZ, \
38 .tasks = LIST_HEAD_INIT(tsk.tasks), \
39 @@ -243,6 +246,7 @@ extern struct task_group root_task_group
40 INIT_FTRACE_GRAPH \
41 INIT_TRACE_RECURSION \
42 INIT_TASK_RCU_PREEMPT(tsk) \
43 + INIT_KASAN(tsk) \
44 }
45 #else /* CONFIG_SCHED_BFS */
46 #define INIT_TASK_COMM "swapper"
47
48
49
50 1.1 sys-kernel/ck-sources/files/bfs462-rtmn-fix.patch
51
52 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-kernel/ck-sources/files/bfs462-rtmn-fix.patch?rev=1.1&view=markup
53 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-kernel/ck-sources/files/bfs462-rtmn-fix.patch?rev=1.1&content-type=text/plain
54
55 Index: bfs462-rtmn-fix.patch
56 ===================================================================
57 Fix undefined reference to `register_task_migration_notifier'
58
59 -ck
60
61 ---
62 kernel/sched/bfs.c | 7 +++++++
63 1 file changed, 7 insertions(+)
64
65 Index: linux-4.0.2-ck1/kernel/sched/bfs.c
66 ===================================================================
67 --- linux-4.0.2-ck1.orig/kernel/sched/bfs.c 2015-05-08 09:03:55.730280539 +1000
68 +++ linux-4.0.2-ck1/kernel/sched/bfs.c 2015-05-08 09:18:42.266015120 +1000
69 @@ -976,6 +976,13 @@ static inline void deactivate_task(struc
70 clear_sticky(p);
71 }
72
73 +static ATOMIC_NOTIFIER_HEAD(task_migration_notifier);
74 +
75 +void register_task_migration_notifier(struct notifier_block *n)
76 +{
77 + atomic_notifier_chain_register(&task_migration_notifier, n);
78 +}
79 +
80 #ifdef CONFIG_SMP
81 void set_task_cpu(struct task_struct *p, unsigned int cpu)
82 {