Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 73133
b: refs/heads/master
c: 0d2be08
h: refs/heads/master
i:
  73131: 3ed4dfd
v: v3
  • Loading branch information
Heiko Carstens authored and Martin Schwidefsky committed Nov 5, 2007
1 parent 2e6ba8a commit 6424d15
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 931bb68ba6355b7111966c90822ed862c102a9cd
refs/heads/master: 0d2be08893605be00de0f95ee7e4b8917ea1ebc3
8 changes: 6 additions & 2 deletions trunk/arch/s390/kernel/process.c
Original file line number Diff line number Diff line change
Expand Up @@ -92,14 +92,15 @@ EXPORT_SYMBOL(unregister_idle_notifier);

void do_monitor_call(struct pt_regs *regs, long interruption_code)
{
#ifdef CONFIG_SMP
struct s390_idle_data *idle;

idle = &__get_cpu_var(s390_idle);
spin_lock(&idle->lock);
idle->idle_time += get_clock() - idle->idle_enter;
idle->in_idle = 0;
spin_unlock(&idle->lock);

#endif
/* disable monitor call class 0 */
__ctl_clear_bit(8, 15);

Expand All @@ -114,7 +115,9 @@ extern void s390_handle_mcck(void);
static void default_idle(void)
{
int cpu, rc;
#ifdef CONFIG_SMP
struct s390_idle_data *idle;
#endif

/* CPU is going idle. */
cpu = smp_processor_id();
Expand Down Expand Up @@ -151,13 +154,14 @@ static void default_idle(void)
s390_handle_mcck();
return;
}

#ifdef CONFIG_SMP
idle = &__get_cpu_var(s390_idle);
spin_lock(&idle->lock);
idle->idle_count++;
idle->in_idle = 1;
idle->idle_enter = get_clock();
spin_unlock(&idle->lock);
#endif
trace_hardirqs_on();
/* Wait for external, I/O or machine check interrupt. */
__load_psw_mask(psw_kernel_bits | PSW_MASK_WAIT |
Expand Down

0 comments on commit 6424d15

Please sign in to comment.