Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 72672
b: refs/heads/master
c: f32d26a
h: refs/heads/master
v: v3
  • Loading branch information
Bartlomiej Zolnierkiewicz committed Oct 26, 2007
1 parent ae5f383 commit 17d3fe8
Show file tree
Hide file tree
Showing 99 changed files with 475 additions and 542 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: ea45d15394c57cb214aef8e6d40976c128995d43
refs/heads/master: f32d26ae2649c17df742f8db48b438eba2c38400
4 changes: 2 additions & 2 deletions trunk/MAINTAINERS
Original file line number Diff line number Diff line change
Expand Up @@ -2129,8 +2129,8 @@ S: Maintained
JOURNALLING FLASH FILE SYSTEM V2 (JFFS2)
P: David Woodhouse
M: dwmw2@infradead.org
L: linux-mtd@lists.infradead.org
W: http://www.linux-mtd.infradead.org/doc/jffs2.html
L: jffs-dev@axis.com
W: http://sources.redhat.com/jffs2/
S: Maintained

JFS FILESYSTEM
Expand Down
7 changes: 2 additions & 5 deletions trunk/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -196,9 +196,6 @@ CROSS_COMPILE ?=
UTS_MACHINE := $(ARCH)
SRCARCH := $(ARCH)

# for i386 and x86_64 we use SRCARCH equal to x86
SRCARCH := $(if $(filter x86_64 i386,$(SRCARCH)),x86,$(SRCARCH))

KCONFIG_CONFIG ?= .config

# SHELL used by kbuild
Expand Down Expand Up @@ -421,7 +418,7 @@ ifeq ($(config-targets),1)
# Read arch specific Makefile to set KBUILD_DEFCONFIG as needed.
# KBUILD_DEFCONFIG may point out an alternative default configuration
# used for 'make defconfig'
include $(srctree)/arch/$(SRCARCH)/Makefile
include $(srctree)/arch/$(ARCH)/Makefile
export KBUILD_DEFCONFIG

config %config: scripts_basic outputmakefile FORCE
Expand Down Expand Up @@ -500,7 +497,7 @@ else
KBUILD_CFLAGS += -O2
endif

include $(srctree)/arch/$(SRCARCH)/Makefile
include $(srctree)/arch/$(ARCH)/Makefile

ifdef CONFIG_FRAME_POINTER
KBUILD_CFLAGS += -fno-omit-frame-pointer -fno-optimize-sibling-calls
Expand Down
3 changes: 1 addition & 2 deletions trunk/arch/frv/mb93090-mb00/pci-dma.c
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@
#include <linux/list.h>
#include <linux/pci.h>
#include <linux/highmem.h>
#include <linux/scatterlist.h>
#include <asm/io.h>

