aboutsummaryrefslogtreecommitdiffstats
path: root/arch/alpha/kernel/setup.c
diff options
context:
space:
mode:
authorDmitry Torokhov <dtor_core@ameritech.net>2006-04-02 00:08:05 -0500
committerDmitry Torokhov <dtor_core@ameritech.net>2006-04-02 00:08:05 -0500
commit95d465fd750897ab32462a6702fbfe1b122cbbc0 (patch)
tree65c38b2f11c51bb6932e44dd6c92f15b0091abfe /arch/alpha/kernel/setup.c
parent642fde17dceceb56c7ba2762733ac688666ae657 (diff)
parent683aa4012f53b2ada0f430487e05d37b0d94e90a (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/kernel/setup.c')
-rw-r--r--arch/alpha/kernel/setup.c14
1 files changed, 4 insertions, 10 deletions
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
46extern struct notifier_block *panic_notifier_list; 47extern struct atomic_notifier_head panic_notifier_list;
47static int alpha_panic_event(struct notifier_block *, unsigned long, void *); 48static int alpha_panic_event(struct notifier_block *, unsigned long, void *);
48static struct notifier_block alpha_panic_block = { 49static 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
481void __init 474void __init
482setup_arch(char **cmdline_p) 475setup_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.