Skip to contentSkip to conversation

O(1) scheduler: asm offset changed

PATCH New Robert Love 1 participant 1 message Jan 21, 2002

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 O(1) scheduler: asm offset changed

Ingo's O(1) scheduler moved the location of the processor entry in task_struct (and also renamed it cpu). The hard coded offsets in entry.S, however, were not updated.

This patch, against 2.5.3-pre2 + J2, sets the correct offset and renames processor to cpu.

Note that nothing actually uses these offsets :-) at the moment but code used to and may again. Most importantly, preempt-kernel does!

Thanks,

Robert Love

--- linux-2.5.3-pre2-ingo-J2/arch/i386/kernel/entry.S Sun Jan 20 18:50:45 2002
+++ linux/arch/i386/kernel/entry.S Sun Jan 20 18:50:48 2002@@ -77,7 +77,7 @@
exec_domain = 16
need_resched = 20
tsk_ptrace = 24
-processor = 52
+cpu = 32

ENOSYS = 38