Skip to content

Commit

Permalink
Import 2.3.15pre1
Browse files Browse the repository at this point in the history
  • Loading branch information
Linus Torvalds committed Nov 23, 2007
1 parent 652a5ce commit f91c340
Show file tree
Hide file tree
Showing 71 changed files with 375 additions and 362 deletions.
3 changes: 1 addition & 2 deletions Documentation/fb/00-INDEX
@@ -1,8 +1,7 @@
Index of files in Documentation/fb. If you think something about frame
buffer devices needs an entry here, needs correction or you've written one
please mail me.
Geert Uytterhoeven
<Geert.Uytterhoeven@cs.kuleuven.ac.be>
Geert Uytterhoeven <geert@linux-m68k.org>

00-INDEX
- this file
Expand Down
2 changes: 1 addition & 1 deletion Documentation/fb/framebuffer.txt
@@ -1,7 +1,7 @@
The Frame Buffer Device
-----------------------

Maintained by Geert Uytterhoeven (Geert.Uytterhoeven@cs.kuleuven.ac.be)
Maintained by Geert Uytterhoeven <geert@linux-m68k.org>
Last revised: November 7, 1998


Expand Down
2 changes: 1 addition & 1 deletion Documentation/fb/internals.txt
Expand Up @@ -2,7 +2,7 @@
This is a first start for some documentation about frame buffer device
internals.

Geert Uytterhoeven <Geert.Uytterhoeven@cs.kuleuven.ac.be>, 21 July 1998
Geert Uytterhoeven <geert@linux-m68k.org>, 21 July 1998

--------------------------------------------------------------------------------

Expand Down
2 changes: 1 addition & 1 deletion Documentation/serial-console.txt
Expand Up @@ -87,7 +87,7 @@ Replace the sample values as needed.

6. Thanks

Thanks to Geert Uytterhoeven <Geert.Uytterhoeven@cs.kuleuven.ac.be>
Thanks to Geert Uytterhoeven <geert@linux-m68k.org>
for porting the patches from 2.1.4x to 2.1.6x for taking care of
the integration of these patches into m68k, ppc and alpha.

Expand Down
39 changes: 20 additions & 19 deletions Documentation/smart-config.txt
@@ -1,5 +1,5 @@
Smart CONFIG_* Dependencies
Fri 2 Dec 1997
1 August 1999

Michael Chastain <mec@shout.net>
Werner Almesberger <almesber@lrc.di.epfl.ch>
Expand Down Expand Up @@ -44,22 +44,21 @@ Here is the solution:
It now generates these dependencies:

drivers/net/foo.c: \
include/config/foo_autofrob.h \
include/config/foo_model_two.h
include/config/foo/autofrob.h \
include/config/foo/model/two.h

So drivers/net/foo.c depends only on the CONFIG_* lines that
it actually uses.

A new program, split-include.c, runs at the end of make config (also
make oldconfig, make menuconfig, and make xconfig). split-include
reads include/linux/autoconf.h and updates the include/linux/*.h
directory, writing one file per option. It updates only the files
that changed.
A new program, split-include.c, runs at the beginning of
compilation (make bzImage or make zImage). split-include reads
include/linux/autoconf.h and updates the include/config/ tree,
writing one file per option. It updates only the files for options
that have changed.

mkdep.c also generates much better warning messages for missing
or unneeded <linux/config.h> lines. In fact, you can get these
messages without generating dependencies with the new top-level
target 'make checkconfig'.
mkdep.c no longer generates warning messages for missing or unneeded
<linux/config.h> lines. The new top-level target 'make checkconfig'
checks for these problems.

Flag Dependencies

Expand All @@ -68,12 +67,14 @@ Flag Dependencies
the compilation flags used to build it. The file foo.o has
its flags stored in .flags.foo.o.

Suppose the user changes the foo driver from resident to
modular, 'make' will notice that the foo.o was not compiled
with -DMODULE and will recompile foo.c.
Suppose the user changes the foo driver from resident to modular.
'make' will notice that the current foo.o was not compiled with
-DMODULE and will recompile foo.c.

All .a and .o files made from C source or with 'ld' or 'ar'
have flag dependencies. .S files do not have flag dependencies.
All .o files made from C source have flag dependencies. So do .o
files made with ld, and .a files made with ar. However, .o files
made from assembly source do not have flag dependencies (nobody
needs this yet, but it would be good to fix).

Per-source-file Flags

Expand All @@ -92,8 +93,8 @@ Credit
version of this patch.

Michael Chastain picked it up and continued development. He is
now the principal author and maintainer. Report bugs to him,
or to all three people together.
now the principal author and maintainer. Please report any bugs
to him.

Martin von Loewis wrote flag dependencies, with some modifications
by Michael Chastain.
Expand Down
4 changes: 2 additions & 2 deletions Makefile
@@ -1,6 +1,6 @@
VERSION = 2
PATCHLEVEL = 3
SUBLEVEL = 14
SUBLEVEL = 15
EXTRAVERSION =

ARCH := $(shell uname -m | sed -e s/i.86/i386/ -e s/sun4u/sparc64/ -e s/arm.*/arm/ -e s/sa110/arm/)
Expand Down Expand Up @@ -162,7 +162,7 @@ ifdef CONFIG_PPC
DRIVERS := $(DRIVERS) drivers/macintosh/macintosh.a
endif

