arm: shutdown, smp and smpboot

Dummy implementation of machine_* and smp_*

Signed-off-by: Stefano Stabellini <stefano.stabellini@eu.citrix.com>
Signed-off-by: Ian Campbell <ian.campbell@citrix.com>
Signed-off-by: Tim Deegan <Tim.Deegan@citrix.com>
Committed-by: Ian Campbell <ian.campbell@citrix.com>
This commit is contained in:
Stefano Stabellini committed 2012-02-09 11:33:30 +00:00
1 parent 94509b29c2
commit afc2273936
3 files changed
+102

No files matched your search

+23
View File
@@ -0,0 +1,23 @@
#include <xen/config.h>
#include <xen/lib.h>
void machine_halt(void)
{
/* TODO: halt */
while(1) ;
}
void machine_restart(unsigned int delay_millisecs)
{
/* TODO: restart */
printk("Cannot restart yet\n");
while(1);
}
/*
* Local variables:
* mode: C
* c-set-style: "BSD"
* c-basic-offset: 4
* indent-tabs-mode: nil
* End:
*/
+29
View File
@@ -0,0 +1,29 @@
#include <xen/config.h>
#include <asm/smp.h>
void smp_call_function(
void (*func) (void *info),
void *info,
int wait)
{
/* TODO: No SMP just now, does not include self so nothing to do.
cpumask_t allbutself = cpu_online_map;
cpu_clear(smp_processor_id(), allbutself);
on_selected_cpus(&allbutself, func, info, wait);
*/
}
void smp_send_event_check_mask(const cpumask_t *mask)
{
/* TODO: No SMP just now, does not include self so nothing to do.
send_IPI_mask(mask, EVENT_CHECK_VECTOR);
*/
}
/*
* Local variables:
* mode: C
* c-set-style: "BSD"
* c-basic-offset: 4
* indent-tabs-mode: nil
* End:
*/
+50
View File
@@ -0,0 +1,50 @@
/*
* xen/arch/arm/smpboot.c
*
* Dummy smpboot support
*
* Copyright (c) 2011 Citrix Systems.
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*/
#include <xen/cpumask.h>
#include <xen/smp.h>
#include <xen/init.h>
cpumask_t cpu_online_map;
EXPORT_SYMBOL(cpu_online_map);
cpumask_t cpu_present_map;
EXPORT_SYMBOL(cpu_online_map);
cpumask_t cpu_possible_map;
EXPORT_SYMBOL(cpu_possible_map);
void __init
smp_prepare_cpus (unsigned int max_cpus)
{
set_processor_id(0); /* needed early, for smp_processor_id() */
cpumask_clear(&cpu_online_map);
cpumask_clear(&cpu_present_map);
cpumask_clear(&cpu_possible_map);
cpumask_set_cpu(0, &cpu_online_map);
cpumask_set_cpu(0, &cpu_present_map);
cpumask_set_cpu(0, &cpu_possible_map);
return;
}
/*
* Local variables:
* mode: C
* c-set-style: "BSD"
* c-basic-offset: 4
* indent-tabs-mode: nil
* End:
*/
Reference in new issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.