diff options
author | Dmitry Torokhov <dtor_core@ameritech.net> | 2006-04-02 00:08:05 -0500 |
---|---|---|
committer | Dmitry Torokhov <dtor_core@ameritech.net> | 2006-04-02 00:08:05 -0500 |
commit | 95d465fd750897ab32462a6702fbfe1b122cbbc0 (patch) | |
tree | 65c38b2f11c51bb6932e44dd6c92f15b0091abfe /arch/alpha | |
parent | 642fde17dceceb56c7ba2762733ac688666ae657 (diff) | |
parent | 683aa4012f53b2ada0f430487e05d37b0d94e90a (diff) |
Manual merge with Linus.
Conflicts:
arch/powerpc/kernel/setup-common.c
drivers/input/keyboard/hil_kbd.c
drivers/input/mouse/hil_ptr.c
Diffstat (limited to 'arch/alpha')
-rw-r--r-- | arch/alpha/Kconfig | 8 | ||||
-rw-r--r-- | arch/alpha/kernel/alpha_ksyms.c | 2 | ||||
-rw-r--r-- | arch/alpha/kernel/core_marvel.c | 2 | ||||
-rw-r--r-- | arch/alpha/kernel/osf_sys.c | 1 | ||||
-rw-r--r-- | arch/alpha/kernel/setup.c | 14 | ||||
-rw-r--r-- | arch/alpha/kernel/time.c | 3 | ||||
-rw-r--r-- | arch/alpha/lib/ev6-memchr.S | 2 | ||||
-rw-r--r-- | arch/alpha/lib/fpreg.c | 8 | ||||
-rw-r--r-- | arch/alpha/mm/init.c | 2 | ||||
-rw-r--r-- | arch/alpha/mm/numa.c | 4 |
10 files changed, 22 insertions, 24 deletions
diff --git a/arch/alpha/Kconfig b/arch/alpha/Kconfig index eedf41bf7057..9bef61b30367 100644 --- a/arch/alpha/Kconfig +++ b/arch/alpha/Kconfig | |||
@@ -25,6 +25,10 @@ config RWSEM_XCHGADD_ALGORITHM | |||
25 | bool | 25 | bool |
26 | default y | 26 | default y |
27 | 27 | ||
28 | config GENERIC_FIND_NEXT_BIT | ||
29 | bool | ||
30 | default y | ||
31 | |||
28 | config GENERIC_CALIBRATE_DELAY | 32 | config GENERIC_CALIBRATE_DELAY |
29 | bool | 33 | bool |
30 | default y | 34 | default y |
@@ -447,6 +451,10 @@ config ALPHA_IRONGATE | |||
447 | depends on ALPHA_NAUTILUS | 451 | depends on ALPHA_NAUTILUS |
448 | default y | 452 | default y |
449 | 453 | ||
454 | config GENERIC_HWEIGHT | ||
455 | bool | ||
456 | default y if !ALPHA_EV6 && !ALPHA_EV67 | ||
457 | |||
450 | config ALPHA_AVANTI | 458 | config ALPHA_AVANTI |
451 | bool | 459 | bool |
452 | depends on ALPHA_XL || ALPHA_AVANTI_CH | 460 | depends on ALPHA_XL || ALPHA_AVANTI_CH |
diff --git a/arch/alpha/kernel/alpha_ksyms.c b/arch/alpha/kernel/alpha_ksyms.c index 1898ea79d0e2..9d6186d50245 100644 --- a/arch/alpha/kernel/alpha_ksyms.c +++ b/arch/alpha/kernel/alpha_ksyms.c | |||
@@ -216,8 +216,6 @@ EXPORT_SYMBOL(memcpy); | |||
216 | EXPORT_SYMBOL(memset); | 216 | EXPORT_SYMBOL(memset); |
217 | EXPORT_SYMBOL(memchr); | 217 | EXPORT_SYMBOL(memchr); |
218 | 218 | ||
219 | EXPORT_SYMBOL(get_wchan); | ||
220 | |||
221 | #ifdef CONFIG_ALPHA_IRONGATE | 219 | #ifdef CONFIG_ALPHA_IRONGATE |
222 | EXPORT_SYMBOL(irongate_ioremap); | 220 | EXPORT_SYMBOL(irongate_ioremap); |
223 | EXPORT_SYMBOL(irongate_iounmap); | 221 | EXPORT_SYMBOL(irongate_iounmap); |
diff --git a/arch/alpha/kernel/core_marvel.c b/arch/alpha/kernel/core_marvel.c index 44866cb26a80..7f6a98455e74 100644 --- a/arch/alpha/kernel/core_marvel.c +++ b/arch/alpha/kernel/core_marvel.c | |||
@@ -435,7 +435,7 @@ marvel_specify_io7(char *str) | |||
435 | str = pchar; | 435 | str = pchar; |
436 | } while(*str); | 436 | } while(*str); |
437 | 437 | ||
438 | return 0; | 438 | return 1; |
439 | } | 439 | } |
440 | __setup("io7=", marvel_specify_io7); | 440 | __setup("io7=", marvel_specify_io7); |
441 | 441 | ||
diff --git a/arch/alpha/kernel/osf_sys.c b/arch/alpha/kernel/osf_sys.c index 7fb14f42a125..31afe3d91ac6 100644 --- a/arch/alpha/kernel/osf_sys.c +++ b/arch/alpha/kernel/osf_sys.c | |||
@@ -821,7 +821,6 @@ osf_setsysinfo(unsigned long op, void __user *buffer, unsigned long nbytes, | |||
821 | affects all sorts of things, like timeval and itimerval. */ | 821 | affects all sorts of things, like timeval and itimerval. */ |
822 | 822 | ||
823 | extern struct timezone sys_tz; | 823 | extern struct timezone sys_tz; |
824 | extern int do_adjtimex(struct timex *); | ||
825 | 824 | ||
826 | struct timeval32 | 825 | struct timeval32 |
827 | { | 826 | { |
diff --git a/arch/alpha/kernel/setup.c b/arch/alpha/kernel/setup.c index fa3f1a354b3f..a15e18a00258 100644 --- a/arch/alpha/kernel/setup.c +++ b/arch/alpha/kernel/setup.c | |||
@@ -35,6 +35,7 @@ | |||
35 | #include <linux/root_dev.h> | 35 | #include <linux/root_dev.h> |
36 | #include <linux/initrd.h> | 36 | #include <linux/initrd.h> |
37 | #include <linux/eisa.h> | 37 | #include <linux/eisa.h> |
38 | #include <linux/pfn.h> | ||
38 | #ifdef CONFIG_MAGIC_SYSRQ | 39 | #ifdef CONFIG_MAGIC_SYSRQ |
39 | #include <linux/sysrq.h> | 40 | #include <linux/sysrq.h> |
40 | #include <linux/reboot.h> | 41 | #include <linux/reboot.h> |
@@ -43,7 +44,7 @@ | |||
43 | #include <asm/setup.h> | 44 | #include <asm/setup.h> |
44 | #include <asm/io.h> | 45 | #include <asm/io.h> |
45 | 46 | ||
46 | extern struct notifier_block *panic_notifier_list; | 47 | extern struct atomic_notifier_head panic_notifier_list; |
47 | static int alpha_panic_event(struct notifier_block *, unsigned long, void *); | 48 | static int alpha_panic_event(struct notifier_block *, unsigned long, void *); |
48 | static struct notifier_block alpha_panic_block = { | 49 | static struct notifier_block alpha_panic_block = { |
49 | alpha_panic_event, | 50 | alpha_panic_event, |
@@ -242,9 +243,6 @@ reserve_std_resources(void) | |||
242 | request_resource(io, standard_io_resources+i); | 243 | request_resource(io, standard_io_resources+i); |
243 | } | 244 | } |
244 | 245 | ||
245 | #define PFN_UP(x) (((x) + PAGE_SIZE-1) >> PAGE_SHIFT) | ||
246 | #define PFN_DOWN(x) ((x) >> PAGE_SHIFT) | ||
247 | #define PFN_PHYS(x) ((x) << PAGE_SHIFT) | ||
248 | #define PFN_MAX PFN_DOWN(0x80000000) | 246 | #define PFN_MAX PFN_DOWN(0x80000000) |
249 | #define for_each_mem_cluster(memdesc, cluster, i) \ | 247 | #define for_each_mem_cluster(memdesc, cluster, i) \ |
250 | for ((cluster) = (memdesc)->cluster, (i) = 0; \ | 248 | for ((cluster) = (memdesc)->cluster, (i) = 0; \ |
@@ -473,11 +471,6 @@ page_is_ram(unsigned long pfn) | |||
473 | return 0; | 471 | return 0; |
474 | } | 472 | } |
475 | 473 | ||
476 | #undef PFN_UP | ||
477 | #undef PFN_DOWN | ||
478 | #undef PFN_PHYS | ||
479 | #undef PFN_MAX | ||
480 | |||
481 | void __init | 474 | void __init |
482 | setup_arch(char **cmdline_p) | 475 | setup_arch(char **cmdline_p) |
483 | { | 476 | { |
@@ -508,7 +501,8 @@ setup_arch(char **cmdline_p) | |||
508 | } | 501 | } |
509 | 502 | ||
510 | /* Register a call for panic conditions. */ | 503 | /* Register a call for panic conditions. */ |
511 | notifier_chain_register(&panic_notifier_list, &alpha_panic_block); | 504 | atomic_notifier_chain_register(&panic_notifier_list, |
505 | &alpha_panic_block); | ||
512 | 506 | ||
513 | #ifdef CONFIG_ALPHA_GENERIC | 507 | #ifdef CONFIG_ALPHA_GENERIC |
514 | /* Assume that we've booted from SRM if we haven't booted from MILO. | 508 | /* Assume that we've booted from SRM if we haven't booted from MILO. |
diff --git a/arch/alpha/kernel/time.c b/arch/alpha/kernel/time.c index 6b2921be1909..3859749810b4 100644 --- a/arch/alpha/kernel/time.c +++ b/arch/alpha/kernel/time.c | |||
@@ -314,10 +314,11 @@ time_init(void) | |||
314 | if (!est_cycle_freq) | 314 | if (!est_cycle_freq) |
315 | est_cycle_freq = validate_cc_value(calibrate_cc_with_pit()); | 315 | est_cycle_freq = validate_cc_value(calibrate_cc_with_pit()); |
316 | 316 | ||
317 | cc1 = rpcc_after_update_in_progress(); | 317 | cc1 = rpcc(); |
318 | 318 | ||
319 | /* Calibrate CPU clock -- attempt #2. */ | 319 | /* Calibrate CPU clock -- attempt #2. */ |
320 | if (!est_cycle_freq) { | 320 | if (!est_cycle_freq) { |
321 | cc1 = rpcc_after_update_in_progress(); | ||
321 | cc2 = rpcc_after_update_in_progress(); | 322 | cc2 = rpcc_after_update_in_progress(); |
322 | est_cycle_freq = validate_cc_value(cc2 - cc1); | 323 | est_cycle_freq = validate_cc_value(cc2 - cc1); |
323 | cc1 = cc2; | 324 | cc1 = cc2; |
diff --git a/arch/alpha/lib/ev6-memchr.S b/arch/alpha/lib/ev6-memchr.S index a8e843dbcc23..1a5f71b9d8b1 100644 --- a/arch/alpha/lib/ev6-memchr.S +++ b/arch/alpha/lib/ev6-memchr.S | |||
@@ -84,7 +84,7 @@ $last_quad: | |||
84 | beq $2, $not_found # U : U L U L | 84 | beq $2, $not_found # U : U L U L |
85 | 85 | ||
86 | $found_it: | 86 | $found_it: |
87 | #if defined(__alpha_fix__) && defined(__alpha_cix__) | 87 | #ifdef CONFIG_ALPHA_EV67 |
88 | /* | 88 | /* |
89 | * Since we are guaranteed to have set one of the bits, we don't | 89 | * Since we are guaranteed to have set one of the bits, we don't |
90 | * have to worry about coming back with a 0x40 out of cttz... | 90 | * have to worry about coming back with a 0x40 out of cttz... |
diff --git a/arch/alpha/lib/fpreg.c b/arch/alpha/lib/fpreg.c index 97c4d9d7a4d5..05017ba34c3c 100644 --- a/arch/alpha/lib/fpreg.c +++ b/arch/alpha/lib/fpreg.c | |||
@@ -4,7 +4,7 @@ | |||
4 | * (C) Copyright 1998 Linus Torvalds | 4 | * (C) Copyright 1998 Linus Torvalds |
5 | */ | 5 | */ |
6 | 6 | ||
7 | #if defined(__alpha_cix__) || defined(__alpha_fix__) | 7 | #if defined(CONFIG_ALPHA_EV6) || defined(CONFIG_ALPHA_EV67) |
8 | #define STT(reg,val) asm volatile ("ftoit $f"#reg",%0" : "=r"(val)); | 8 | #define STT(reg,val) asm volatile ("ftoit $f"#reg",%0" : "=r"(val)); |
9 | #else | 9 | #else |
10 | #define STT(reg,val) asm volatile ("stt $f"#reg",%0" : "=m"(val)); | 10 | #define STT(reg,val) asm volatile ("stt $f"#reg",%0" : "=m"(val)); |
@@ -53,7 +53,7 @@ alpha_read_fp_reg (unsigned long reg) | |||
53 | return val; | 53 | return val; |
54 | } | 54 | } |
55 | 55 | ||
56 | #if defined(__alpha_cix__) || defined(__alpha_fix__) | 56 | #if defined(CONFIG_ALPHA_EV6) || defined(CONFIG_ALPHA_EV67) |
57 | #define LDT(reg,val) asm volatile ("itoft %0,$f"#reg : : "r"(val)); | 57 | #define LDT(reg,val) asm volatile ("itoft %0,$f"#reg : : "r"(val)); |
58 | #else | 58 | #else |
59 | #define LDT(reg,val) asm volatile ("ldt $f"#reg",%0" : : "m"(val)); | 59 | #define LDT(reg,val) asm volatile ("ldt $f"#reg",%0" : : "m"(val)); |
@@ -98,7 +98,7 @@ alpha_write_fp_reg (unsigned long reg, unsigned long val) | |||
98 | } | 98 | } |
99 | } | 99 | } |
100 | 100 | ||
101 | #if defined(__alpha_cix__) || defined(__alpha_fix__) | 101 | #if defined(CONFIG_ALPHA_EV6) || defined(CONFIG_ALPHA_EV67) |
102 | #define STS(reg,val) asm volatile ("ftois $f"#reg",%0" : "=r"(val)); | 102 | #define STS(reg,val) asm volatile ("ftois $f"#reg",%0" : "=r"(val)); |
103 | #else | 103 | #else |
104 | #define STS(reg,val) asm volatile ("sts $f"#reg",%0" : "=m"(val)); | 104 | #define STS(reg,val) asm volatile ("sts $f"#reg",%0" : "=m"(val)); |
@@ -147,7 +147,7 @@ alpha_read_fp_reg_s (unsigned long reg) | |||
147 | return val; | 147 | return val; |
148 | } | 148 | } |
149 | 149 | ||
150 | #if defined(__alpha_cix__) || defined(__alpha_fix__) | 150 | #if defined(CONFIG_ALPHA_EV6) || defined(CONFIG_ALPHA_EV67) |
151 | #define LDS(reg,val) asm volatile ("itofs %0,$f"#reg : : "r"(val)); | 151 | #define LDS(reg,val) asm volatile ("itofs %0,$f"#reg : : "r"(val)); |
152 | #else | 152 | #else |
153 | #define LDS(reg,val) asm volatile ("lds $f"#reg",%0" : : "m"(val)); | 153 | #define LDS(reg,val) asm volatile ("lds $f"#reg",%0" : : "m"(val)); |
diff --git a/arch/alpha/mm/init.c b/arch/alpha/mm/init.c index 486d7945583d..544ac5dc09eb 100644 --- a/arch/alpha/mm/init.c +++ b/arch/alpha/mm/init.c | |||
@@ -357,7 +357,7 @@ free_reserved_mem(void *start, void *end) | |||
357 | void *__start = start; | 357 | void *__start = start; |
358 | for (; __start < end; __start += PAGE_SIZE) { | 358 | for (; __start < end; __start += PAGE_SIZE) { |
359 | ClearPageReserved(virt_to_page(__start)); | 359 | ClearPageReserved(virt_to_page(__start)); |
360 | set_page_count(virt_to_page(__start), 1); | 360 | init_page_count(virt_to_page(__start)); |
361 | free_page((long)__start); | 361 | free_page((long)__start); |
362 | totalram_pages++; | 362 | totalram_pages++; |
363 | } | 363 | } |
diff --git a/arch/alpha/mm/numa.c b/arch/alpha/mm/numa.c index 6d5251254f68..bf6b65c81bef 100644 --- a/arch/alpha/mm/numa.c +++ b/arch/alpha/mm/numa.c | |||
@@ -13,6 +13,7 @@ | |||
13 | #include <linux/bootmem.h> | 13 | #include <linux/bootmem.h> |
14 | #include <linux/swap.h> | 14 | #include <linux/swap.h> |
15 | #include <linux/initrd.h> | 15 | #include <linux/initrd.h> |
16 | #include <linux/pfn.h> | ||
16 | 17 | ||
17 | #include <asm/hwrpb.h> | 18 | #include <asm/hwrpb.h> |
18 | #include <asm/pgalloc.h> | 19 | #include <asm/pgalloc.h> |
@@ -27,9 +28,6 @@ bootmem_data_t node_bdata[MAX_NUMNODES]; | |||
27 | #define DBGDCONT(args...) | 28 | #define DBGDCONT(args...) |
28 | #endif | 29 | #endif |
29 | 30 | ||
30 | #define PFN_UP(x) (((x) + PAGE_SIZE-1) >> PAGE_SHIFT) | ||
31 | #define PFN_DOWN(x) ((x) >> PAGE_SHIFT) | ||
32 | #define PFN_PHYS(x) ((x) << PAGE_SHIFT) | ||
33 | #define for_each_mem_cluster(memdesc, cluster, i) \ | 31 | #define for_each_mem_cluster(memdesc, cluster, i) \ |
34 | for ((cluster) = (memdesc)->cluster, (i) = 0; \ | 32 | for ((cluster) = (memdesc)->cluster, (i) = 0; \ |
35 | (i) < (memdesc)->numclusters; (i)++, (cluster)++) | 33 | (i) < (memdesc)->numclusters; (i)++, (cluster)++) |