void *dma_alloc_coherent(struct device *hwdev, size_t size, dma_addr_t *dma_handle, gfp_t gfp)
Expand Down Expand Up @@ -87,7 +86,7 @@ int dma_map_sg(struct device *dev, struct scatterlist *sg, int nents,
dampr2 = __get_DAMPR(2);

for (i = 0; i < nents; i++) {
vaddr = kmap_atomic(sg_page(&sg[i]), __KM_CACHE);
vaddr = kmap_atomic(sg[i].page, __KM_CACHE);

frv_dcache_writeback((unsigned long) vaddr,
(unsigned long) vaddr + PAGE_SIZE);
Expand Down
1 change: 1 addition & 0 deletions trunk/arch/i386/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
boot
4 changes: 2 additions & 2 deletions trunk/arch/x86/Kconfig.i386 → trunk/arch/i386/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -287,7 +287,7 @@ config ES7000_CLUSTERED_APIC
default y
depends on SMP && X86_ES7000 && MPENTIUMIII

source "arch/x86/Kconfig.cpu"
source "arch/i386/Kconfig.cpu"

config HPET_TIMER
bool "HPET Timer Support"
Expand Down Expand Up @@ -1272,7 +1272,7 @@ source "fs/Kconfig"

source "kernel/Kconfig.instrumentation"

source "arch/x86/Kconfig.debug"
source "arch/i386/Kconfig.debug"

source "security/Kconfig"

Expand Down
File renamed without changes.
51 changes: 10 additions & 41 deletions trunk/arch/x86/Kconfig.debug → trunk/arch/i386/Kconfig.debug
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
menu "Kernel hacking"

config TRACE_IRQFLAGS_SUPPORT
def_bool y
bool
default y

source "lib/Kconfig.debug"

config EARLY_PRINTK
bool "Early printk" if EMBEDDED && DEBUG_KERNEL
default y
depends on X86_32
help
Write kernel log output directly into the VGA buffer or to a serial
port.
Expand Down Expand Up @@ -37,12 +37,10 @@ config DEBUG_STACK_USAGE

comment "Page alloc debug is incompatible with Software Suspend on i386"
depends on DEBUG_KERNEL && HIBERNATION
depends on X86_32

config DEBUG_PAGEALLOC
bool "Debug page memory allocations"
depends on DEBUG_KERNEL && !HIBERNATION && !HUGETLBFS
depends on X86_32
help
Unmap pages from the kernel linear mapping after free_pages().
This results in a large slowdown, but helps to find certain types
Expand All @@ -61,7 +59,6 @@ config DEBUG_RODATA
config 4KSTACKS
bool "Use 4Kb for kernel stacks instead of 8Kb"
depends on DEBUG_KERNEL
depends on X86_32
help
If you say Y here the kernel will use a 4Kb stacksize for the
kernel stack attached to each process/thread. This facilitates
Expand All @@ -70,50 +67,22 @@ config 4KSTACKS
will also use IRQ stacks to compensate for the reduced stackspace.

config X86_FIND_SMP_CONFIG
def_bool y
bool
depends on X86_LOCAL_APIC || X86_VOYAGER
depends on X86_32
default y

config X86_MPPARSE
def_bool y
bool
depends on X86_LOCAL_APIC && !X86_VISWS
depends on X86_32
default y

config DOUBLEFAULT
default y
bool "Enable doublefault exception handler" if EMBEDDED
depends on X86_32
help
This option allows trapping of rare doublefault exceptions that
would otherwise cause a system to silently reboot. Disabling this
option saves about 4k and might cause you much additional grey
hair.

config IOMMU_DEBUG
bool "Enable IOMMU debugging"
depends on IOMMU && DEBUG_KERNEL
depends on X86_64
help
Force the IOMMU to on even when you have less than 4GB of
memory and add debugging code. On overflow always panic. And
allow to enable IOMMU leak tracing. Can be disabled at boot
time with iommu=noforce. This will also enable scatter gather
list merging. Currently not recommended for production
code. When you use it make sure you have a big enough
IOMMU/AGP aperture. Most of the options enabled by this can
be set more finegrained using the iommu= command line
options. See Documentation/x86_64/boot-options.txt for more
details.

config IOMMU_LEAK
bool "IOMMU leak tracing"
depends on DEBUG_KERNEL
depends on IOMMU_DEBUG
help
Add a simple leak tracer to the IOMMU code. This is useful when you
are debugging a buggy device driver that leaks IOMMU mappings.

#config X86_REMOTE_DEBUG
# bool "kgdb debugging stub"
This option allows trapping of rare doublefault exceptions that
would otherwise cause a system to silently reboot. Disabling this
option saves about 4k and might cause you much additional grey
hair.

endmenu
7 changes: 5 additions & 2 deletions trunk/arch/x86/Makefile_32 → trunk/arch/i386/Makefile
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#
# i386 Makefile
# i386/Makefile
#
# This file is included by the global makefile so that you can add your own
# architecture-specific flags and dependencies. Remember to do have actions
Expand All @@ -17,6 +17,9 @@
# 20050320 Kianusch Sayah Karadji <kianusch@sk-tech.net>
# Added support for GEODE CPU

# Fill in SRCARCH
SRCARCH := x86

# BITS is used as extension for files which are available in a 32 bit
# and a 64 bit version to simplify shared Makefiles.
# e.g.: obj-y += foo_$(BITS).o
Expand All @@ -43,7 +46,7 @@ KBUILD_CFLAGS += -pipe -msoft-float -mregparm=3 -freg-struct-return
KBUILD_CFLAGS += $(call cc-option,-mpreferred-stack-boundary=2)

# CPU-specific tuning. Anything which can be shared with UML should go here.
include $(srctree)/arch/x86/Makefile_32.cpu
include $(srctree)/arch/i386/Makefile.cpu

# temporary until string.h is fixed
cflags-y += -ffreestanding
Expand Down
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion trunk/arch/sparc/kernel/pcic.c
Original file line number Diff line number Diff line change
Expand Up @@ -753,7 +753,7 @@ void __init pci_time_init(void)
local_irq_enable();
}

static inline unsigned long do_gettimeoffset(void)
static __inline__ unsigned long do_gettimeoffset(void)
{
/*
* We divide all by 100
Expand Down
7 changes: 4 additions & 3 deletions trunk/arch/sparc/kernel/process.c
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
/* linux/arch/sparc/kernel/process.c
/* $Id: process.c,v 1.161 2002/01/23 11:27:32 davem Exp $
* linux/arch/sparc/kernel/process.c
*
* Copyright (C) 1995 David S. Miller (davem@davemloft.net)
* Copyright (C) 1995 David S. Miller (davem@caip.rutgers.edu)
* Copyright (C) 1996 Eddie C. Dost (ecd@skynet.be)
*/

Expand Down Expand Up @@ -396,7 +397,7 @@ void flush_thread(void)
}
}

