From 32a531b09bf05000048bb3e1cbc25556075e2334 Mon Sep 17 00:00:00 2001 From: Michael Sevakis Date: Sat, 19 Jan 2008 13:27:47 +0000 Subject: Do some simplification in switch_thread regarding interrupt enabling which simplifies kernel objects as well. Simply doing unconditional disable/enable should be fine in the firmware. Not sure about the case in the bootloader for all targets and so will evaluate but that should be fine too if everything is masked. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@16107 a1c6a512-1295-4272-9138-f99709370657 --- firmware/export/thread.h | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) (limited to 'firmware/export/thread.h') diff --git a/firmware/export/thread.h b/firmware/export/thread.h index 0b1500cd99..dd97ab1e83 100644 --- a/firmware/export/thread.h +++ b/firmware/export/thread.h @@ -279,12 +279,10 @@ struct thread_entry #define TBOP_UNLOCK_CORELOCK 0x04 #define TBOP_UNLOCK_THREAD 0x08 /* Unlock a thread's slot */ #define TBOP_UNLOCK_CURRENT 0x10 /* Unlock the current thread's slot */ -#define TBOP_IRQ_LEVEL 0x20 /* Set a new irq level */ -#define TBOP_SWITCH_CORE 0x40 /* Call the core switch preparation routine */ +#define TBOP_SWITCH_CORE 0x20 /* Call the core switch preparation routine */ struct thread_blk_ops { - int irq_level; /* new IRQ level to set */ #if CONFIG_CORELOCK != SW_CORELOCK union { @@ -330,9 +328,6 @@ struct core_entry #if NUM_CORES > 1 struct thread_blk_ops blk_ops; /* operations to perform when blocking a thread */ -#else - #define STAY_IRQ_LEVEL (-1) - int irq_level; /* sets the irq level to irq_level */ #endif /* NUM_CORES */ #ifdef HAVE_PRIORITY_SCHEDULING unsigned char highest_priority; -- cgit v1.2.3