Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 145238
b: refs/heads/master
c: 93c3248
h: refs/heads/master
v: v3
  • Loading branch information
Linus Torvalds committed May 25, 2009
1 parent 576c10a commit e63ed17
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 11 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 32bdfac5462d777f35b00838893c4f87baf23efe
refs/heads/master: 93c32483808c5d82c9bd1eef2208854a6d1326db
3 changes: 1 addition & 2 deletions trunk/init/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -566,8 +566,7 @@ asmlinkage void __init start_kernel(void)
tick_init();
boot_cpu_init();
page_address_init();
printk(KERN_NOTICE);
printk(linux_banner);
printk(KERN_NOTICE "%s", linux_banner);
setup_arch(&command_line);
mm_init_owner(&init_mm, &init_task);
setup_command_line(command_line);
Expand Down
20 changes: 12 additions & 8 deletions trunk/kernel/async.c
Original file line number Diff line number Diff line change
Expand Up @@ -92,19 +92,23 @@ extern int initcall_debug;
static async_cookie_t __lowest_in_progress(struct list_head *running)
{
struct async_entry *entry;
async_cookie_t ret = next_cookie; /* begin with "infinity" value */

if (!list_empty(running)) {
entry = list_first_entry(running,
struct async_entry, list);
return entry->cookie;
} else if (!list_empty(&async_pending)) {
entry = list_first_entry(&async_pending,
struct async_entry, list);
return entry->cookie;
} else {
/* nothing in progress... next_cookie is "infinity" */
return next_cookie;
ret = entry->cookie;
}

if (!list_empty(&async_pending)) {
list_for_each_entry(entry, &async_pending, list)
if (entry->running == running) {
ret = entry->cookie;
break;
}
}

return ret;
}

static async_cookie_t lowest_in_progress(struct list_head *running)
Expand Down

0 comments on commit e63ed17

Please sign in to comment.