static inline struct sparc_stackf __user *
static __inline__ struct sparc_stackf __user *
clone_stackframe(struct sparc_stackf __user *dst,
struct sparc_stackf __user *src)
{
Expand Down
9 changes: 5 additions & 4 deletions trunk/arch/sparc/kernel/time.c
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
/* linux/arch/sparc/kernel/time.c
/* $Id: time.c,v 1.60 2002/01/23 14:33:55 davem Exp $
* linux/arch/sparc/kernel/time.c
*
* Copyright (C) 1995 David S. Miller (davem@davemloft.net)
* Copyright (C) 1995 David S. Miller (davem@caip.rutgers.edu)
* Copyright (C) 1996 Thomas K. Dyas (tdyas@eden.rutgers.edu)
*
* Chris Davis (cdavis@cois.on.ca) 03/27/1998
Expand Down Expand Up @@ -209,7 +210,7 @@ static void __devinit kick_start_clock(void)
}

/* Return nonzero if the clock chip battery is low. */
static inline int has_low_battery(void)
static __inline__ int has_low_battery(void)
{
struct mostek48t02 *regs = (struct mostek48t02 *)mstk48t02_regs;
unsigned char data1, data2;
Expand Down Expand Up @@ -251,7 +252,7 @@ static void __devinit mostek_set_system_time(void)
}

/* Probe for the real time clock chip on Sun4 */
static inline void sun4_clock_probe(void)
static __inline__ void sun4_clock_probe(void)
{
#ifdef CONFIG_SUN4
int temp;
Expand Down
5 changes: 3 additions & 2 deletions trunk/arch/sparc/mm/btfixup.c
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
/* btfixup.c: Boot time code fixup and relocator, so that
/* $Id: btfixup.c,v 1.10 2000/05/09 17:40:13 davem Exp $
* btfixup.c: Boot time code fixup and relocator, so that
* we can get rid of most indirect calls to achieve single
* image sun4c and srmmu kernel.
*
Expand Down Expand Up @@ -68,7 +69,7 @@ static void __init set_addr(unsigned int *addr, unsigned int q1, int fmangled, u
}
}
#else
static inline void set_addr(unsigned int *addr, unsigned int q1, int fmangled, unsigned int value)
static __inline__ void set_addr(unsigned int *addr, unsigned int q1, int fmangled, unsigned int value)
{
*addr = value;
}
Expand Down
2 changes: 1 addition & 1 deletion trunk/arch/sparc/mm/io-unit.c
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,7 @@ static void iounit_get_scsi_sgl(struct scatterlist *sg, int sz, struct sbus_bus
spin_lock_irqsave(&iounit->lock, flags);
while (sz != 0) {
--sz;
sg->dvma_address = iounit_get_area(iounit, (unsigned long) sg_virt(sg), sg->length);
sg->dvma_address = iounit_get_area(iounit, sg_virt(sg), sg->length);
sg->dvma_length = sg->length;
sg = sg_next(sg);
}
Expand Down
15 changes: 8 additions & 7 deletions trunk/arch/sparc/mm/sun4c.c
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
/* sun4c.c: Doing in software what should be done in hardware.
/* $Id: sun4c.c,v 1.212 2001/12/21 04:56:15 davem Exp $
* sun4c.c: Doing in software what should be done in hardware.
*
* Copyright (C) 1996 David S. Miller (davem@davemloft.net)
* Copyright (C) 1996 David S. Miller (davem@caip.rutgers.edu)
* Copyright (C) 1996 Eddie C. Dost (ecd@skynet.be)
* Copyright (C) 1996 Andrew Tridgell (Andrew.Tridgell@anu.edu.au)
* Copyright (C) 1997-2000 Anton Blanchard (anton@samba.org)
Expand Down Expand Up @@ -718,7 +719,7 @@ static void add_ring(struct sun4c_mmu_ring *ring,
ring->num_entries++;
}

static inline void add_lru(struct sun4c_mmu_entry *entry)
static __inline__ void add_lru(struct sun4c_mmu_entry *entry)
{
struct sun4c_mmu_ring *ring = &sun4c_ulru_ring;
struct sun4c_mmu_entry *head = &ring->ringhd;
Expand All @@ -745,7 +746,7 @@ static void add_ring_ordered(struct sun4c_mmu_ring *ring,
add_lru(entry);
}

static inline void remove_ring(struct sun4c_mmu_ring *ring,
static __inline__ void remove_ring(struct sun4c_mmu_ring *ring,
struct sun4c_mmu_entry *entry)
{
struct sun4c_mmu_entry *next = entry->next;
Expand Down Expand Up @@ -1835,7 +1836,7 @@ static unsigned long sun4c_pte_to_pgoff(pte_t pte)
}


static inline unsigned long sun4c_pmd_page_v(pmd_t pmd)
static __inline__ unsigned long sun4c_pmd_page_v(pmd_t pmd)
{
return (pmd_val(pmd) & PAGE_MASK);
}
Expand Down Expand Up @@ -1921,7 +1922,7 @@ static void sun4c_free_pgd_fast(pgd_t *pgd)
}


static inline pte_t *
static __inline__ pte_t *
sun4c_pte_alloc_one_fast(struct mm_struct *mm, unsigned long address)
{
unsigned long *ret;
Expand Down Expand Up @@ -1955,7 +1956,7 @@ static struct page *sun4c_pte_alloc_one(struct mm_struct *mm, unsigned long addr
return virt_to_page(pte);
}

static inline void sun4c_free_pte_fast(pte_t *pte)
static __inline__ void sun4c_free_pte_fast(pte_t *pte)
{
*(unsigned long *)pte = (unsigned long) pte_quicklist;
pte_quicklist = (unsigned long *) pte;
Expand Down
4 changes: 2 additions & 2 deletions trunk/arch/sparc64/kernel/binfmt_elf32.c
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/*
* binfmt_elf32.c: Support 32-bit Sparc ELF binaries on Ultra.
*
* Copyright (C) 1995, 1996, 1997, 1998 David S. Miller (davem@davemloft.net)
* Copyright (C) 1995, 1996, 1997, 1998 David S. Miller (davem@redhat.com)
* Copyright (C) 1995, 1996, 1997, 1998 Jakub Jelinek (jj@ultra.linux.cz)
*/

Expand Down Expand Up @@ -133,7 +133,7 @@ struct elf_prpsinfo32

#undef cputime_to_timeval
#define cputime_to_timeval cputime_to_compat_timeval
static inline void
static __inline__ void
cputime_to_compat_timeval(const cputime_t cputime, struct compat_timeval *value)
{
unsigned long jiffies = cputime_to_jiffies(cputime);
Expand Down
9 changes: 5 additions & 4 deletions trunk/arch/sparc64/kernel/central.c
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
/* central.c: Central FHC driver for Sunfire/Starfire/Wildfire.
/* $Id: central.c,v 1.15 2001/12/19 00:29:51 davem Exp $
* central.c: Central FHC driver for Sunfire/Starfire/Wildfire.
*
* Copyright (C) 1997, 1999 David S. Miller (davem@davemloft.net)
* Copyright (C) 1997, 1999 David S. Miller (davem@redhat.com)
*/

#include <linux/kernel.h>
Expand Down Expand Up @@ -384,7 +385,7 @@ void __init central_probe(void)
init_all_fhc_hw();
}

static inline void fhc_ledblink(struct linux_fhc *fhc, int on)
static __inline__ void fhc_ledblink(struct linux_fhc *fhc, int on)
{
u32 tmp;

Expand All @@ -401,7 +402,7 @@ static inline void fhc_ledblink(struct linux_fhc *fhc, int on)
upa_readl(fhc->fhc_regs.pregs + FHC_PREGS_CTRL);
}

static inline void central_ledblink(struct linux_central *central, int on)
static __inline__ void central_ledblink(struct linux_central *central, int on)
{
u8 tmp;

Expand Down
Loading

0 comments on commit 17d3fe8

Please sign in to comment.