Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 376563
b: refs/heads/master
c: 9acf73b
h: refs/heads/master
i:
  376561: 709a27c
  376559: 2fd211b
v: v3
  • Loading branch information
Heiko Carstens authored and Martin Schwidefsky committed May 27, 2013
1 parent c268550 commit d79c49b
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 17 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: 576ebd74928fd60ae112b33c42b89602015fadbd
refs/heads/master: 9acf73b7d06eaa3fbfbfafc9c835f8fe0d751eff
27 changes: 11 additions & 16 deletions trunk/arch/s390/kernel/smp.c
Original file line number Diff line number Diff line change
Expand Up @@ -428,34 +428,27 @@ void smp_stop_cpu(void)
* This is the main routine where commands issued by other
* cpus are handled.
*/
static void do_ext_call_interrupt(struct ext_code ext_code,
unsigned int param32, unsigned long param64)
static void smp_handle_ext_call(void)
{
unsigned long bits;
int cpu;

cpu = smp_processor_id();
if (ext_code.code == 0x1202)
inc_irq_stat(IRQEXT_EXC);
else
inc_irq_stat(IRQEXT_EMS);
/*
* handle bit signal external calls
*/
bits = xchg(&pcpu_devices[cpu].ec_mask, 0);

/* handle bit signal external calls */
bits = xchg(&pcpu_devices[smp_processor_id()].ec_mask, 0);
if (test_bit(ec_stop_cpu, &bits))
smp_stop_cpu();

if (test_bit(ec_schedule, &bits))
scheduler_ipi();

if (test_bit(ec_call_function, &bits))
generic_smp_call_function_interrupt();

if (test_bit(ec_call_function_single, &bits))
generic_smp_call_function_single_interrupt();
}

static void do_ext_call_interrupt(struct ext_code ext_code,
unsigned int param32, unsigned long param64)
{
inc_irq_stat(ext_code.code == 0x1202 ? IRQEXT_EXC : IRQEXT_EMS);
smp_handle_ext_call();
}

void arch_send_call_function_ipi_mask(const struct cpumask *mask)
Expand Down Expand Up @@ -760,6 +753,8 @@ int __cpu_disable(void)
{
unsigned long cregs[16];

/* Handle possible pending IPIs */
smp_handle_ext_call();
set_cpu_online(smp_processor_id(), false);
/* Disable pseudo page faults on this cpu. */
pfault_fini();
Expand Down

0 comments on commit d79c49b

Please sign in to comment.