From 3751fa176627ff84c526198551fa19ba849fa1f9 Mon Sep 17 00:00:00 2001 From: YOSHIDA Masanori Date: Wed, 25 Jun 2014 17:25:47 +0900 Subject: [PATCH] add some functions related to migration into kernel/process.h ... and also add include guard to arch/x86/kernel/include/signal.h --- arch/x86/kernel/cpu.c | 1 + arch/x86/kernel/include/signal.h | 5 +++++ kernel/include/process.h | 3 +++ 3 files changed, 9 insertions(+) diff --git a/arch/x86/kernel/cpu.c b/arch/x86/kernel/cpu.c index cd15aae3..7b289961 100644 --- a/arch/x86/kernel/cpu.c +++ b/arch/x86/kernel/cpu.c @@ -21,6 +21,7 @@ #include #include #include +#include #define LAPIC_ID 0x020 #define LAPIC_TIMER 0x320 diff --git a/arch/x86/kernel/include/signal.h b/arch/x86/kernel/include/signal.h index 23735056..33820ce9 100644 --- a/arch/x86/kernel/include/signal.h +++ b/arch/x86/kernel/include/signal.h @@ -11,6 +11,9 @@ * 2012/02/11 bgerofi what kind of new features have been added */ +#ifndef __HEADER_X86_COMMON_SIGNAL_H +#define __HEADER_X86_COMMON_SIGNAL_H + #define _NSIG 64 #define _NSIG_BPW 64 #define _NSIG_WORDS (_NSIG / _NSIG_BPW) @@ -149,3 +152,5 @@ typedef struct siginfo { #define SIGSYS 31 #define SIGUNUSED 31 #define SIGRTMIN 32 + +#endif /*__HEADER_X86_COMMON_SIGNAL_H*/ diff --git a/kernel/include/process.h b/kernel/include/process.h index 2b7d6bac..5072e196 100644 --- a/kernel/include/process.h +++ b/kernel/include/process.h @@ -261,4 +261,7 @@ void runq_add_proc(struct process *proc, int cpu_id); void runq_del_proc(struct process *proc, int cpu_id); int sched_wakeup_process(struct process *proc, int valid_states); +void sched_request_migrate(int cpu_id, struct process *proc); +void check_need_resched(void); + #endif