aboutsummaryrefslogtreecommitdiffstats
path: root/xen/arch/x86/domain.c
diff options
context:
space:
mode:
authorJan Beulich <jbeulich@suse.com>2011-12-21 14:26:09 +0100
committerJan Beulich <jbeulich@suse.com>2011-12-21 14:26:09 +0100
commit68471b6a19c21353c8c849d3205af690e3cf7e38 (patch)
tree117790fab6be2197cdab175c14ac5517175735fc /xen/arch/x86/domain.c
parent2a117bba4b2be20c585a0b0987e1f70594b4dc7a (diff)
downloadxen-68471b6a19c21353c8c849d3205af690e3cf7e38.tar.gz
xen-68471b6a19c21353c8c849d3205af690e3cf7e38.tar.bz2
xen-68471b6a19c21353c8c849d3205af690e3cf7e38.zip
x86: reduce scope of some symbols used with reset_stack_and_jump()
By making the macro properly advertise the use of the input symbol to the compiler, it is no longer necessary for them to be global if they're defined and used in just one source file. Signed-off-by: Jan Beulich <jbeulich@suse.com> Acked-by: Keir Fraser <keir@xen.org>
Diffstat (limited to 'xen/arch/x86/domain.c')
-rw-r--r--xen/arch/x86/domain.c24
1 files changed, 12 insertions, 12 deletions
diff --git a/xen/arch/x86/domain.c b/xen/arch/x86/domain.c
index b8a64c39ec..532c0ec379 100644
--- a/xen/arch/x86/domain.c
+++ b/xen/arch/x86/domain.c
@@ -74,17 +74,6 @@ static void paravirt_ctxt_switch_to(struct vcpu *v);
static void vcpu_destroy_pagetables(struct vcpu *v);
-static void continue_idle_domain(struct vcpu *v)
-{
- reset_stack_and_jump(idle_loop);
-}
-
-static void continue_nonidle_domain(struct vcpu *v)
-{
- check_wakeup_from_wait();
- reset_stack_and_jump(ret_from_intr);
-}
-
static void default_idle(void)
{
local_irq_disable();
@@ -118,7 +107,7 @@ static void play_dead(void)
(*dead_idle)();
}
-void idle_loop(void)
+static void idle_loop(void)
{
for ( ; ; )
{
@@ -141,6 +130,17 @@ void startup_cpu_idle_loop(void)
reset_stack_and_jump(idle_loop);
}
+static void continue_idle_domain(struct vcpu *v)
+{
+ reset_stack_and_jump(idle_loop);
+}
+
+static void continue_nonidle_domain(struct vcpu *v)
+{
+ check_wakeup_from_wait();
+ reset_stack_and_jump(ret_from_intr);
+}
+
void dump_pageframe_info(struct domain *d)
{
struct page_info *page;