ifdef CONFIG_PNP
ifeq ($(CONFIG_PNP),y)
DRIVERS := $(DRIVERS) drivers/pnp/pnp.a
endif

Expand Down
8 changes: 4 additions & 4 deletions arch/alpha/lib/io.c
Expand Up @@ -90,7 +90,7 @@ void ___raw_writeb(unsigned char b, unsigned long addr)
__writeb(b, addr);
}

void ___raw_writeb(unsigned short b, unsigned long addr)
void ___raw_writew(unsigned short b, unsigned long addr)
{
__writew(b, addr);
}
Expand Down Expand Up @@ -487,7 +487,7 @@ void _memcpy_toio(unsigned long to, const void * from, long count)
if (count >= 2 && (to & 1) == ((long)from & 1)) {
count -= 2;
do {
__raw_writeb(*(const u16 *)from, to);
__raw_writew(*(const u16 *)from, to);
count -= 2;
to += 2;
from += 2;
Expand Down Expand Up @@ -518,7 +518,7 @@ void _memset_c_io(unsigned long to, unsigned long c, long count)

/* Handle any initial odd halfword */
if (count >= 2 && (to & 2)) {
__raw_writeb(c, to);
__raw_writew(c, to);
to += 2;
count -= 2;
}
Expand Down Expand Up @@ -551,7 +551,7 @@ void _memset_c_io(unsigned long to, unsigned long c, long count)

/* The tail is half-word aligned if we have count >= 2 */
if (count >= 2) {
__raw_writeb(c, to);
__raw_writew(c, to);
to += 2;
count -= 2;
}
Expand Down
6 changes: 3 additions & 3 deletions arch/i386/boot/bootsect.S
Expand Up @@ -106,12 +106,12 @@ go: mov di,#0x4000-12 ! 0x4000 is arbitrary value >= length of
seg fs
lds si,(bx) ! ds:si is source

mov cl,#6 ! copy 12 bytes
mov cl,#3 ! copy 12 bytes
cld
push di

rep
movsw
movsd

pop di
pop ds
Expand All @@ -125,7 +125,7 @@ go: mov di,#0x4000-12 ! 0x4000 is arbitrary value >= length of

! load the setup-sectors directly after the bootblock.
! Note that 'es' is already set up.
! Also cx is 0 from rep movsw above.
! Also cx is 0 from rep movsd above.

load_setup:
xor ah,ah ! reset FDC
Expand Down
2 changes: 1 addition & 1 deletion arch/i386/boot/compressed/misc.c
Expand Up @@ -104,7 +104,7 @@ static long free_mem_end_ptr = 0x90000;
#define LOW_BUFFER_START 0x2000
#define LOW_BUFFER_END 0x90000
#define LOW_BUFFER_SIZE ( LOW_BUFFER_END - LOW_BUFFER_START )
#define HEAP_SIZE 0x2000
#define HEAP_SIZE 0x3000
static int high_loaded =0;
static uch *high_buffer_start /* = (uch *)(((ulg)&end) + HEAP_SIZE)*/;

Expand Down
10 changes: 5 additions & 5 deletions arch/i386/boot/setup.S
Expand Up @@ -188,9 +188,9 @@ bad_sig:
xor bh,bh
mov bl,[497] ! get setup sects from boot sector
sub bx,#4 ! LILO loads 4 sectors of setup
shl bx,#8 ! convert to words
shl bx,#7 ! convert to dwords (1sect=2^7 dwords)
mov cx,bx
shr bx,#3 ! convert to segment
shr bx,#2 ! convert to segment
add bx,#SYSSEG
seg cs
mov start_sys_seg,bx
Expand All @@ -203,7 +203,7 @@ bad_sig:
mov ax,#SYSSEG
mov ds,ax
rep
movsw
movsd

mov ax,cs ! aka #SETUPSEG
mov ds,ax
Expand Down Expand Up @@ -485,9 +485,9 @@ do_move:
add bx,#0x100
sub di,di
sub si,si
mov cx,#0x800
mov cx,#0x400
rep
movsw
movsd
cmp bx,bp ! we assume start_sys_seg > 0x200,
! so we will perhaps read one page more then
! needed, but never overwrite INITSEG because
Expand Down
1 change: 0 additions & 1 deletion arch/i386/kernel/i386_ksyms.c
Expand Up @@ -76,7 +76,6 @@ EXPORT_SYMBOL(strlen_user);
#ifdef __SMP__
EXPORT_SYMBOL(cpu_data);
EXPORT_SYMBOL(kernel_flag);
EXPORT_SYMBOL(smp_invalidate_needed);
EXPORT_SYMBOL(cpu_number_map);
EXPORT_SYMBOL(__cpu_logical_map);
EXPORT_SYMBOL(smp_num_cpus);
Expand Down
1 change: 0 additions & 1 deletion arch/i386/kernel/i8259.c
Expand Up @@ -10,7 +10,6 @@
#include <linux/malloc.h>
#include <linux/random.h>
#include <linux/smp.h>
#include <linux/tasks.h>
#include <linux/smp_lock.h>
#include <linux/init.h>

Expand Down
27 changes: 19 additions & 8 deletions arch/i386/kernel/irq.c
Expand Up @@ -149,7 +149,10 @@ atomic_t global_bh_lock;
static inline void check_smp_invalidate(int cpu)
{
if (test_bit(cpu, &smp_invalidate_needed)) {
struct mm_struct *mm = current->mm;
clear_bit(cpu, &smp_invalidate_needed);
if (mm)
atomic_set_mask(1 << cpu, &mm->cpu_vm_mask);
local_flush_tlb();
}
}
Expand Down Expand Up @@ -617,25 +620,33 @@ int request_irq(unsigned int irq,

void free_irq(unsigned int irq, void *dev_id)
{
struct irqaction * action, **p;
struct irqaction **p;
unsigned long flags;

if (irq >= NR_IRQS)
return;

spin_lock_irqsave(&irq_controller_lock,flags);
for (p = &irq_desc[irq].action; (action = *p) != NULL; p = &action->next) {
if (action->dev_id != dev_id)
continue;
p = &irq_desc[irq].action;
for (;;) {
struct irqaction * action = *p;
if (action) {
struct irqaction **pp = p;
p = &action->next;
if (action->dev_id != dev_id)
continue;

/* Found it - now remove it from the list of entries */
*p = action->next;
if (!irq_desc[irq].action) {
/* Found it - now remove it from the list of entries */
*pp = action->next;
if (irq_desc[irq].action)
break;
irq_desc[irq].status |= IRQ_DISABLED;
irq_desc[irq].handler->shutdown(irq);
break;
}
printk("Trying to free free IRQ%d\n",irq);
break;
}
printk("Trying to free free IRQ%d\n",irq);
spin_unlock_irqrestore(&irq_controller_lock,flags);
}

Expand Down
3 changes: 1 addition & 2 deletions arch/m68k/amiga/chipram.c
@@ -1,8 +1,7 @@
/*
** linux/amiga/chipram.c
**
** Modified 03-May-94 by Geert Uytterhoeven
** (Geert.Uytterhoeven@cs.kuleuven.ac.be)
** Modified 03-May-94 by Geert Uytterhoeven <geert@linux-m68k.org>
** - 64-bit aligned allocations for full AGA compatibility
*/

Expand Down
3 changes: 1 addition & 2 deletions arch/m68k/tools/amiga/dmesg.c
Expand Up @@ -3,8 +3,7 @@
* in Chip RAM with the kernel command
* line option `debug=mem'.
*
* © Copyright 1996 by Geert Uytterhoeven
* (Geert.Uytterhoeven@cs.kuleuven.ac.be)
* © Copyright 1996 by Geert Uytterhoeven <geert@linux-m68k.org>
*
*
* Usage:
Expand Down
2 changes: 1 addition & 1 deletion drivers/char/console.c
Expand Up @@ -33,7 +33,7 @@
* APM screenblank bug fixed Takashi Manabe <manabe@roy.dsl.tutics.tut.jp>
*
* Merge with the abstract console driver by Geert Uytterhoeven
* <Geert.Uytterhoeven@cs.kuleuven.ac.be>, Jan 1997.
* <geert@linux-m68k.org>, Jan 1997.
*
* Original m68k console driver modifications by
*
Expand Down
3 changes: 1 addition & 2 deletions drivers/net/a2065.c
@@ -1,8 +1,7 @@
/*
* Amiga Linux/68k A2065 Ethernet Driver
*
* (C) Copyright 1995 by Geert Uytterhoeven
* (Geert.Uytterhoeven@cs.kuleuven.ac.be)
* (C) Copyright 1995 by Geert Uytterhoeven <geert@linux-m68k.org>
*
* Fixes and tips by:
* - Janos Farkas (CHEXUM@sparta.banki.hu)
Expand Down
3 changes: 1 addition & 2 deletions drivers/net/a2065.h
@@ -1,8 +1,7 @@
/*
* Amiga Linux/68k A2065 Ethernet Driver
*
* (C) Copyright 1995 by Geert Uytterhoeven
* (Geert.Uytterhoeven@cs.kuleuven.ac.be)
* (C) Copyright 1995 by Geert Uytterhoeven <geert@linux-m68k.org>
*
* ---------------------------------------------------------------------------
*
Expand Down
3 changes: 1 addition & 2 deletions drivers/net/ariadne.c
@@ -1,8 +1,7 @@
/*
* Amiga Linux/m68k Ariadne Ethernet Driver
*
* © Copyright 1995 by Geert Uytterhoeven
* (Geert.Uytterhoeven@cs.kuleuven.ac.be)
* © Copyright 1995 by Geert Uytterhoeven (geert@linux-m68k.org)
* Peter De Schrijver
* (Peter.DeSchrijver@linux.cc.kuleuven.ac.be)
*
Expand Down
3 changes: 1 addition & 2 deletions drivers/net/ariadne.h
@@ -1,8 +1,7 @@
/*
* Amiga Linux/m68k Ariadne Ethernet Driver
*
* © Copyright 1995 by Geert Uytterhoeven
* (Geert.Uytterhoeven@cs.kuleuven.ac.be)
* © Copyright 1995 by Geert Uytterhoeven (geert@linux-m68k.org)
* Peter De Schrijver
* (Peter.DeSchrijver@linux.cc.kuleuven.ac.be)
*
Expand Down
3 changes: 1 addition & 2 deletions drivers/net/de4x5.c
Expand Up @@ -379,8 +379,7 @@
Fix bug in pci_probe() for 64 bit systems reported
by <belliott@accessone.com>.
0.533 9-Jan-98 Fix more 64 bit bugs reported by <jal@cs.brown.edu>.
0.534 24-Jan-98 Fix last (?) endian bug from
<Geert.Uytterhoeven@cs.kuleuven.ac.be>
0.534 24-Jan-98 Fix last (?) endian bug from <geert@linux-m68k.org>
0.535 21-Feb-98 Fix Ethernet Address PROM reset bug for DC21040.
0.536 21-Mar-98 Change pci_probe() to use the pci_dev structure.
**Incompatible with 2.0.x from here.**
Expand Down
2 changes: 1 addition & 1 deletion drivers/net/hydra.c
Expand Up @@ -3,7 +3,7 @@
/* also some code & lots of fixes by Timo Rossi (trossi@cc.jyu.fi) */

/* The code is mostly based on the linux/68k Ariadne driver */
/* copyrighted by Geert Uytterhoeven (Geert.Uytterhoeven@cs.kuleuven.ac.be) */
/* copyrighted by Geert Uytterhoeven (geert@linux-m68k.org) */
/* and Peter De Schrijver (Peter.DeSchrijver@linux.cc.kuleuven.ac.be) */

/* This file is subject to the terms and conditions of the GNU General */
Expand Down
2 changes: 1 addition & 1 deletion drivers/usb/cpia.c
Expand Up @@ -1083,7 +1083,7 @@ static int cpia_probe(struct usb_device *dev)
if (dev->descriptor.bNumConfigurations != 1)
return -1;

interface = &dev->config[0].altsetting[0].interface[0];
interface = &dev->config[0].interface[0].altsetting[0];

/* Is it a CPiA? */
if (dev->descriptor.idVendor != 0x0553)
Expand Down

0 comments on commit f91c340

Please sign in to comment.