diff options
author | Thomas Martitz <kugel@rockbox.org> | 2011-03-05 17:48:06 +0000 |
---|---|---|
committer | Thomas Martitz <kugel@rockbox.org> | 2011-03-05 17:48:06 +0000 |
commit | cc889e9d608e6b07b78541849b7e63b6fb3f6058 (patch) | |
tree | ea01a47602b68561d294f705e8ab7669fb00ae9a /firmware/drivers | |
parent | 0b0f99b18ebe6305c9cab12bf8b36d154fc9c87f (diff) | |
download | rockbox-cc889e9d608e6b07b78541849b7e63b6fb3f6058.tar.gz rockbox-cc889e9d608e6b07b78541849b7e63b6fb3f6058.zip |
Change the thread api a bit.
* Remove THREAD_ID_CURRENT macro in favor of a thread_self() function, this allows thread functions to be simpler.
* thread_self_entry() shortcut for kernel.c.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@29521 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'firmware/drivers')
-rw-r--r-- | firmware/drivers/ata.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/firmware/drivers/ata.c b/firmware/drivers/ata.c index a16a6cc15e..baef6691d4 100644 --- a/firmware/drivers/ata.c +++ b/firmware/drivers/ata.c | |||
@@ -99,8 +99,7 @@ static void ata_lock_init(struct ata_lock *l) | |||
99 | 99 | ||
100 | static void ata_lock_lock(struct ata_lock *l) | 100 | static void ata_lock_lock(struct ata_lock *l) |
101 | { | 101 | { |
102 | struct thread_entry * const current = | 102 | struct thread_entry * const current = thread_self_entry(); |
103 | thread_id_entry(THREAD_ID_CURRENT); | ||
104 | 103 | ||
105 | if (current == l->thread) | 104 | if (current == l->thread) |
106 | { | 105 | { |