yngwin 15/05/31 23:27:53 Added: bfs462-update_inittask.patch bfs462-rtmn-fix.patch Log: Add upstream BFS 462 patches (bug #549788) (Portage version: 2.2.20/cvs/Linux x86_64, signed Manifest commit with key 0x4FDF9CFD2FAC514E!)
Revision Changes Path 1.1 sys-kernel/ck-sources/files/bfs462-update_inittask.patch file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-kernel/ck-sources/files/bfs462-update_inittask.patch?rev=1.1&view=markup 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 Index: bfs462-update_inittask.patch =================================================================== Add missing init task changes. -ck --- include/linux/init_task.h | 4 ++++ 1 file changed, 4 insertions(+) Index: linux-4.0.2-ck1/include/linux/init_task.h =================================================================== --- linux-4.0.2-ck1.orig/include/linux/init_task.h 2015-05-08 09:03:54.922287214 +1000 +++ linux-4.0.2-ck1/include/linux/init_task.h 2015-05-08 14:09:52.046246570 +1000 @@ -200,6 +200,9 @@ extern struct task_group root_task_group .cpus_allowed = CPU_MASK_ALL, \ .mm = NULL, \ .active_mm = &init_mm, \ + .restart_block = { \ + .fn = do_no_restart_syscall, \ + }, \ .run_list = LIST_HEAD_INIT(tsk.run_list), \ .time_slice = HZ, \ .tasks = LIST_HEAD_INIT(tsk.tasks), \ @@ -243,6 +246,7 @@ extern struct task_group root_task_group INIT_FTRACE_GRAPH \ INIT_TRACE_RECURSION \ INIT_TASK_RCU_PREEMPT(tsk) \ + INIT_KASAN(tsk) \ } #else /* CONFIG_SCHED_BFS */ #define INIT_TASK_COMM "swapper" 1.1 sys-kernel/ck-sources/files/bfs462-rtmn-fix.patch file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-kernel/ck-sources/files/bfs462-rtmn-fix.patch?rev=1.1&view=markup 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 Index: bfs462-rtmn-fix.patch =================================================================== Fix undefined reference to `register_task_migration_notifier' -ck --- kernel/sched/bfs.c | 7 +++++++ 1 file changed, 7 insertions(+) Index: linux-4.0.2-ck1/kernel/sched/bfs.c =================================================================== --- linux-4.0.2-ck1.orig/kernel/sched/bfs.c 2015-05-08 09:03:55.730280539 +1000 +++ linux-4.0.2-ck1/kernel/sched/bfs.c 2015-05-08 09:18:42.266015120 +1000 @@ -976,6 +976,13 @@ static inline void deactivate_task(struc clear_sticky(p); } +static ATOMIC_NOTIFIER_HEAD(task_migration_notifier); + +void register_task_migration_notifier(struct notifier_block *n) +{ + atomic_notifier_chain_register(&task_migration_notifier, n); +} + #ifdef CONFIG_SMP void set_task_cpu(struct task_struct *p, unsigned int cpu) {