From 485e24a7afeebb7f0ce933fd3be8c61472902c34 Mon Sep 17 00:00:00 2001 From: Richard Braun Date: Tue, 4 Jun 2013 20:43:53 +0200 Subject: x86/{cpu,tcb}: move scheduling interrupts handling Move scheduling interrupt functions from the tcb module to the cpu module. In addition, rename the related trap and functions to avoid mentioning "rescheduling", as it just makes descriptions more confusing. Instead, include the name of the module that makes use of this interrupt. --- arch/x86/machine/cpu.c | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'arch/x86/machine/cpu.c') diff --git a/arch/x86/machine/cpu.c b/arch/x86/machine/cpu.c index 2a500cb1..f07e6d1a 100644 --- a/arch/x86/machine/cpu.c +++ b/arch/x86/machine/cpu.c @@ -598,6 +598,16 @@ cpu_halt_intr(struct trap_frame *frame) cpu_halt(); } +void +cpu_thread_schedule_intr(struct trap_frame *frame) +{ + (void)frame; + + lapic_eoi(); + + /* Let the return from interrupt code invoke the scheduler */ +} + void cpu_llsync_reset_intr(struct trap_frame *frame) { -- cgit v1.2.3