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/usb.c | |
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/usb.c')
-rw-r--r-- | firmware/usb.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/firmware/usb.c b/firmware/usb.c index a794e2ac8a..aada27dfd9 100644 --- a/firmware/usb.c +++ b/firmware/usb.c | |||
@@ -220,7 +220,7 @@ static inline void usb_slave_mode(bool on) | |||
220 | { | 220 | { |
221 | trigger_cpu_boost(); | 221 | trigger_cpu_boost(); |
222 | #ifdef HAVE_PRIORITY_SCHEDULING | 222 | #ifdef HAVE_PRIORITY_SCHEDULING |
223 | thread_set_priority(THREAD_ID_CURRENT, PRIORITY_REALTIME); | 223 | thread_set_priority(thread_self(), PRIORITY_REALTIME); |
224 | #endif | 224 | #endif |
225 | disk_unmount_all(); | 225 | disk_unmount_all(); |
226 | usb_attach(); | 226 | usb_attach(); |
@@ -229,7 +229,7 @@ static inline void usb_slave_mode(bool on) | |||
229 | { | 229 | { |
230 | usb_enable(false); | 230 | usb_enable(false); |
231 | #ifdef HAVE_PRIORITY_SCHEDULING | 231 | #ifdef HAVE_PRIORITY_SCHEDULING |
232 | thread_set_priority(THREAD_ID_CURRENT, PRIORITY_SYSTEM); | 232 | thread_set_priority(thread_self(), PRIORITY_SYSTEM); |
233 | #endif | 233 | #endif |
234 | /* Entered exclusive mode */ | 234 | /* Entered exclusive mode */ |
235 | rc = disk_mount_all(); | 235 | rc = disk_mount_all(); |