Skip to content
Snippets Groups Projects
Commit 8b79f2ce authored by Wolfgang Denk's avatar Wolfgang Denk
Browse files

Merge branch 'master' of git://git.denx.de/u-boot-ubi

parents 8a452c2c bdc5f067
No related branches found
No related tags found
No related merge requests found
...@@ -696,8 +696,13 @@ static void schedule_ubi_work(struct ubi_device *ubi, struct ubi_work *wrk) ...@@ -696,8 +696,13 @@ static void schedule_ubi_work(struct ubi_device *ubi, struct ubi_work *wrk)
list_add_tail(&wrk->list, &ubi->works); list_add_tail(&wrk->list, &ubi->works);
ubi_assert(ubi->works_count >= 0); ubi_assert(ubi->works_count >= 0);
ubi->works_count += 1; ubi->works_count += 1;
if (ubi->thread_enabled)
wake_up_process(ubi->bgt_thread); /*
* U-Boot special: We have no bgt_thread in U-Boot!
* So just call do_work() here directly.
*/
do_work(ubi);
spin_unlock(&ubi->wl_lock); spin_unlock(&ubi->wl_lock);
} }
......
...@@ -123,7 +123,7 @@ typedef int wait_queue_head_t; ...@@ -123,7 +123,7 @@ typedef int wait_queue_head_t;
#define init_rwsem(...) do { } while (0) #define init_rwsem(...) do { } while (0)
#define down_read(...) do { } while (0) #define down_read(...) do { } while (0)
#define down_write(...) do { } while (0) #define down_write(...) do { } while (0)
#define down_write_trylock(...) 0 #define down_write_trylock(...) 1
#define up_read(...) do { } while (0) #define up_read(...) do { } while (0)
#define up_write(...) do { } while (0) #define up_write(...) do { } while (0)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment