diff options
Diffstat (limited to 'arch/s390/kernel')
| -rw-r--r-- | arch/s390/kernel/setup.c | 2 | ||||
| -rw-r--r-- | arch/s390/kernel/vtime.c | 8 | 
2 files changed, 6 insertions, 4 deletions
diff --git a/arch/s390/kernel/setup.c b/arch/s390/kernel/setup.c index f86c81e13c3..40b57693de3 100644 --- a/arch/s390/kernel/setup.c +++ b/arch/s390/kernel/setup.c @@ -974,11 +974,13 @@ static void __init setup_hwcaps(void)  	if (MACHINE_HAS_HPAGE)  		elf_hwcap |= HWCAP_S390_HPAGE; +#if defined(CONFIG_64BIT)  	/*  	 * 64-bit register support for 31-bit processes  	 * HWCAP_S390_HIGH_GPRS is bit 9.  	 */  	elf_hwcap |= HWCAP_S390_HIGH_GPRS; +#endif  	get_cpu_id(&cpu_id);  	switch (cpu_id.machine) { diff --git a/arch/s390/kernel/vtime.c b/arch/s390/kernel/vtime.c index 4fc97b40a6e..cb5093c26d1 100644 --- a/arch/s390/kernel/vtime.c +++ b/arch/s390/kernel/vtime.c @@ -99,7 +99,7 @@ static int do_account_vtime(struct task_struct *tsk, int hardirq_offset)  	return virt_timer_forward(user + system);  } -void account_vtime(struct task_struct *prev, struct task_struct *next) +void vtime_task_switch(struct task_struct *prev)  {  	struct thread_info *ti; @@ -107,7 +107,7 @@ void account_vtime(struct task_struct *prev, struct task_struct *next)  	ti = task_thread_info(prev);  	ti->user_timer = S390_lowcore.user_timer;  	ti->system_timer = S390_lowcore.system_timer; -	ti = task_thread_info(next); +	ti = task_thread_info(current);  	S390_lowcore.user_timer = ti->user_timer;  	S390_lowcore.system_timer = ti->system_timer;  } @@ -122,7 +122,7 @@ void account_process_tick(struct task_struct *tsk, int user_tick)   * Update process times based on virtual cpu times stored by entry.S   * to the lowcore fields user_timer, system_timer & steal_clock.   */ -void account_system_vtime(struct task_struct *tsk) +void vtime_account(struct task_struct *tsk)  {  	struct thread_info *ti = task_thread_info(tsk);  	u64 timer, system; @@ -138,7 +138,7 @@ void account_system_vtime(struct task_struct *tsk)  	virt_timer_forward(system);  } -EXPORT_SYMBOL_GPL(account_system_vtime); +EXPORT_SYMBOL_GPL(vtime_account);  void __kprobes vtime_stop_cpu(void)  {  |