aboutsummaryrefslogtreecommitdiffstats
path: root/arch/alpha
diff options
context:
space:
mode:
Diffstat (limited to 'arch/alpha')
-rw-r--r--arch/alpha/Kconfig.debug8
-rw-r--r--arch/alpha/kernel/osf_sys.c14
-rw-r--r--arch/alpha/kernel/process.c1
-rw-r--r--arch/alpha/kernel/setup.c9
-rw-r--r--arch/alpha/kernel/signal.c1
-rw-r--r--arch/alpha/kernel/smp.c1
-rw-r--r--arch/alpha/kernel/srmcons.c2
-rw-r--r--arch/alpha/mm/fault.c1
8 files changed, 13 insertions, 24 deletions
diff --git a/arch/alpha/Kconfig.debug b/arch/alpha/Kconfig.debug
index 36d0106c32eb..f45f28cc10da 100644
--- a/arch/alpha/Kconfig.debug
+++ b/arch/alpha/Kconfig.debug
@@ -16,14 +16,6 @@ config DEBUG_RWLOCK
16 too many attempts. If you suspect a rwlock problem or a kernel 16 too many attempts. If you suspect a rwlock problem or a kernel
17 hacker asks for this option then say Y. Otherwise say N. 17 hacker asks for this option then say Y. Otherwise say N.
18 18
19config DEBUG_SEMAPHORE
20 bool "Semaphore debugging"
21 depends on DEBUG_KERNEL
22 help
23 If you say Y here then semaphore processing will issue lots of
24 verbose debugging messages. If you suspect a semaphore problem or a
25 kernel hacker asks for this option then say Y. Otherwise say N.
26
27config ALPHA_LEGACY_START_ADDRESS 19config ALPHA_LEGACY_START_ADDRESS
28 bool "Legacy kernel start address" 20 bool "Legacy kernel start address"
29 depends on ALPHA_GENERIC 21 depends on ALPHA_GENERIC
diff --git a/arch/alpha/kernel/osf_sys.c b/arch/alpha/kernel/osf_sys.c
index ea405f5713ce..ce857158c1ea 100644
--- a/arch/alpha/kernel/osf_sys.c
+++ b/arch/alpha/kernel/osf_sys.c
@@ -953,15 +953,25 @@ osf_setitimer(int which, struct itimerval32 __user *in, struct itimerval32 __use
953asmlinkage int 953asmlinkage int
954osf_utimes(char __user *filename, struct timeval32 __user *tvs) 954osf_utimes(char __user *filename, struct timeval32 __user *tvs)
955{ 955{
956 struct timeval ktvs[2]; 956 struct timespec tv[2];
957 957
958 if (tvs) { 958 if (tvs) {
959 struct timeval ktvs[2];
959 if (get_tv32(&ktvs[0], &tvs[0]) || 960 if (get_tv32(&ktvs[0], &tvs[0]) ||
960 get_tv32(&ktvs[1], &tvs[1])) 961 get_tv32(&ktvs[1], &tvs[1]))
961 return -EFAULT; 962 return -EFAULT;
963
964 if (ktvs[0].tv_usec < 0 || ktvs[0].tv_usec >= 1000000 ||
965 ktvs[1].tv_usec < 0 || ktvs[1].tv_usec >= 1000000)
966 return -EINVAL;
967
968 tv[0].tv_sec = ktvs[0].tv_sec;
969 tv[0].tv_nsec = 1000 * ktvs[0].tv_usec;
970 tv[1].tv_sec = ktvs[1].tv_sec;
971 tv[1].tv_nsec = 1000 * ktvs[1].tv_usec;
962 } 972 }
963 973
964 return do_utimes(AT_FDCWD, filename, tvs ? ktvs : NULL); 974 return do_utimes(AT_FDCWD, filename, tvs ? tv : NULL, 0);
965} 975}
966 976
967#define MAX_SELECT_SECONDS \ 977#define MAX_SELECT_SECONDS \
diff --git a/arch/alpha/kernel/process.c b/arch/alpha/kernel/process.c
index c15186390693..92b61629fe3f 100644
--- a/arch/alpha/kernel/process.c
+++ b/arch/alpha/kernel/process.c
@@ -14,7 +14,6 @@
14#include <linux/kernel.h> 14#include <linux/kernel.h>
15#include <linux/mm.h> 15#include <linux/mm.h>
16#include <linux/smp.h> 16#include <linux/smp.h>
17#include <linux/smp_lock.h>
18#include <linux/stddef.h> 17#include <linux/stddef.h>
19#include <linux/unistd.h> 18#include <linux/unistd.h>
20#include <linux/ptrace.h> 19#include <linux/ptrace.h>
diff --git a/arch/alpha/kernel/setup.c b/arch/alpha/kernel/setup.c
index d352c2b05f1a..915f26345c45 100644
--- a/arch/alpha/kernel/setup.c
+++ b/arch/alpha/kernel/setup.c
@@ -744,15 +744,6 @@ setup_arch(char **cmdline_p)
744 paging_init(); 744 paging_init();
745} 745}
746 746
747void __init
748disable_early_printk(void)
749{
750 if (alpha_using_srm && srmcons_output) {
751 unregister_srm_console();
752 srmcons_output = 0;
753 }
754}
755
756static char sys_unknown[] = "Unknown"; 747static char sys_unknown[] = "Unknown";
757static char systype_names[][16] = { 748static char systype_names[][16] = {
758 "0", 749 "0",
diff --git a/arch/alpha/kernel/signal.c b/arch/alpha/kernel/signal.c
index 741da0945dc4..7f64aa767d5a 100644
--- a/arch/alpha/kernel/signal.c
+++ b/arch/alpha/kernel/signal.c
@@ -15,7 +15,6 @@
15#include <linux/unistd.h> 15#include <linux/unistd.h>
16#include <linux/mm.h> 16#include <linux/mm.h>
17#include <linux/smp.h> 17#include <linux/smp.h>
18#include <linux/smp_lock.h>
19#include <linux/stddef.h> 18#include <linux/stddef.h>
20#include <linux/tty.h> 19#include <linux/tty.h>
21#include <linux/binfmts.h> 20#include <linux/binfmts.h>
diff --git a/arch/alpha/kernel/smp.c b/arch/alpha/kernel/smp.c
index d1ec4f51df1a..80cfb758ee2b 100644
--- a/arch/alpha/kernel/smp.c
+++ b/arch/alpha/kernel/smp.c
@@ -18,7 +18,6 @@
18#include <linux/mm.h> 18#include <linux/mm.h>
19#include <linux/threads.h> 19#include <linux/threads.h>
20#include <linux/smp.h> 20#include <linux/smp.h>
21#include <linux/smp_lock.h>
22#include <linux/interrupt.h> 21#include <linux/interrupt.h>
23#include <linux/init.h> 22#include <linux/init.h>
24#include <linux/delay.h> 23#include <linux/delay.h>
diff --git a/arch/alpha/kernel/srmcons.c b/arch/alpha/kernel/srmcons.c
index 85a821aaceb4..930cedc8be24 100644
--- a/arch/alpha/kernel/srmcons.c
+++ b/arch/alpha/kernel/srmcons.c
@@ -300,7 +300,7 @@ static struct console srmcons = {
300 .write = srm_console_write, 300 .write = srm_console_write,
301 .device = srm_console_device, 301 .device = srm_console_device,
302 .setup = srm_console_setup, 302 .setup = srm_console_setup,
303 .flags = CON_PRINTBUFFER, 303 .flags = CON_PRINTBUFFER | CON_BOOT,
304 .index = -1, 304 .index = -1,
305}; 305};
306 306
diff --git a/arch/alpha/mm/fault.c b/arch/alpha/mm/fault.c
index 8aa9db834c11..f5862792a167 100644
--- a/arch/alpha/mm/fault.c
+++ b/arch/alpha/mm/fault.c
@@ -21,7 +21,6 @@
21#include <linux/ptrace.h> 21#include <linux/ptrace.h>
22#include <linux/mman.h> 22#include <linux/mman.h>
23#include <linux/smp.h> 23#include <linux/smp.h>
24#include <linux/smp_lock.h>
25#include <linux/interrupt.h> 24#include <linux/interrupt.h>
26#include <linux/module.h> 25#include <linux/module.h>
27 26