X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=include%2Fasm-s390%2Fprocessor.h;h=4c9d607021d7fafe18668dbb4cfaa6149d33103a;hb=9bf4aaab3e101692164d49b7ca357651eb691cb6;hp=7ef8112504d346257d3817f9711db4b6dc4ed273;hpb=5273a3df6485dc2ad6aa7ddd441b9a21970f003b;p=linux-2.6.git diff --git a/include/asm-s390/processor.h b/include/asm-s390/processor.h index 7ef811250..4c9d60702 100644 --- a/include/asm-s390/processor.h +++ b/include/asm-s390/processor.h @@ -63,16 +63,19 @@ extern struct task_struct *last_task_used_math; # define TASK_SIZE (0x80000000UL) # define TASK_UNMAPPED_BASE (TASK_SIZE / 2) +# define DEFAULT_TASK_SIZE (0x80000000UL) #else /* __s390x__ */ -# define TASK_SIZE (0x40000000000UL) -# define TASK31_SIZE (0x80000000UL) -# define TASK_UNMAPPED_BASE (test_thread_flag(TIF_31BIT) ? \ - (TASK31_SIZE / 2) : (TASK_SIZE / 2)) +# define TASK_SIZE (test_thread_flag(TIF_31BIT) ? \ + (0x80000000UL) : (0x40000000000UL)) +# define TASK_UNMAPPED_BASE (TASK_SIZE / 2) +# define DEFAULT_TASK_SIZE (0x40000000000UL) #endif /* __s390x__ */ +#define MM_VM_SIZE(mm) DEFAULT_TASK_SIZE + typedef struct { __u32 ar4; } mm_segment_t; @@ -316,6 +319,16 @@ static inline void disabled_wait(unsigned long code) #endif /* __s390x__ */ } +/* + * CPU idle notifier chain. + */ +#define CPU_IDLE 0 +#define CPU_NOT_IDLE 1 + +struct notifier_block; +int register_idle_notifier(struct notifier_block *nb); +int unregister_idle_notifier(struct notifier_block *nb); + #endif #endif /* __ASM_S390_PROCESSOR_H */