Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 116078
b: refs/heads/master
c: 173a44d
h: refs/heads/master
v: v3
  • Loading branch information
Paul Mundt committed Sep 8, 2008
1 parent 3125903 commit 5540716
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 2 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: 04ec080dcaad7d3c6d0b40b599c8e63da618f784
refs/heads/master: 173a44dd1f406e9aa6fcf46c83b7c972d10ec930
1 change: 1 addition & 0 deletions trunk/arch/sh/include/asm/smp.h
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ extern int __cpu_logical_map[NR_CPUS];
#define SMP_MSG_FUNCTION_SINGLE 2
#define SMP_MSG_NR 3

void smp_message_recv(unsigned int msg);
void plat_smp_setup(void);
void plat_prepare_cpus(unsigned int max_cpus);
int plat_smp_processor_id(void);
Expand Down
20 changes: 19 additions & 1 deletion trunk/arch/sh/kernel/smp.c
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
*
* SMP support for the SuperH processors.
*
* Copyright (C) 2002 - 2007 Paul Mundt
* Copyright (C) 2002 - 2008 Paul Mundt
* Copyright (C) 2006 - 2007 Akio Idehara
*
* This file is subject to the terms and conditions of the GNU General Public
Expand Down Expand Up @@ -184,6 +184,24 @@ void arch_send_call_function_single_ipi(int cpu)
plat_send_ipi(cpu, SMP_MSG_FUNCTION_SINGLE);
}

void smp_message_recv(unsigned int msg)
{
switch (msg) {
case SMP_MSG_FUNCTION:
generic_smp_call_function_interrupt();
break;
case SMP_MSG_RESCHEDULE:
break;
case SMP_MSG_FUNCTION_SINGLE:
generic_smp_call_function_single_interrupt();
break;
default:
printk(KERN_WARNING "SMP %d: %s(): unknown IPI %d\n",
smp_processor_id(), __func__, msg);
break;
}
}

/* Not really SMP stuff ... */
int setup_profiling_timer(unsigned int multiplier)
{
Expand Down

0 comments on commit 5540716

Please sign in to comment.