]> git.neil.brown.name Git - history.git/commitdiff
[PATCH] alpha: misc fixes [9/10]
authorIvan Kokshaysky <ink@jurassic.park.msu.ru>
Sat, 10 Aug 2002 09:03:21 +0000 (02:03 -0700)
committerLinus Torvalds <torvalds@home.transmeta.com>
Sat, 10 Aug 2002 09:03:21 +0000 (02:03 -0700)
Set of small fixes:
- pcibios_init() must be int;
- fls() - ctlz on ev67, generic on others. This was required for
  something several kernel releases back, now it seems to be unused.
  Anyway, it shouldn't hurt, so included here.
- missing #includes, missing #if RTC_IRQ in drivers/char/rtc.c;
- define USER_HZ;
From Jeff Wiedemeier:
- rename alpha-specific config section 'General setup' to 'System setup'
  to avoid confusion with generic 'General setup';
- fix the 'bootpfile' build.

arch/alpha/boot/Makefile
arch/alpha/config.in
arch/alpha/kernel/pci.c
arch/alpha/kernel/signal.c
drivers/char/rtc.c
include/asm-alpha/bitops.h
include/asm-alpha/param.h
include/asm-alpha/pgalloc.h

index 93fbd33e4994411355685f184a87c4b7f0ba1bf8..c620ea21009ff34ea01d3828122d669cc2a9b147 100644 (file)
@@ -20,6 +20,7 @@ BPOBJECTS = head.o bootp.o
 TARGETS = vmlinux.gz tools/objstrip # also needed by aboot & milo
 VMLINUX = $(TOPDIR)/vmlinux
 OBJSTRIP = tools/objstrip
+LIBS := $(patsubst lib/%,$(TOPDIR)/lib/%,$(LIBS))
 
 all:   $(TARGETS)
        @echo Ready to install kernel in $(shell pwd)/vmlinux.gz
index 6b6d24bcafb40b832a50c54c219142d6c08c5fec..7b98848f723fe65cf4e87bd0d69b7fad0582512a 100644 (file)
@@ -12,7 +12,7 @@ define_bool CONFIG_GENERIC_ISA_DMA y
 source init/Config.in
 
 mainmenu_option next_comment
-comment 'General setup'
+comment 'System setup'
 
 choice 'Alpha system type' \
        "Generic                CONFIG_ALPHA_GENERIC            \
index 9626e7e43fb6b9c5de3794a0bb8826efc196b515..c6cda4e39daeb1514edaeab9c87371fbc63593c8 100644 (file)
@@ -190,12 +190,12 @@ pcibios_align_resource(void *data, struct resource *res,
 #undef MB
 #undef GB
 
-static void __init
+static int __init
 pcibios_init(void)
 {
-       if (!alpha_mv.init_pci)
-               return;
-       alpha_mv.init_pci();
+       if (alpha_mv.init_pci)
+               alpha_mv.init_pci();
+       return 0;
 }
 
 subsys_initcall(pcibios_init);
index 839dffd2e0777085d009d5e0de88fd6de196c11d..4a72684c8f482dc10d79d80a2ca2dcfefa6d0c90 100644 (file)
@@ -18,6 +18,7 @@
 #include <linux/smp_lock.h>
 #include <linux/stddef.h>
 #include <linux/tty.h>
+#include <linux/binfmts.h>
 
 #include <asm/bitops.h>
 #include <asm/uaccess.h>
index b24b718428f218661fc89c73d157b204feeeb8d4..152185789a114d6954334465b066159e00c52833 100644 (file)
@@ -870,7 +870,9 @@ no_irq:
 
        if (misc_register(&rtc_dev))
                {
+#if RTC_IRQ
                free_irq(RTC_IRQ, NULL);
+#endif
                release_region(RTC_PORT(0), RTC_IO_EXTENT);
                return -ENODEV;
                }
index d76bcde410da3e3ba03ace9dd02a9891b7fe6d3e..1e1e49eccaa71f50894de7f435f1e74e4fbfba16 100644 (file)
@@ -315,6 +315,20 @@ static inline int ffs(int word)
        return word ? result+1 : 0;
 }
 
+/*
+ * fls: find last bit set.
+ */
+#if defined(__alpha_cix__) && defined(__alpha_fix__)
+static inline int fls(int word)
+{
+       long result;
+       __asm__("ctlz %1,%0" : "=r"(result) : "r"(word & 0xffffffff));
+       return 64 - result;
+}
+#else
+#define fls    generic_fls
+#endif
+
 /* Compute powers of two for the given integer.  */
 static inline int floor_log2(unsigned long word)
 {
index af39a19f1c775b5a27168e820c38e1c59fca1c17..c9d5f9156489c3c4f382e1b0fd5071dc06f26947 100644 (file)
@@ -15,6 +15,8 @@
 # endif
 #endif
 
+#define USER_HZ                HZ
+
 #define EXEC_PAGESIZE  8192
 
 #ifndef NGROUPS
index 254a1f5a166e9503e59dea6bec51d4cbd64c327d..6feaa69c0893691d8fdbd5eea29aa78031b35d8c 100644 (file)
@@ -2,6 +2,7 @@
 #define _ALPHA_PGALLOC_H
 
 #include <linux/config.h>
+#include <linux/mm.h>
 
 /*      
  * Allocate and free page tables. The xxx_kernel() versions are