/* * S390 version * Copyright IBM Corp. 2002, 2006 * Author(s): Martin Schwidefsky (schwidefsky@de.ibm.com) */ #ifndef _ASM_THREAD_INFO_H #define _ASM_THREAD_INFO_H #include <linux/const.h> /* * Size of kernel stack for each process */ #define THREAD_ORDER 2 #define ASYNC_ORDER 2 #define THREAD_SIZE (PAGE_SIZE << THREAD_ORDER) #define ASYNC_SIZE (PAGE_SIZE << ASYNC_ORDER) #ifndef __ASSEMBLY__ #include <asm/lowcore.h> #include <asm/page.h> #include <asm/processor.h> /* * low level task data that entry.S needs immediate access to * - this struct should fit entirely inside of one cache line * - this struct shares the supervisor stack pages * - if the contents of this structure are changed, the assembly constants must also be changed */ struct thread_info { struct task_struct *task; /* main task structure */ unsigned long flags; /* low level flags */ unsigned long sys_call_table; /* System call table address */ unsigned int cpu; /* current CPU */ int preempt_count; /* 0 => preemptable, <0 => BUG */ unsigned int system_call; __u64 user_timer; __u64 system_timer; unsigned long last_break; /* last breaking-event-address. */ }; /* * macros/functions for gaining access to the thread information structure */ #define INIT_THREAD_INFO(tsk) \ { \ .task = &tsk, \ .flags = 0, \ .cpu = 0, \ .preempt_count = INIT_PREEMPT_COUNT, \ } #define init_thread_info (init_thread_union.thread_info) #define init_stack (init_thread_union.stack) /* how to get the thread information struct from C */
static inline struct thread_info *current_thread_info(void) { return (struct thread_info *) S390_lowcore.thread_info; }Contributors
| Person | Tokens | Prop | Commits | CommitProp | |
| martin schwidefsky | martin schwidefsky | 19 | 90.48% | 2 | 66.67% |
| heiko carstens | heiko carstens | 2 | 9.52% | 1 | 33.33% |
| Total | 21 | 100.00% | 3 | 100.00% |
| Person | Tokens | Prop | Commits | CommitProp | |
| martin schwidefsky | martin schwidefsky | 170 | 63.67% | 12 | 42.86% |
| heiko carstens | heiko carstens | 64 | 23.97% | 7 | 25.00% |
| jan willeke | jan willeke | 13 | 4.87% | 1 | 3.57% |
| christian ehrhardt | christian ehrhardt | 5 | 1.87% | 1 | 3.57% |
| roland mcgrath | roland mcgrath | 4 | 1.50% | 1 | 3.57% |
| andrea arcangeli | andrea arcangeli | 3 | 1.12% | 1 | 3.57% |
| josh stone | josh stone | 3 | 1.12% | 1 | 3.57% |
| fujita tomonori | fujita tomonori | 2 | 0.75% | 1 | 3.57% |
| jesper juhl | jesper juhl | 1 | 0.37% | 1 | 3.57% |
| andreas dilger | andreas dilger | 1 | 0.37% | 1 | 3.57% |
| richard weinberger | richard weinberger | 1 | 0.37% | 1 | 3.57% |
| Total | 267 | 100.00% | 28 | 100.00% |