ChangeSet 1.2224, 2005/03/26 13:44:35-08:00, [EMAIL PROTECTED]
[PATCH] M68k: Add missing pieces of thread info TIF_MEMDIE support
M68k: Add missing pieces of thread info TIF_MEMDIE support (introduced
in
2.6.11-rc3)
Signed-off-by: Geert Uytterhoeven <[EMAIL PROTECTED]>
Signed-off-by: Linus Torvalds <[EMAIL PROTECTED]>
processor.h | 3 ++-
thread_info.h | 6 ++++++
2 files changed, 8 insertions(+), 1 deletion(-)
diff -Nru a/include/asm-m68k/processor.h b/include/asm-m68k/processor.h
--- a/include/asm-m68k/processor.h 2005-03-26 17:31:42 -08:00
+++ b/include/asm-m68k/processor.h 2005-03-26 17:31:42 -08:00
@@ -62,7 +62,8 @@
char need_resched;
unsigned char delayed_trace; /* single step a syscall */
unsigned char syscall_trace; /* count of syscall interceptors */
- unsigned char pad[3];
+ unsigned char memdie; /* task was selected to be killed */
+ unsigned char pad[2];
};
struct thread_struct {
diff -Nru a/include/asm-m68k/thread_info.h b/include/asm-m68k/thread_info.h
--- a/include/asm-m68k/thread_info.h 2005-03-26 17:31:42 -08:00
+++ b/include/asm-m68k/thread_info.h 2005-03-26 17:31:42 -08:00
@@ -68,6 +68,9 @@
case TIF_SYSCALL_TRACE: \
tsk->thread.work.syscall_trace = val; \
break; \
+ case TIF_MEMDIE: \
+ tsk->thread.work.memdie = val; \
+ break; \
default: \
thread_flag_fixme(); \
} \
@@ -84,6 +87,9 @@
break; \
case TIF_SYSCALL_TRACE: \
___res = tsk->thread.work.syscall_trace;\
+ break; \
+ case TIF_MEMDIE: \
+ ___res = tsk->thread.work.memdie;\
break; \
default: \
___res = thread_flag_fixme(); \
-
To unsubscribe from this list: send the line "unsubscribe bk-commits-head" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at http://vger.kernel.org/majordomo-info.html