Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 44177
b: refs/heads/master
c: 1083cfe
h: refs/heads/master
i:
  44175: a9d33bc
v: v3
  • Loading branch information
Scott Wood authored and Jeff Garzik committed Dec 11, 2006
1 parent 5382bdc commit 6a91ab6
Show file tree
Hide file tree
Showing 9 changed files with 25 additions and 29 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: 8d610dd52dd1da696e199e4b4545f33a2a5de5c6
refs/heads/master: 1083cfe11285816fb2e2e36aad097f1c3b6db915
10 changes: 5 additions & 5 deletions trunk/drivers/net/ucc_geth.c
Original file line number Diff line number Diff line change
Expand Up @@ -194,24 +194,24 @@ static void enqueue(struct list_head *node, struct list_head *lh)
{
unsigned long flags;

spin_lock_irqsave(ugeth_lock, flags);
spin_lock_irqsave(&ugeth_lock, flags);
list_add_tail(node, lh);
spin_unlock_irqrestore(ugeth_lock, flags);
spin_unlock_irqrestore(&ugeth_lock, flags);
}
#endif /* CONFIG_UGETH_FILTERING */

static struct list_head *dequeue(struct list_head *lh)
{
unsigned long flags;

spin_lock_irqsave(ugeth_lock, flags);
spin_lock_irqsave(&ugeth_lock, flags);
if (!list_empty(lh)) {
struct list_head *node = lh->next;
list_del(node);
spin_unlock_irqrestore(ugeth_lock, flags);
spin_unlock_irqrestore(&ugeth_lock, flags);
return node;
} else {
spin_unlock_irqrestore(ugeth_lock, flags);
spin_unlock_irqrestore(&ugeth_lock, flags);
return NULL;
}
}
Expand Down
12 changes: 2 additions & 10 deletions trunk/fs/proc/proc_misc.c
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,6 @@
#include <linux/vmalloc.h>
#include <linux/crash_dump.h>
#include <linux/pid_namespace.h>
#include <linux/compile.h>
#include <asm/uaccess.h>
#include <asm/pgtable.h>
#include <asm/io.h>
Expand Down Expand Up @@ -254,15 +253,8 @@ static int version_read_proc(char *page, char **start, off_t off,
{
int len;

/* FIXED STRING! Don't touch! */
len = snprintf(page, PAGE_SIZE,
"%s version %s"
" (" LINUX_COMPILE_BY "@" LINUX_COMPILE_HOST ")"
" (" LINUX_COMPILER ")"
" %s\n",
utsname()->sysname,
utsname()->release,
utsname()->version);
len = sprintf(page, linux_banner,
utsname()->release, utsname()->version);
return proc_calc_metrics(page, start, off, count, eof, len);
}

Expand Down
1 change: 0 additions & 1 deletion trunk/include/asm-generic/vmlinux.lds.h
Original file line number Diff line number Diff line change
Expand Up @@ -242,7 +242,6 @@
*(.initcall4s.init) \
*(.initcall5.init) \
*(.initcall5s.init) \
*(.initcallrootfs.init) \
*(.initcall6.init) \
*(.initcall6s.init) \
*(.initcall7.init) \
Expand Down
1 change: 0 additions & 1 deletion trunk/include/linux/init.h
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,6 @@ extern void setup_arch(char **);
#define subsys_initcall_sync(fn) __define_initcall("4s",fn,4s)
#define fs_initcall(fn) __define_initcall("5",fn,5)
#define fs_initcall_sync(fn) __define_initcall("5s",fn,5s)
#define rootfs_initcall(fn) __define_initcall("rootfs",fn,rootfs)
#define device_initcall(fn) __define_initcall("6",fn,6)
#define device_initcall_sync(fn) __define_initcall("6s",fn,6s)
#define late_initcall(fn) __define_initcall("7",fn,7)
Expand Down
2 changes: 2 additions & 0 deletions trunk/include/linux/kernel.h
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,8 @@
#include <asm/byteorder.h>
#include <asm/bug.h>

extern const char linux_banner[];

#define INT_MAX ((int)(~0U>>1))
#define INT_MIN (-INT_MAX - 1)
#define UINT_MAX (~0U)
Expand Down
6 changes: 2 additions & 4 deletions trunk/init/initramfs.c
Original file line number Diff line number Diff line change
Expand Up @@ -526,7 +526,7 @@ static void __init free_initrd(void)

#endif

static int __init populate_rootfs(void)
void __init populate_rootfs(void)
{
char *err = unpack_to_rootfs(__initramfs_start,
__initramfs_end - __initramfs_start, 0);
Expand All @@ -544,7 +544,7 @@ static int __init populate_rootfs(void)
unpack_to_rootfs((char *)initrd_start,
initrd_end - initrd_start, 0);
free_initrd();
return 0;
return;
}
printk("it isn't (%s); looks like an initrd\n", err);
fd = sys_open("/initrd.image", O_WRONLY|O_CREAT, 0700);
Expand All @@ -565,6 +565,4 @@ static int __init populate_rootfs(void)
#endif
}
#endif
return 0;
}
rootfs_initcall(populate_rootfs);
15 changes: 8 additions & 7 deletions trunk/init/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,7 @@ extern void pidmap_init(void);
extern void prio_tree_init(void);
extern void radix_tree_init(void);
extern void free_initmem(void);
extern void populate_rootfs(void);
extern void driver_init(void);
extern void prepare_namespace(void);
#ifdef CONFIG_ACPI
Expand Down Expand Up @@ -482,12 +483,6 @@ void __init __attribute__((weak)) smp_setup_processor_id(void)
{
}

static const char linux_banner[] =
"Linux version " UTS_RELEASE
" (" LINUX_COMPILE_BY "@" LINUX_COMPILE_HOST ")"
" (" LINUX_COMPILER ")"
" " UTS_VERSION "\n";

asmlinkage void __init start_kernel(void)
{
char * command_line;
Expand All @@ -514,7 +509,7 @@ asmlinkage void __init start_kernel(void)
boot_cpu_init();
page_address_init();
printk(KERN_NOTICE);
printk(linux_banner);
printk(linux_banner, UTS_RELEASE, UTS_VERSION);
setup_arch(&command_line);
unwind_setup();
setup_per_cpu_areas();
Expand Down Expand Up @@ -744,6 +739,12 @@ static int init(void * unused)

cpuset_init_smp();

/*
* Do this before initcalls, because some drivers want to access
* firmware files.
*/
populate_rootfs();

do_basic_setup();

/*
Expand Down
5 changes: 5 additions & 0 deletions trunk/init/version.c
Original file line number Diff line number Diff line change
Expand Up @@ -33,3 +33,8 @@ struct uts_namespace init_uts_ns = {
},
};
EXPORT_SYMBOL_GPL(init_uts_ns);

const char linux_banner[] =
"Linux version %s (" LINUX_COMPILE_BY "@"
LINUX_COMPILE_HOST ") (" LINUX_COMPILER ") %s\n";

0 comments on commit 6a91ab6

Please sign in to comment.