x86, voyager: fix smp generic helper voyager breakage
Impact: build/boot fix for x86/Voyager
This change:
| commit 3d44223327
| Author: Jens Axboe <jens.axboe@oracle.com>
| Date: Thu Jun 26 11:21:34 2008 +0200
|
| Add generic helpers for arch IPI function calls
didn't wire up the voyager smp call function correctly, so do that
here. Also make CONFIG_USE_GENERIC_SMP_HELPERS a def_bool y again,
since we now use the generic helpers for every x86 architecture.
Signed-off-by: James Bottomley <James.Bottomley@HansenPartnership.com>
Cc: Jens Axboe <Jens.Axboe@oracle.com>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
This commit is contained in:
parent
3044646148
commit
6cd10f8db3
@ -167,9 +167,12 @@ config GENERIC_PENDING_IRQ
|
|||||||
config X86_SMP
|
config X86_SMP
|
||||||
bool
|
bool
|
||||||
depends on SMP && ((X86_32 && !X86_VOYAGER) || X86_64)
|
depends on SMP && ((X86_32 && !X86_VOYAGER) || X86_64)
|
||||||
select USE_GENERIC_SMP_HELPERS
|
|
||||||
default y
|
default y
|
||||||
|
|
||||||
|
config USE_GENERIC_SMP_HELPERS
|
||||||
|
def_bool y
|
||||||
|
depends on SMP
|
||||||
|
|
||||||
config X86_32_SMP
|
config X86_32_SMP
|
||||||
def_bool y
|
def_bool y
|
||||||
depends on X86_32 && SMP
|
depends on X86_32 && SMP
|
||||||
|
@ -7,6 +7,7 @@
|
|||||||
* This file provides all the same external entries as smp.c but uses
|
* This file provides all the same external entries as smp.c but uses
|
||||||
* the voyager hal to provide the functionality
|
* the voyager hal to provide the functionality
|
||||||
*/
|
*/
|
||||||
|
#include <linux/cpu.h>
|
||||||
#include <linux/module.h>
|
#include <linux/module.h>
|
||||||
#include <linux/mm.h>
|
#include <linux/mm.h>
|
||||||
#include <linux/kernel_stat.h>
|
#include <linux/kernel_stat.h>
|
||||||
@ -1790,6 +1791,17 @@ void __init smp_setup_processor_id(void)
|
|||||||
x86_write_percpu(cpu_number, hard_smp_processor_id());
|
x86_write_percpu(cpu_number, hard_smp_processor_id());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
static void voyager_send_call_func(cpumask_t callmask)
|
||||||
|
{
|
||||||
|
__u32 mask = cpus_addr(callmask)[0] & ~(1 << smp_processor_id());
|
||||||
|
send_CPI(mask, VIC_CALL_FUNCTION_CPI);
|
||||||
|
}
|
||||||
|
|
||||||
|
static void voyager_send_call_func_single(int cpu)
|
||||||
|
{
|
||||||
|
send_CPI(1 << cpu, VIC_CALL_FUNCTION_SINGLE_CPI);
|
||||||
|
}
|
||||||
|
|
||||||
struct smp_ops smp_ops = {
|
struct smp_ops smp_ops = {
|
||||||
.smp_prepare_boot_cpu = voyager_smp_prepare_boot_cpu,
|
.smp_prepare_boot_cpu = voyager_smp_prepare_boot_cpu,
|
||||||
.smp_prepare_cpus = voyager_smp_prepare_cpus,
|
.smp_prepare_cpus = voyager_smp_prepare_cpus,
|
||||||
@ -1799,6 +1811,6 @@ struct smp_ops smp_ops = {
|
|||||||
.smp_send_stop = voyager_smp_send_stop,
|
.smp_send_stop = voyager_smp_send_stop,
|
||||||
.smp_send_reschedule = voyager_smp_send_reschedule,
|
.smp_send_reschedule = voyager_smp_send_reschedule,
|
||||||
|
|
||||||
.send_call_func_ipi = native_send_call_func_ipi,
|
.send_call_func_ipi = voyager_send_call_func,
|
||||||
.send_call_func_single_ipi = native_send_call_func_single_ipi,
|
.send_call_func_single_ipi = voyager_send_call_func_single,
|
||||||
};
|
};
|
||||||
|
Loading…
Reference in New Issue
Block a user