diff options
author | Trond Myklebust <Trond.Myklebust@netapp.com> | 2007-02-13 01:43:25 -0500 |
---|---|---|
committer | Trond Myklebust <Trond.Myklebust@netapp.com> | 2007-02-13 01:43:25 -0500 |
commit | d9bc125caf592b7d081021f32ce5b717efdf70c8 (patch) | |
tree | 263b7066ba22ddce21db610c0300f6eaac6f2064 /arch/sparc | |
parent | 43d78ef2ba5bec26d0315859e8324bfc0be23766 (diff) | |
parent | ec2f9d1331f658433411c58077871e1eef4ee1b4 (diff) |
Merge branch 'master' of /home/trondmy/kernel/linux-2.6/
Conflicts:
net/sunrpc/auth_gss/gss_krb5_crypto.c
net/sunrpc/auth_gss/gss_spkm3_token.c
net/sunrpc/clnt.c
Merge with mainline and fix conflicts.
Diffstat (limited to 'arch/sparc')
-rw-r--r-- | arch/sparc/Kconfig | 4 | ||||
-rw-r--r-- | arch/sparc/kernel/Makefile | 4 | ||||
-rw-r--r-- | arch/sparc/kernel/apc.c | 2 | ||||
-rw-r--r-- | arch/sparc/kernel/setup.c | 2 | ||||
-rw-r--r-- | arch/sparc/kernel/sunos_ioctl.c | 1 | ||||
-rw-r--r-- | arch/sparc/kernel/sys_sunos.c | 10 | ||||
-rw-r--r-- | arch/sparc/kernel/time.c | 9 | ||||
-rw-r--r-- | arch/sparc/kernel/vmlinux.lds.S | 4 |
8 files changed, 20 insertions, 16 deletions
diff --git a/arch/sparc/Kconfig b/arch/sparc/Kconfig index d0dec1ea2eed..bd992c0048f0 100644 --- a/arch/sparc/Kconfig +++ b/arch/sparc/Kconfig | |||
@@ -13,6 +13,10 @@ config HIGHMEM | |||
13 | bool | 13 | bool |
14 | default y | 14 | default y |
15 | 15 | ||
16 | config ZONE_DMA | ||
17 | bool | ||
18 | default y | ||
19 | |||
16 | config GENERIC_ISA_DMA | 20 | config GENERIC_ISA_DMA |
17 | bool | 21 | bool |
18 | default y | 22 | default y |
diff --git a/arch/sparc/kernel/Makefile b/arch/sparc/kernel/Makefile index 6616ee05c313..e795f282dece 100644 --- a/arch/sparc/kernel/Makefile +++ b/arch/sparc/kernel/Makefile | |||
@@ -12,7 +12,9 @@ obj-y := entry.o wof.o wuf.o etrap.o rtrap.o traps.o $(IRQ_OBJS) \ | |||
12 | sys_sparc.o sunos_asm.o systbls.o \ | 12 | sys_sparc.o sunos_asm.o systbls.o \ |
13 | time.o windows.o cpu.o devices.o sclow.o \ | 13 | time.o windows.o cpu.o devices.o sclow.o \ |
14 | tadpole.o tick14.o ptrace.o sys_solaris.o \ | 14 | tadpole.o tick14.o ptrace.o sys_solaris.o \ |
15 | unaligned.o muldiv.o semaphore.o prom.o of_device.o | 15 | unaligned.o muldiv.o semaphore.o prom.o of_device.o devres.o |
16 | |||
17 | devres-y = ../../../kernel/irq/devres.o | ||
16 | 18 | ||
17 | obj-$(CONFIG_PCI) += pcic.o | 19 | obj-$(CONFIG_PCI) += pcic.o |
18 | obj-$(CONFIG_SUN4) += sun4setup.o | 20 | obj-$(CONFIG_SUN4) += sun4setup.o |
diff --git a/arch/sparc/kernel/apc.c b/arch/sparc/kernel/apc.c index 406dd94afb45..d06a405ca718 100644 --- a/arch/sparc/kernel/apc.c +++ b/arch/sparc/kernel/apc.c | |||
@@ -127,7 +127,7 @@ static int apc_ioctl(struct inode *inode, struct file *f, | |||
127 | return 0; | 127 | return 0; |
128 | } | 128 | } |
129 | 129 | ||
130 | static struct file_operations apc_fops = { | 130 | static const struct file_operations apc_fops = { |
131 | .ioctl = apc_ioctl, | 131 | .ioctl = apc_ioctl, |
132 | .open = apc_open, | 132 | .open = apc_open, |
133 | .release = apc_release, | 133 | .release = apc_release, |
diff --git a/arch/sparc/kernel/setup.c b/arch/sparc/kernel/setup.c index 383526ad94fc..eccd8e87f529 100644 --- a/arch/sparc/kernel/setup.c +++ b/arch/sparc/kernel/setup.c | |||
@@ -246,7 +246,7 @@ void __init setup_arch(char **cmdline_p) | |||
246 | 246 | ||
247 | /* Initialize PROM console and command line. */ | 247 | /* Initialize PROM console and command line. */ |
248 | *cmdline_p = prom_getbootargs(); | 248 | *cmdline_p = prom_getbootargs(); |
249 | strcpy(saved_command_line, *cmdline_p); | 249 | strcpy(boot_command_line, *cmdline_p); |
250 | 250 | ||
251 | /* Set sparc_cpu_model */ | 251 | /* Set sparc_cpu_model */ |
252 | sparc_cpu_model = sun_unknown; | 252 | sparc_cpu_model = sun_unknown; |
diff --git a/arch/sparc/kernel/sunos_ioctl.c b/arch/sparc/kernel/sunos_ioctl.c index a6ba3d26222c..32e8274e4357 100644 --- a/arch/sparc/kernel/sunos_ioctl.c +++ b/arch/sparc/kernel/sunos_ioctl.c | |||
@@ -11,6 +11,7 @@ | |||
11 | #include <linux/errno.h> | 11 | #include <linux/errno.h> |
12 | #include <linux/string.h> | 12 | #include <linux/string.h> |
13 | #include <linux/termios.h> | 13 | #include <linux/termios.h> |
14 | #include <linux/tty.h> | ||
14 | #include <linux/ioctl.h> | 15 | #include <linux/ioctl.h> |
15 | #include <linux/route.h> | 16 | #include <linux/route.h> |
16 | #include <linux/sockios.h> | 17 | #include <linux/sockios.h> |
diff --git a/arch/sparc/kernel/sys_sunos.c b/arch/sparc/kernel/sys_sunos.c index 0bf8c165fc92..da6606f0cffc 100644 --- a/arch/sparc/kernel/sys_sunos.c +++ b/arch/sparc/kernel/sys_sunos.c | |||
@@ -859,14 +859,16 @@ asmlinkage int sunos_wait4(pid_t pid, unsigned int __user *stat_addr, | |||
859 | return ret; | 859 | return ret; |
860 | } | 860 | } |
861 | 861 | ||
862 | extern int kill_pg(int, int, int); | ||
863 | asmlinkage int sunos_killpg(int pgrp, int sig) | 862 | asmlinkage int sunos_killpg(int pgrp, int sig) |
864 | { | 863 | { |
865 | int ret; | 864 | int ret; |
866 | 865 | ||
867 | lock_kernel(); | 866 | rcu_read_lock(); |
868 | ret = kill_pg(pgrp, sig, 0); | 867 | ret = -EINVAL; |
869 | unlock_kernel(); | 868 | if (pgrp > 0) |
869 | ret = kill_pgrp(find_pid(pgrp), sig, 0); | ||
870 | rcu_read_unlock(); | ||
871 | |||
870 | return ret; | 872 | return ret; |
871 | } | 873 | } |
872 | 874 | ||
diff --git a/arch/sparc/kernel/time.c b/arch/sparc/kernel/time.c index 2fcce000d877..9bb1240aaf8a 100644 --- a/arch/sparc/kernel/time.c +++ b/arch/sparc/kernel/time.c | |||
@@ -436,15 +436,6 @@ static inline unsigned long do_gettimeoffset(void) | |||
436 | return (*master_l10_counter >> 10) & 0x1fffff; | 436 | return (*master_l10_counter >> 10) & 0x1fffff; |
437 | } | 437 | } |
438 | 438 | ||
439 | /* | ||
440 | * Returns nanoseconds | ||
441 | * XXX This is a suboptimal implementation. | ||
442 | */ | ||
443 | unsigned long long sched_clock(void) | ||
444 | { | ||
445 | return (unsigned long long)jiffies * (1000000000 / HZ); | ||
446 | } | ||
447 | |||
448 | /* Ok, my cute asm atomicity trick doesn't work anymore. | 439 | /* Ok, my cute asm atomicity trick doesn't work anymore. |
449 | * There are just too many variables that need to be protected | 440 | * There are just too many variables that need to be protected |
450 | * now (both members of xtime, et al.) | 441 | * now (both members of xtime, et al.) |
diff --git a/arch/sparc/kernel/vmlinux.lds.S b/arch/sparc/kernel/vmlinux.lds.S index b73e6b9067ed..e5c24e0521de 100644 --- a/arch/sparc/kernel/vmlinux.lds.S +++ b/arch/sparc/kernel/vmlinux.lds.S | |||
@@ -57,10 +57,14 @@ SECTIONS | |||
57 | .con_initcall.init : { *(.con_initcall.init) } | 57 | .con_initcall.init : { *(.con_initcall.init) } |
58 | __con_initcall_end = .; | 58 | __con_initcall_end = .; |
59 | SECURITY_INIT | 59 | SECURITY_INIT |
60 | |||
61 | #ifdef CONFIG_BLK_DEV_INITRD | ||
60 | . = ALIGN(4096); | 62 | . = ALIGN(4096); |
61 | __initramfs_start = .; | 63 | __initramfs_start = .; |
62 | .init.ramfs : { *(.init.ramfs) } | 64 | .init.ramfs : { *(.init.ramfs) } |
63 | __initramfs_end = .; | 65 | __initramfs_end = .; |
66 | #endif | ||
67 | |||
64 | . = ALIGN(32); | 68 | . = ALIGN(32); |
65 | __per_cpu_start = .; | 69 | __per_cpu_start = .; |
66 | .data.percpu : { *(.data.percpu) } | 70 | .data.percpu : { *(.data.percpu) } |