Browse Source

Merge branch 'master' of git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux-2.6 into s3c-moves2

Ben Dooks 16 years ago
parent
commit
e856359685
100 changed files with 309 additions and 466 deletions
  1. 2 0
      .mailmap
  2. 2 2
      Documentation/00-INDEX
  3. 2 2
      Documentation/DocBook/Makefile
  4. 1 1
      Documentation/DocBook/deviceiobook.tmpl
  5. 1 1
      Documentation/DocBook/mcabook.tmpl
  6. 1 1
      Documentation/DocBook/wanbook.tmpl
  7. 1 1
      Documentation/DocBook/z8530book.tmpl
  8. 1 1
      Documentation/ManagementStyle
  9. 1 0
      Documentation/accounting/.gitignore
  10. 0 13
      Documentation/arm/empeg/README
  11. 0 49
      Documentation/arm/empeg/ir.txt
  12. 0 11
      Documentation/arm/empeg/mkdevs
  13. 1 0
      Documentation/auxdisplay/.gitignore
  14. 1 0
      Documentation/connector/.gitignore
  15. 7 5
      Documentation/filesystems/Locking
  16. 5 34
      Documentation/filesystems/vfs.txt
  17. 3 0
      Documentation/ftrace.txt
  18. 1 1
      Documentation/i2c/busses/i2c-sis96x
  19. 1 0
      Documentation/ia64/.gitignore
  20. 1 1
      Documentation/isdn/CREDITS
  21. 7 7
      Documentation/ja_JP/HOWTO
  22. 6 6
      Documentation/kernel-parameters.txt
  23. 1 1
      Documentation/lguest/Makefile
  24. 2 2
      Documentation/lguest/lguest.c
  25. 1 0
      Documentation/networking/.gitignore
  26. 1 1
      Documentation/networking/dmfe.txt
  27. 1 0
      Documentation/pcmcia/.gitignore
  28. 0 2
      Documentation/scheduler/00-INDEX
  29. 1 1
      Documentation/scsi/aacraid.txt
  30. 1 3
      Documentation/sh/new-machine.txt
  31. 2 0
      Documentation/spi/.gitignore
  32. 1 0
      Documentation/stable_kernel_rules.txt
  33. 17 7
      Documentation/sysctl/kernel.txt
  34. 1 0
      Documentation/video4linux/.gitignore
  35. 1 1
      Documentation/video4linux/bttv/CONTRIBUTORS
  36. 1 0
      Documentation/vm/.gitignore
  37. 2 0
      Documentation/watchdog/src/.gitignore
  38. 2 2
      Documentation/x86/x86_64/boot-options.txt
  39. 1 1
      Documentation/x86/x86_64/fake-numa-for-cpusets
  40. 27 10
      MAINTAINERS
  41. 8 2
      Makefile
  42. 14 5
      arch/arm/common/sharpsl_pm.c
  43. 1 0
      arch/arm/mach-at91/board-afeb-9260v1.c
  44. 2 0
      arch/arm/mach-at91/include/mach/gpio.h
  45. 4 2
      arch/arm/mach-ep93xx/core.c
  46. 3 0
      arch/arm/mach-imx/include/mach/gpio.h
  47. 3 0
      arch/arm/mach-ixp4xx/include/mach/gpio.h
  48. 3 0
      arch/arm/mach-ks8695/include/mach/gpio.h
  49. 2 0
      arch/arm/mach-mx3/mx31ads.c
  50. 2 2
      arch/arm/mach-mx3/pcm037.c
  51. 2 0
      arch/arm/mach-ns9xxx/gpio.c
  52. 2 0
      arch/arm/mach-orion5x/gpio.c
  53. 3 1
      arch/arm/mach-pxa/corgi_pm.c
  54. 1 0
      arch/arm/mach-pxa/include/mach/sharpsl.h
  55. 12 0
      arch/arm/mach-pxa/spitz.c
  56. 3 1
      arch/arm/mach-pxa/spitz_pm.c
  57. 1 1
      arch/arm/mm/proc-xsc3.S
  58. 1 1
      arch/arm/plat-mxc/gpio.c
  59. 20 0
      arch/arm/plat-mxc/include/mach/io.h
  60. 27 60
      arch/cris/Makefile
  61. 2 0
      arch/cris/arch-v10/boot/.gitignore
  62. 1 1
      arch/cris/arch-v10/boot/compressed/head.S
  63. 1 1
      arch/cris/arch-v10/boot/compressed/misc.c
  64. 1 1
      arch/cris/arch-v10/boot/rescue/head.S
  65. 1 1
      arch/cris/arch-v10/boot/rescue/kimagerescue.S
  66. 1 1
      arch/cris/arch-v10/boot/rescue/testrescue.S
  67. 1 1
      arch/cris/arch-v10/drivers/axisflashmap.c
  68. 2 2
      arch/cris/arch-v10/drivers/ds1302.c
  69. 2 2
      arch/cris/arch-v10/drivers/gpio.c
  70. 2 2
      arch/cris/arch-v10/drivers/i2c.c
  71. 2 2
      arch/cris/arch-v10/drivers/sync_serial.c
  72. 0 47
      arch/cris/arch-v10/kernel/asm-offsets.c
  73. 1 1
      arch/cris/arch-v10/kernel/crisksyms.c
  74. 1 1
      arch/cris/arch-v10/kernel/debugport.c
  75. 1 1
      arch/cris/arch-v10/kernel/dma.c
  76. 1 1
      arch/cris/arch-v10/kernel/entry.S
  77. 1 1
      arch/cris/arch-v10/kernel/fasttimer.c
  78. 1 1
      arch/cris/arch-v10/kernel/head.S
  79. 2 2
      arch/cris/arch-v10/kernel/io_interface_mux.c
  80. 1 1
      arch/cris/arch-v10/kernel/kgdb.c
  81. 1 1
      arch/cris/arch-v10/kernel/process.c
  82. 1 1
      arch/cris/arch-v10/kernel/time.c
  83. 1 1
      arch/cris/arch-v10/kernel/traps.c
  84. 1 1
      arch/cris/arch-v10/mm/fault.c
  85. 1 1
      arch/cris/arch-v10/mm/init.c
  86. 1 1
      arch/cris/arch-v10/mm/tlb.c
  87. 0 118
      arch/cris/arch-v10/vmlinux.lds.S
  88. 16 4
      arch/cris/arch-v32/boot/compressed/head.S
  89. 1 1
      arch/cris/arch-v32/drivers/mach-a3/gpio.c
  90. 1 1
      arch/cris/arch-v32/drivers/mach-a3/nandflash.c
  91. 1 1
      arch/cris/arch-v32/drivers/mach-fs/nandflash.c
  92. 1 1
      arch/cris/arch-v32/drivers/pci/bios.c
  93. 2 2
      arch/cris/arch-v32/kernel/cache.c
  94. 4 4
      arch/cris/arch-v32/kernel/crisksyms.c
  95. 1 1
      arch/cris/arch-v32/kernel/debugport.c
  96. 2 2
      arch/cris/arch-v32/kernel/entry.S
  97. 18 4
      arch/cris/arch-v32/kernel/head.S
  98. 4 4
      arch/cris/arch-v32/kernel/kgdb.c
  99. 1 1
      arch/cris/arch-v32/kernel/kgdb_asm.S
  100. 4 4
      arch/cris/arch-v32/kernel/pinmux.c

+ 2 - 0
.mailmap

@@ -80,6 +80,8 @@ Nguyen Anh Quynh <aquynh@gmail.com>
 Paolo 'Blaisorblade' Giarrusso <blaisorblade@yahoo.it>
 Paolo 'Blaisorblade' Giarrusso <blaisorblade@yahoo.it>
 Patrick Mochel <mochel@digitalimplant.org>
 Patrick Mochel <mochel@digitalimplant.org>
 Peter A Jonsson <pj@ludd.ltu.se>
 Peter A Jonsson <pj@ludd.ltu.se>
+Peter Oruba <peter@oruba.de>
+Peter Oruba <peter.oruba@amd.com>
 Praveen BP <praveenbp@ti.com>
 Praveen BP <praveenbp@ti.com>
 Rajesh Shah <rajesh.shah@intel.com>
 Rajesh Shah <rajesh.shah@intel.com>
 Ralf Baechle <ralf@linux-mips.org>
 Ralf Baechle <ralf@linux-mips.org>

+ 2 - 2
Documentation/00-INDEX

@@ -172,7 +172,7 @@ i2c/
 	- directory with info about the I2C bus/protocol (2 wire, kHz speed).
 	- directory with info about the I2C bus/protocol (2 wire, kHz speed).
 i2o/
 i2o/
 	- directory with info about the Linux I2O subsystem.
 	- directory with info about the Linux I2O subsystem.
-i386/
+x86/i386/
 	- directory with info about Linux on Intel 32 bit architecture.
 	- directory with info about Linux on Intel 32 bit architecture.
 ia64/
 ia64/
 	- directory with info about Linux on Intel 64 bit architecture.
 	- directory with info about Linux on Intel 64 bit architecture.
@@ -382,7 +382,7 @@ w1/
 	- directory with documents regarding the 1-wire (w1) subsystem.
 	- directory with documents regarding the 1-wire (w1) subsystem.
 watchdog/
 watchdog/
 	- how to auto-reboot Linux if it has "fallen and can't get up". ;-)
 	- how to auto-reboot Linux if it has "fallen and can't get up". ;-)
-x86_64/
+x86/x86_64/
 	- directory with info on Linux support for AMD x86-64 (Hammer) machines.
 	- directory with info on Linux support for AMD x86-64 (Hammer) machines.
 zorro.txt
 zorro.txt
 	- info on writing drivers for Zorro bus devices found on Amigas.
 	- info on writing drivers for Zorro bus devices found on Amigas.

+ 2 - 2
Documentation/DocBook/Makefile

@@ -136,7 +136,7 @@ quiet_cmd_db2ps = PS      $@
 %.ps : %.xml
 %.ps : %.xml
 	$(call cmd,db2ps)
 	$(call cmd,db2ps)
 
 
-quiet_cmd_db2pdf = PDF      $@
+quiet_cmd_db2pdf = PDF     $@
       cmd_db2pdf = $(subst TYPE,pdf, $($(PDF_METHOD)template))
       cmd_db2pdf = $(subst TYPE,pdf, $($(PDF_METHOD)template))
 %.pdf : %.xml
 %.pdf : %.xml
 	$(call cmd,db2pdf)
 	$(call cmd,db2pdf)
@@ -148,7 +148,7 @@ build_main_index = rm -rf $(main_idx) && \
 		   echo '<h2>Kernel Version: $(KERNELVERSION)</h2>' >> $(main_idx) && \
 		   echo '<h2>Kernel Version: $(KERNELVERSION)</h2>' >> $(main_idx) && \
 		   cat $(HTML) >> $(main_idx)
 		   cat $(HTML) >> $(main_idx)
 
 
-quiet_cmd_db2html = HTML   $@
+quiet_cmd_db2html = HTML    $@
       cmd_db2html = xmlto xhtml $(XMLTOFLAGS) -o $(patsubst %.html,%,$@) $< && \
       cmd_db2html = xmlto xhtml $(XMLTOFLAGS) -o $(patsubst %.html,%,$@) $< && \
 		echo '<a HREF="$(patsubst %.html,%,$(notdir $@))/index.html"> \
 		echo '<a HREF="$(patsubst %.html,%,$(notdir $@))/index.html"> \
         $(patsubst %.html,%,$(notdir $@))</a><p>' > $@
         $(patsubst %.html,%,$(notdir $@))</a><p>' > $@

+ 1 - 1
Documentation/DocBook/deviceiobook.tmpl

@@ -24,7 +24,7 @@
     <surname>Cox</surname>
     <surname>Cox</surname>
     <affiliation>
     <affiliation>
      <address>
      <address>
-      <email>alan@redhat.com</email>
+      <email>alan@lxorguk.ukuu.org.uk</email>
      </address>
      </address>
     </affiliation>
     </affiliation>
    </author>
    </author>

+ 1 - 1
Documentation/DocBook/mcabook.tmpl

@@ -12,7 +12,7 @@
     <surname>Cox</surname>
     <surname>Cox</surname>
     <affiliation>
     <affiliation>
      <address>
      <address>
-      <email>alan@redhat.com</email>
+      <email>alan@lxorguk.ukuu.org.uk</email>
      </address>
      </address>
     </affiliation>
     </affiliation>
    </author>
    </author>

+ 1 - 1
Documentation/DocBook/wanbook.tmpl

@@ -12,7 +12,7 @@
     <surname>Cox</surname>
     <surname>Cox</surname>
     <affiliation>
     <affiliation>
      <address>
      <address>
-      <email>alan@redhat.com</email>
+      <email>alan@lxorguk.ukuu.org.uk</email>
      </address>
      </address>
     </affiliation>
     </affiliation>
    </author>
    </author>

+ 1 - 1
Documentation/DocBook/z8530book.tmpl

@@ -12,7 +12,7 @@
     <surname>Cox</surname>
     <surname>Cox</surname>
     <affiliation>
     <affiliation>
      <address>
      <address>
-      <email>alan@redhat.com</email>
+      <email>alan@lxorguk.ukuu.org.uk</email>
      </address>
      </address>
     </affiliation>
     </affiliation>
    </author>
    </author>

+ 1 - 1
Documentation/ManagementStyle

@@ -17,7 +17,7 @@ companies.  If you sign purchase orders or you have any clue about the
 budget of your group, you're almost certainly not a kernel manager. 
 budget of your group, you're almost certainly not a kernel manager. 
 These suggestions may or may not apply to you. 
 These suggestions may or may not apply to you. 
 
 
-First off, I'd suggest buying "Seven Habits of Highly Successful
+First off, I'd suggest buying "Seven Habits of Highly Effective
 People", and NOT read it.  Burn it, it's a great symbolic gesture. 
 People", and NOT read it.  Burn it, it's a great symbolic gesture. 
 
 
 (*) This document does so not so much by answering the question, but by
 (*) This document does so not so much by answering the question, but by

+ 1 - 0
Documentation/accounting/.gitignore

@@ -0,0 +1 @@
+getdelays

+ 0 - 13
Documentation/arm/empeg/README

@@ -1,13 +0,0 @@
-Empeg, Ltd's Empeg MP3 Car Audio Player
-
-The initial design is to go in your car, but you can use it at home, on a
-boat... almost anywhere. The principle is to store CD-quality music using
-MPEG technology onto a hard disk in the unit, and use the power of the
-embedded computer to serve up the music you want.
-
-For more details, see:
-
-	http://www.empeg.com
-
-
-

+ 0 - 49
Documentation/arm/empeg/ir.txt

@@ -1,49 +0,0 @@
-Infra-red driver documentation.
-
-Mike Crowe <mac@empeg.com>
-(C) Empeg Ltd 1999
-
-Not a lot here yet :-)
-
-The Kenwood KCA-R6A remote control generates a sequence like the following:
-
-Go low for approx 16T (Around 9000us)
-Go high for approx 8T (Around 4000us)
-Go low for less than 2T (Around 750us)
-
-For each of the 32 bits
-  Go high for more than 2T (Around 1500us) == 1
-  Go high for less than T (Around 400us) == 0
-  Go low for less than 2T (Around 750us)
-
-Rather than repeat a signal when the button is held down certain buttons
-generate the following code to indicate repetition.
-
-Go low for approx 16T
-Go high for approx 4T
-Go low for less than 2T
-
-(By removing the <2T from the start of the sequence and placing at the end
- it can be considered a stop bit but I found it easier to deal with it at
- the start).
-
-The 32 bits are encoded as XxYy where x and y are the actual data values
-while X and Y are the logical inverses of the associated data values. Using 
-LSB first yields sensible codes for the numbers.
-
-All codes are of the form b9xx
-
-The numeric keys generate the code 0x where x is the number pressed.
-
-Tuner		1c
-Tape		1d
-CD		1e
-CD-MD-CH	1f
-Track-		0a
-Track+		0b
-Rewind		0c
-FF		0d
-DNPP		5e
-Play/Pause	0e
-Vol+		14
-Vol-		15

+ 0 - 11
Documentation/arm/empeg/mkdevs

@@ -1,11 +0,0 @@
-#!/bin/sh
-mknod /dev/display c 244 0
-mknod /dev/ir c 242 0
-mknod /dev/usb0 c 243 0
-mknod /dev/audio c 245 4
-mknod /dev/dsp c 245 3
-mknod /dev/mixer c 245 0
-mknod /dev/empeg_state c 246 0
-mknod /dev/radio0 c 81 64
-ln -sf radio0 radio
-ln -sf usb0 usb

+ 1 - 0
Documentation/auxdisplay/.gitignore

@@ -0,0 +1 @@
+cfag12864b-example

+ 1 - 0
Documentation/connector/.gitignore

@@ -0,0 +1 @@
+ucon

+ 7 - 5
Documentation/filesystems/Locking

@@ -161,8 +161,12 @@ prototypes:
 	int (*set_page_dirty)(struct page *page);
 	int (*set_page_dirty)(struct page *page);
 	int (*readpages)(struct file *filp, struct address_space *mapping,
 	int (*readpages)(struct file *filp, struct address_space *mapping,
 			struct list_head *pages, unsigned nr_pages);
 			struct list_head *pages, unsigned nr_pages);
-	int (*prepare_write)(struct file *, struct page *, unsigned, unsigned);
-	int (*commit_write)(struct file *, struct page *, unsigned, unsigned);
+	int (*write_begin)(struct file *, struct address_space *mapping,
+				loff_t pos, unsigned len, unsigned flags,
+				struct page **pagep, void **fsdata);
+	int (*write_end)(struct file *, struct address_space *mapping,
+				loff_t pos, unsigned len, unsigned copied,
+				struct page *page, void *fsdata);
 	sector_t (*bmap)(struct address_space *, sector_t);
 	sector_t (*bmap)(struct address_space *, sector_t);
 	int (*invalidatepage) (struct page *, unsigned long);
 	int (*invalidatepage) (struct page *, unsigned long);
 	int (*releasepage) (struct page *, int);
 	int (*releasepage) (struct page *, int);
@@ -180,8 +184,6 @@ sync_page:		no	maybe
 writepages:		no
 writepages:		no
 set_page_dirty		no	no
 set_page_dirty		no	no
 readpages:		no
 readpages:		no
-prepare_write:		no	yes			yes
-commit_write:		no	yes			yes
 write_begin:		no	locks the page		yes
 write_begin:		no	locks the page		yes
 write_end:		no	yes, unlocks		yes
 write_end:		no	yes, unlocks		yes
 perform_write:		no	n/a			yes
 perform_write:		no	n/a			yes
@@ -191,7 +193,7 @@ releasepage:		no	yes
 direct_IO:		no
 direct_IO:		no
 launder_page:		no	yes
 launder_page:		no	yes
 
 
-	->prepare_write(), ->commit_write(), ->sync_page() and ->readpage()
+	->write_begin(), ->write_end(), ->sync_page() and ->readpage()
 may be called from the request handler (/dev/loop).
 may be called from the request handler (/dev/loop).
 
 
 	->readpage() unlocks the page, either synchronously or via I/O
 	->readpage() unlocks the page, either synchronously or via I/O

+ 5 - 34
Documentation/filesystems/vfs.txt

@@ -492,7 +492,7 @@ written-back to storage typically in whole pages, however the
 address_space has finer control of write sizes.
 address_space has finer control of write sizes.
 
 
 The read process essentially only requires 'readpage'.  The write
 The read process essentially only requires 'readpage'.  The write
-process is more complicated and uses prepare_write/commit_write or
+process is more complicated and uses write_begin/write_end or
 set_page_dirty to write data into the address_space, and writepage,
 set_page_dirty to write data into the address_space, and writepage,
 sync_page, and writepages to writeback data to storage.
 sync_page, and writepages to writeback data to storage.
 
 
@@ -521,8 +521,6 @@ struct address_space_operations {
 	int (*set_page_dirty)(struct page *page);
 	int (*set_page_dirty)(struct page *page);
 	int (*readpages)(struct file *filp, struct address_space *mapping,
 	int (*readpages)(struct file *filp, struct address_space *mapping,
 			struct list_head *pages, unsigned nr_pages);
 			struct list_head *pages, unsigned nr_pages);
-	int (*prepare_write)(struct file *, struct page *, unsigned, unsigned);
-	int (*commit_write)(struct file *, struct page *, unsigned, unsigned);
 	int (*write_begin)(struct file *, struct address_space *mapping,
 	int (*write_begin)(struct file *, struct address_space *mapping,
 				loff_t pos, unsigned len, unsigned flags,
 				loff_t pos, unsigned len, unsigned flags,
 				struct page **pagep, void **fsdata);
 				struct page **pagep, void **fsdata);
@@ -598,37 +596,7 @@ struct address_space_operations {
 	readpages is only used for read-ahead, so read errors are
 	readpages is only used for read-ahead, so read errors are
   	ignored.  If anything goes wrong, feel free to give up.
   	ignored.  If anything goes wrong, feel free to give up.
 
 
-  prepare_write: called by the generic write path in VM to set up a write
-  	request for a page.  This indicates to the address space that
-  	the given range of bytes is about to be written.  The
-  	address_space should check that the write will be able to
-  	complete, by allocating space if necessary and doing any other
-  	internal housekeeping.  If the write will update parts of
-  	any basic-blocks on storage, then those blocks should be
-  	pre-read (if they haven't been read already) so that the
-  	updated blocks can be written out properly.
-	The page will be locked.
-
-	Note: the page _must not_ be marked uptodate in this function
-	(or anywhere else) unless it actually is uptodate right now. As
-	soon as a page is marked uptodate, it is possible for a concurrent
-	read(2) to copy it to userspace.
-
-  commit_write: If prepare_write succeeds, new data will be copied
-        into the page and then commit_write will be called.  It will
-        typically update the size of the file (if appropriate) and
-        mark the inode as dirty, and do any other related housekeeping
-        operations.  It should avoid returning an error if possible -
-        errors should have been handled by prepare_write.
-
-  write_begin: This is intended as a replacement for prepare_write. The
-	key differences being that:
-		- it returns a locked page (in *pagep) rather than being
-		  given a pre locked page;
-		- it must be able to cope with short writes (where the
-		  length passed to write_begin is greater than the number
-		  of bytes copied into the page).
-
+  write_begin:
 	Called by the generic buffered write code to ask the filesystem to
 	Called by the generic buffered write code to ask the filesystem to
 	prepare to write len bytes at the given offset in the file. The
 	prepare to write len bytes at the given offset in the file. The
 	address_space should check that the write will be able to complete,
 	address_space should check that the write will be able to complete,
@@ -640,6 +608,9 @@ struct address_space_operations {
         The filesystem must return the locked pagecache page for the specified
         The filesystem must return the locked pagecache page for the specified
 	offset, in *pagep, for the caller to write into.
 	offset, in *pagep, for the caller to write into.
 
 
+	It must be able to cope with short writes (where the length passed to
+	write_begin is greater than the number of bytes copied into the page).
+
 	flags is a field for AOP_FLAG_xxx flags, described in
 	flags is a field for AOP_FLAG_xxx flags, described in
 	include/linux/fs.h.
 	include/linux/fs.h.
 
 

+ 3 - 0
Documentation/ftrace.txt

@@ -291,6 +291,9 @@ explains which is which.
   CPU#: The CPU which the process was running on.
   CPU#: The CPU which the process was running on.
 
 
   irqs-off: 'd' interrupts are disabled. '.' otherwise.
   irqs-off: 'd' interrupts are disabled. '.' otherwise.
+	    Note: If the architecture does not support a way to
+		  read the irq flags variable, an 'X' will always
+		  be printed here.
 
 
   need-resched: 'N' task need_resched is set, '.' otherwise.
   need-resched: 'N' task need_resched is set, '.' otherwise.
 
 

+ 1 - 1
Documentation/i2c/busses/i2c-sis96x

@@ -42,7 +42,7 @@ I suspect that this driver could be made to work for the following SiS
 chipsets as well: 635, and 635T. If anyone owns a board with those chips
 chipsets as well: 635, and 635T. If anyone owns a board with those chips
 AND is willing to risk crashing & burning an otherwise well-behaved kernel
 AND is willing to risk crashing & burning an otherwise well-behaved kernel
 in the name of progress... please contact me at <mhoffman@lightlink.com> or
 in the name of progress... please contact me at <mhoffman@lightlink.com> or
-via the project's mailing list: <i2c@lm-sensors.org>.  Please send bug
+via the linux-i2c mailing list: <linux-i2c@vger.kernel.org>.  Please send bug
 reports and/or success stories as well.
 reports and/or success stories as well.
 
 
 
 

+ 1 - 0
Documentation/ia64/.gitignore

@@ -0,0 +1 @@
+aliasing-test

+ 1 - 1
Documentation/isdn/CREDITS

@@ -5,7 +5,7 @@ I want to thank all who contributed to this project and especially to:
 Thomas Bogendörfer (tsbogend@bigbug.franken.de)
 Thomas Bogendörfer (tsbogend@bigbug.franken.de)
   Tester, lots of bugfixes and hints.
   Tester, lots of bugfixes and hints.
 
 
-Alan Cox (alan@redhat.com)
+Alan Cox (alan@lxorguk.ukuu.org.uk)
   For help getting into standard-kernel.
   For help getting into standard-kernel.
 
 
 Henner Eisen (eis@baty.hanse.de)
 Henner Eisen (eis@baty.hanse.de)

+ 7 - 7
Documentation/ja_JP/HOWTO

@@ -11,14 +11,14 @@ for non English (read: Japanese) speakers and is not intended as a
 fork. So if you have any comments or updates for this file, please try
 fork. So if you have any comments or updates for this file, please try
 to update the original English file first.
 to update the original English file first.
 
 
-Last Updated: 2008/08/21
+Last Updated: 2008/10/24
 ==================================
 ==================================
 これは、
 これは、
-linux-2.6.27/Documentation/HOWTO
+linux-2.6.28/Documentation/HOWTO
 の和訳です。
 の和訳です。
 
 
 翻訳団体: JF プロジェクト < http://www.linux.or.jp/JF/ >
 翻訳団体: JF プロジェクト < http://www.linux.or.jp/JF/ >
-翻訳日: 2008/8/5
+翻訳日: 2008/10/24
 翻訳者: Tsugikazu Shibata <tshibata at ab dot jp dot nec dot com>
 翻訳者: Tsugikazu Shibata <tshibata at ab dot jp dot nec dot com>
 校正者: 松倉さん <nbh--mats at nifty dot com>
 校正者: 松倉さん <nbh--mats at nifty dot com>
          小林 雅典さん (Masanori Kobayasi) <zap03216 at nifty dot ne dot jp>
          小林 雅典さん (Masanori Kobayasi) <zap03216 at nifty dot ne dot jp>
@@ -110,8 +110,8 @@ Linux カーネルソースツリーは幅広い範囲のドキュメントを
 新しいドキュメントファイルも追加することを勧めます。
 新しいドキュメントファイルも追加することを勧めます。
 カーネルの変更が、カーネルがユーザ空間に公開しているインターフェイスの
 カーネルの変更が、カーネルがユーザ空間に公開しているインターフェイスの
 変更を引き起こす場合、その変更を説明するマニュアルページのパッチや情報
 変更を引き起こす場合、その変更を説明するマニュアルページのパッチや情報
-をマニュアルページのメンテナ mtk.manpages@gmail.com に送ることを勧めま
-す。
+をマニュアルページのメンテナ mtk.manpages@gmail.com に送り、CC を
+linux-api@ver.kernel.org に送ることを勧めます。
 
 
 以下はカーネルソースツリーに含まれている読んでおくべきファイルの一覧で
 以下はカーネルソースツリーに含まれている読んでおくべきファイルの一覧で
 す-
 す-
@@ -149,7 +149,7 @@ Linux カーネルソースツリーは幅広い範囲のドキュメントを
      この他にパッチを作る方法についてのよくできた記述は-
      この他にパッチを作る方法についてのよくできた記述は-
 
 
 	"The Perfect Patch"
 	"The Perfect Patch"
-		http://www.zip.com.au/~akpm/linux/patches/stuff/tpp.txt
+		http://userweb.kernel.org/~akpm/stuff/tpp.txt
 	"Linux kernel patch submission format"
 	"Linux kernel patch submission format"
 		http://linux.yyz.us/patch-format.html
 		http://linux.yyz.us/patch-format.html
 
 
@@ -664,7 +664,7 @@ Linux カーネルコミュニティは、一度に大量のコードの塊を
 これについて全てがどのようにあるべきかについての詳細は、以下のドキュメ
 これについて全てがどのようにあるべきかについての詳細は、以下のドキュメ
 ントの ChangeLog セクションを見てください-
 ントの ChangeLog セクションを見てください-
   "The Perfect Patch"
   "The Perfect Patch"
-      http://www.zip.com.au/~akpm/linux/patches/stuff/tpp.txt
+      http://userweb.kernel.org/~akpm/stuff/tpp.txt
 
 
 これらのどれもが、時にはとても困難です。これらの慣例を完璧に実施するに
 これらのどれもが、時にはとても困難です。これらの慣例を完璧に実施するに
 は数年かかるかもしれません。これは継続的な改善のプロセスであり、そのた
 は数年かかるかもしれません。これは継続的な改善のプロセスであり、そのた

+ 6 - 6
Documentation/kernel-parameters.txt

@@ -100,7 +100,7 @@ parameter is applicable:
 	X86-32	X86-32, aka i386 architecture is enabled.
 	X86-32	X86-32, aka i386 architecture is enabled.
 	X86-64	X86-64 architecture is enabled.
 	X86-64	X86-64 architecture is enabled.
 			More X86-64 boot options can be found in
 			More X86-64 boot options can be found in
-			Documentation/x86_64/boot-options.txt .
+			Documentation/x86/x86_64/boot-options.txt .
 	X86	Either 32bit or 64bit x86 (same as X86-32+X86-64)
 	X86	Either 32bit or 64bit x86 (same as X86-32+X86-64)
 
 
 In addition, the following text indicates that the option:
 In addition, the following text indicates that the option:
@@ -112,10 +112,10 @@ In addition, the following text indicates that the option:
 Parameters denoted with BOOT are actually interpreted by the boot
 Parameters denoted with BOOT are actually interpreted by the boot
 loader, and have no meaning to the kernel directly.
 loader, and have no meaning to the kernel directly.
 Do not modify the syntax of boot loader parameters without extreme
 Do not modify the syntax of boot loader parameters without extreme
-need or coordination with <Documentation/i386/boot.txt>.
+need or coordination with <Documentation/x86/i386/boot.txt>.
 
 
 There are also arch-specific kernel-parameters not documented here.
 There are also arch-specific kernel-parameters not documented here.
-See for example <Documentation/x86_64/boot-options.txt>.
+See for example <Documentation/x86/x86_64/boot-options.txt>.
 
 
 Note that ALL kernel parameters listed below are CASE SENSITIVE, and that
 Note that ALL kernel parameters listed below are CASE SENSITIVE, and that
 a trailing = on the name of any parameter states that that parameter will
 a trailing = on the name of any parameter states that that parameter will
@@ -1222,7 +1222,7 @@ and is between 256 and 4096 characters. It is defined in the file
 
 
 	mce		[X86-32] Machine Check Exception
 	mce		[X86-32] Machine Check Exception
 
 
-	mce=option	[X86-64] See Documentation/x86_64/boot-options.txt
+	mce=option	[X86-64] See Documentation/x86/x86_64/boot-options.txt
 
 
 	md=		[HW] RAID subsystems devices and level
 	md=		[HW] RAID subsystems devices and level
 			See Documentation/md.txt.
 			See Documentation/md.txt.
@@ -1728,7 +1728,7 @@ and is between 256 and 4096 characters. It is defined in the file
 			See Documentation/paride.txt.
 			See Documentation/paride.txt.
 
 
 	pirq=		[SMP,APIC] Manual mp-table setup
 	pirq=		[SMP,APIC] Manual mp-table setup
-			See Documentation/i386/IO-APIC.txt.
+			See Documentation/x86/i386/IO-APIC.txt.
 
 
 	plip=		[PPT,NET] Parallel port network link
 	plip=		[PPT,NET] Parallel port network link
 			Format: { parport<nr> | timid | 0 }
 			Format: { parport<nr> | timid | 0 }
@@ -2343,7 +2343,7 @@ and is between 256 and 4096 characters. It is defined in the file
 			See Documentation/fb/modedb.txt.
 			See Documentation/fb/modedb.txt.
 
 
 	vga=		[BOOT,X86-32] Select a particular video mode
 	vga=		[BOOT,X86-32] Select a particular video mode
-			See Documentation/i386/boot.txt and
+			See Documentation/x86/i386/boot.txt and
 			Documentation/svga.txt.
 			Documentation/svga.txt.
 			Use vga=ask for menu.
 			Use vga=ask for menu.
 			This is actually a boot loader parameter; the value is
 			This is actually a boot loader parameter; the value is

+ 1 - 1
Documentation/lguest/Makefile

@@ -1,5 +1,5 @@
 # This creates the demonstration utility "lguest" which runs a Linux guest.
 # This creates the demonstration utility "lguest" which runs a Linux guest.
-CFLAGS:=-Wall -Wmissing-declarations -Wmissing-prototypes -O3 -I../../include
+CFLAGS:=-Wall -Wmissing-declarations -Wmissing-prototypes -O3 -I../../include -I../../arch/x86/include
 LDLIBS:=-lz
 LDLIBS:=-lz
 
 
 all: lguest
 all: lguest

+ 2 - 2
Documentation/lguest/lguest.c

@@ -44,7 +44,7 @@
 #include "linux/virtio_console.h"
 #include "linux/virtio_console.h"
 #include "linux/virtio_rng.h"
 #include "linux/virtio_rng.h"
 #include "linux/virtio_ring.h"
 #include "linux/virtio_ring.h"
-#include "asm-x86/bootparam.h"
+#include "asm/bootparam.h"
 /*L:110 We can ignore the 39 include files we need for this program, but I do
 /*L:110 We can ignore the 39 include files we need for this program, but I do
  * want to draw attention to the use of kernel-style types.
  * want to draw attention to the use of kernel-style types.
  *
  *
@@ -402,7 +402,7 @@ static unsigned long load_bzimage(int fd)
 	void *p = from_guest_phys(0x100000);
 	void *p = from_guest_phys(0x100000);
 
 
 	/* Go back to the start of the file and read the header.  It should be
 	/* Go back to the start of the file and read the header.  It should be
-	 * a Linux boot header (see Documentation/i386/boot.txt) */
+	 * a Linux boot header (see Documentation/x86/i386/boot.txt) */
 	lseek(fd, 0, SEEK_SET);
 	lseek(fd, 0, SEEK_SET);
 	read(fd, &boot, sizeof(boot));
 	read(fd, &boot, sizeof(boot));
 
 

+ 1 - 0
Documentation/networking/.gitignore

@@ -0,0 +1 @@
+ifenslave

+ 1 - 1
Documentation/networking/dmfe.txt

@@ -60,6 +60,6 @@ Tobias Ringstrom <tori@unhappy.mine.nu> : Current Maintainer
 Contributors:
 Contributors:
 
 
 Marcelo Tosatti <marcelo@conectiva.com.br>
 Marcelo Tosatti <marcelo@conectiva.com.br>
-Alan Cox <alan@redhat.com>
+Alan Cox <alan@lxorguk.ukuu.org.uk>
 Jeff Garzik <jgarzik@pobox.com>
 Jeff Garzik <jgarzik@pobox.com>
 Vojtech Pavlik <vojtech@suse.cz>
 Vojtech Pavlik <vojtech@suse.cz>

+ 1 - 0
Documentation/pcmcia/.gitignore

@@ -0,0 +1 @@
+crc32hash

+ 0 - 2
Documentation/scheduler/00-INDEX

@@ -4,8 +4,6 @@ sched-arch.txt
 	- CPU Scheduler implementation hints for architecture specific code.
 	- CPU Scheduler implementation hints for architecture specific code.
 sched-coding.txt
 sched-coding.txt
 	- reference for various scheduler-related methods in the O(1) scheduler.
 	- reference for various scheduler-related methods in the O(1) scheduler.
-sched-design.txt
-	- goals, design and implementation of the Linux O(1) scheduler.
 sched-design-CFS.txt
 sched-design-CFS.txt
 	- goals, design and implementation of the Complete Fair Scheduler.
 	- goals, design and implementation of the Complete Fair Scheduler.
 sched-domains.txt
 sched-domains.txt

+ 1 - 1
Documentation/scsi/aacraid.txt

@@ -128,7 +128,7 @@ Supported Cards/Chipsets
 
 
 People
 People
 -------------------------
 -------------------------
-Alan Cox <alan@redhat.com>
+Alan Cox <alan@lxorguk.ukuu.org.uk>
 Christoph Hellwig <hch@infradead.org>	(updates for new-style PCI probing and SCSI host registration,
 Christoph Hellwig <hch@infradead.org>	(updates for new-style PCI probing and SCSI host registration,
 					 small cleanups/fixes)
 					 small cleanups/fixes)
 Matt Domsch <matt_domsch@dell.com>	(revision ioctl, adapter messages)
 Matt Domsch <matt_domsch@dell.com>	(revision ioctl, adapter messages)

+ 1 - 3
Documentation/sh/new-machine.txt

@@ -47,9 +47,7 @@ Next, for companion chips:
     `-- sh
     `-- sh
         `-- cchips
         `-- cchips
             `-- hd6446x
             `-- hd6446x
-                |-- hd64461
-                |   `-- cchip-specific files
-                `-- hd64465
+                `-- hd64461
                     `-- cchip-specific files
                     `-- cchip-specific files
 
 
 ... and so on. Headers for the companion chips are treated the same way as
 ... and so on. Headers for the companion chips are treated the same way as

+ 2 - 0
Documentation/spi/.gitignore

@@ -0,0 +1,2 @@
+spidev_fdx
+spidev_test

+ 1 - 0
Documentation/stable_kernel_rules.txt

@@ -12,6 +12,7 @@ Rules on what kind of patches are accepted, and which ones are not, into the
    marked CONFIG_BROKEN), an oops, a hang, data corruption, a real
    marked CONFIG_BROKEN), an oops, a hang, data corruption, a real
    security issue, or some "oh, that's not good" issue.  In short, something
    security issue, or some "oh, that's not good" issue.  In short, something
    critical.
    critical.
+ - New device IDs and quirks are also accepted.
  - No "theoretical race condition" issues, unless an explanation of how the
  - No "theoretical race condition" issues, unless an explanation of how the
    race can be exploited is also provided.
    race can be exploited is also provided.
  - It cannot contain any "trivial" fixes in it (spelling changes,
  - It cannot contain any "trivial" fixes in it (spelling changes,

+ 17 - 7
Documentation/sysctl/kernel.txt

@@ -363,11 +363,21 @@ tainted:
 Non-zero if the kernel has been tainted.  Numeric values, which
 Non-zero if the kernel has been tainted.  Numeric values, which
 can be ORed together:
 can be ORed together:
 
 
-  1 - A module with a non-GPL license has been loaded, this
-      includes modules with no license.
-      Set by modutils >= 2.4.9 and module-init-tools.
-  2 - A module was force loaded by insmod -f.
-      Set by modutils >= 2.4.9 and module-init-tools.
-  4 - Unsafe SMP processors: SMP with CPUs not designed for SMP.
- 64 - A module from drivers/staging was loaded.
+   1 - A module with a non-GPL license has been loaded, this
+       includes modules with no license.
+       Set by modutils >= 2.4.9 and module-init-tools.
+   2 - A module was force loaded by insmod -f.
+       Set by modutils >= 2.4.9 and module-init-tools.
+   4 - Unsafe SMP processors: SMP with CPUs not designed for SMP.
+   8 - A module was forcibly unloaded from the system by rmmod -f.
+  16 - A hardware machine check error occurred on the system.
+  32 - A bad page was discovered on the system.
+  64 - The user has asked that the system be marked "tainted".  This
+       could be because they are running software that directly modifies
+       the hardware, or for other reasons.
+ 128 - The system has died.
+ 256 - The ACPI DSDT has been overridden with one supplied by the user
+        instead of using the one provided by the hardware.
+ 512 - A kernel warning has occurred.
+1024 - A module from drivers/staging was loaded.
 
 

+ 1 - 0
Documentation/video4linux/.gitignore

@@ -0,0 +1 @@
+v4lgrab

+ 1 - 1
Documentation/video4linux/bttv/CONTRIBUTORS

@@ -3,7 +3,7 @@ Contributors to bttv:
 Michael Chu <mmchu@pobox.com>
 Michael Chu <mmchu@pobox.com>
   AverMedia fix and more flexible card recognition
   AverMedia fix and more flexible card recognition
 
 
-Alan Cox <alan@redhat.com>
+Alan Cox <alan@lxorguk.ukuu.org.uk>
   Video4Linux interface and 2.1.x kernel adaptation
   Video4Linux interface and 2.1.x kernel adaptation
 
 
 Chris Kleitsch
 Chris Kleitsch

+ 1 - 0
Documentation/vm/.gitignore

@@ -0,0 +1 @@
+slabinfo

+ 2 - 0
Documentation/watchdog/src/.gitignore

@@ -0,0 +1,2 @@
+watchdog-simple
+watchdog-test

+ 2 - 2
Documentation/x86/x86_64/boot-options.txt

@@ -35,7 +35,7 @@ APICs
 
 
    nolapic	 Don't use the local APIC (alias for i386 compatibility)
    nolapic	 Don't use the local APIC (alias for i386 compatibility)
 
 
-   pirq=...	 See Documentation/i386/IO-APIC.txt
+   pirq=...	 See Documentation/x86/i386/IO-APIC.txt
 
 
    noapictimer	 Don't set up the APIC timer
    noapictimer	 Don't set up the APIC timer
 
 
@@ -139,7 +139,7 @@ Non Executable Mappings
 SMP
 SMP
 
 
   additional_cpus=NUM Allow NUM more CPUs for hotplug
   additional_cpus=NUM Allow NUM more CPUs for hotplug
-		 (defaults are specified by the BIOS, see Documentation/x86_64/cpu-hotplug-spec)
+		 (defaults are specified by the BIOS, see Documentation/x86/x86_64/cpu-hotplug-spec)
 
 
 NUMA
 NUMA
 
 

+ 1 - 1
Documentation/x86/x86_64/fake-numa-for-cpusets

@@ -10,7 +10,7 @@ amount of system memory that are available to a certain class of tasks.
 For more information on the features of cpusets, see Documentation/cpusets.txt.
 For more information on the features of cpusets, see Documentation/cpusets.txt.
 There are a number of different configurations you can use for your needs.  For
 There are a number of different configurations you can use for your needs.  For
 more information on the numa=fake command line option and its various ways of
 more information on the numa=fake command line option and its various ways of
-configuring fake nodes, see Documentation/x86_64/boot-options.txt.
+configuring fake nodes, see Documentation/x86/x86_64/boot-options.txt.
 
 
 For the purposes of this introduction, we'll assume a very primitive NUMA
 For the purposes of this introduction, we'll assume a very primitive NUMA
 emulation setup of "numa=fake=4*512,".  This will split our system memory into
 emulation setup of "numa=fake=4*512,".  This will split our system memory into

+ 27 - 10
MAINTAINERS

@@ -347,7 +347,7 @@ S:	Maintained
 ALI1563 I2C DRIVER
 ALI1563 I2C DRIVER
 P:	Rudolf Marek
 P:	Rudolf Marek
 M:	r.marek@assembler.cz
 M:	r.marek@assembler.cz
-L:	i2c@lm-sensors.org
+L:	linux-i2c@vger.kernel.org
 S:	Maintained
 S:	Maintained
 
 
 ALPHA PORT
 ALPHA PORT
@@ -610,6 +610,11 @@ P:	Philipp Zabel
 M:	philipp.zabel@gmail.com
 M:	philipp.zabel@gmail.com
 S:	Maintained
 S:	Maintained
 
 
+ARM/NEC MOBILEPRO 900/c MACHINE SUPPORT
+P:	Michael Petchkovsky
+M:	mkpetch@internode.on.net
+S:	Maintained
+
 ARM/TOSA MACHINE SUPPORT
 ARM/TOSA MACHINE SUPPORT
 P:	Dmitry Baryshkov
 P:	Dmitry Baryshkov
 M:	dbaryshkov@gmail.com
 M:	dbaryshkov@gmail.com
@@ -738,6 +743,8 @@ P:	Nick Kossifidis
 M:	mickflemm@gmail.com
 M:	mickflemm@gmail.com
 P:	Luis R. Rodriguez
 P:	Luis R. Rodriguez
 M:	mcgrof@gmail.com
 M:	mcgrof@gmail.com
+P:	Bob Copeland
+M:	me@bobcopeland.com
 L:	linux-wireless@vger.kernel.org
 L:	linux-wireless@vger.kernel.org
 L:	ath5k-devel@lists.ath5k.org
 L:	ath5k-devel@lists.ath5k.org
 S:	Maintained
 S:	Maintained
@@ -1749,7 +1756,7 @@ FREESCALE I2C CPM DRIVER
 P:	Jochen Friedrich
 P:	Jochen Friedrich
 M:	jochen@scram.de
 M:	jochen@scram.de
 L:	linuxppc-dev@ozlabs.org
 L:	linuxppc-dev@ozlabs.org
-L:	i2c@lm-sensors.org
+L:	linux-i2c@vger.kernel.org
 S:	Maintained
 S:	Maintained
 
 
 FREESCALE SOC FS_ENET DRIVER
 FREESCALE SOC FS_ENET DRIVER
@@ -2022,7 +2029,7 @@ S:	Maintained
 I2C/SMBUS STUB DRIVER
 I2C/SMBUS STUB DRIVER
 P:	Mark M. Hoffman
 P:	Mark M. Hoffman
 M:	mhoffman@lightlink.com
 M:	mhoffman@lightlink.com
-L:	i2c@lm-sensors.org
+L:	linux-i2c@vger.kernel.org
 S:	Maintained
 S:	Maintained
 
 
 I2C SUBSYSTEM
 I2C SUBSYSTEM
@@ -2030,14 +2037,14 @@ P:	Jean Delvare (PC drivers, core)
 M:	khali@linux-fr.org
 M:	khali@linux-fr.org
 P:	Ben Dooks (embedded platforms)
 P:	Ben Dooks (embedded platforms)
 M:	ben-linux@fluff.org
 M:	ben-linux@fluff.org
-L:	i2c@lm-sensors.org
+L:	linux-i2c@vger.kernel.org
 T:	quilt http://khali.linux-fr.org/devel/linux-2.6/jdelvare-i2c/
 T:	quilt http://khali.linux-fr.org/devel/linux-2.6/jdelvare-i2c/
 S:	Maintained
 S:	Maintained
 
 
 I2C-TINY-USB DRIVER
 I2C-TINY-USB DRIVER
 P:	Till Harbaum
 P:	Till Harbaum
 M:	till@harbaum.org
 M:	till@harbaum.org
-L:	i2c@lm-sensors.org
+L:	linux-i2c@vger.kernel.org
 T:	http://www.harbaum.org/till/i2c_tiny_usb
 T:	http://www.harbaum.org/till/i2c_tiny_usb
 S:	Maintained
 S:	Maintained
 
 
@@ -2701,6 +2708,16 @@ M:	matthew@wil.cx
 L:	linux-scsi@vger.kernel.org
 L:	linux-scsi@vger.kernel.org
 S:	Maintained
 S:	Maintained
 
 
+LTP (Linux Test Project)
+P:	Subrata Modak
+M:	subrata@linux.vnet.ibm.com
+P:	Mike Frysinger
+M:	vapier@gentoo.org
+L:	ltp-list@lists.sourceforge.net (subscribers-only)
+W:	http://ltp.sourceforge.net/
+T:	git kernel.org/pub/scm/linux/kernel/git/galak/ltp.git
+S:	Maintained
+
 M32R ARCHITECTURE
 M32R ARCHITECTURE
 P:	Hirokazu Takata
 P:	Hirokazu Takata
 M:	takata@linux-m32r.org
 M:	takata@linux-m32r.org
@@ -3143,7 +3160,7 @@ S:	Maintained
 OPENCORES I2C BUS DRIVER
 OPENCORES I2C BUS DRIVER
 P:	Peter Korsgaard
 P:	Peter Korsgaard
 M:	jacmet@sunsite.dk
 M:	jacmet@sunsite.dk
-L:	i2c@lm-sensors.org
+L:	linux-i2c@vger.kernel.org
 S:	Maintained
 S:	Maintained
 
 
 OPROFILE
 OPROFILE
@@ -3190,7 +3207,7 @@ S:	Maintained
 PA SEMI SMBUS DRIVER
 PA SEMI SMBUS DRIVER
 P:	Olof Johansson
 P:	Olof Johansson
 M:	olof@lixom.net
 M:	olof@lixom.net
-L:	i2c@lm-sensors.org
+L:	linux-i2c@vger.kernel.org
 S:	Maintained
 S:	Maintained
 
 
 PANASONIC LAPTOP ACPI EXTRAS DRIVER
 PANASONIC LAPTOP ACPI EXTRAS DRIVER
@@ -3335,7 +3352,7 @@ S:	Maintained
 PNXxxxx I2C DRIVER
 PNXxxxx I2C DRIVER
 P:	Vitaly Wool
 P:	Vitaly Wool
 M:	vitalywool@gmail.com
 M:	vitalywool@gmail.com
-L:	i2c@lm-sensors.org
+L:	linux-i2c@vger.kernel.org
 S:	Maintained
 S:	Maintained
 
 
 PPP PROTOCOL DRIVERS AND COMPRESSORS
 PPP PROTOCOL DRIVERS AND COMPRESSORS
@@ -3799,7 +3816,7 @@ S:	Maintained
 SIS 96X I2C/SMBUS DRIVER
 SIS 96X I2C/SMBUS DRIVER
 P:	Mark M. Hoffman
 P:	Mark M. Hoffman
 M:	mhoffman@lightlink.com
 M:	mhoffman@lightlink.com
-L:	i2c@lm-sensors.org
+L:	linux-i2c@vger.kernel.org
 S:	Maintained
 S:	Maintained
 
 
 SIS FRAMEBUFFER DRIVER
 SIS FRAMEBUFFER DRIVER
@@ -4546,7 +4563,7 @@ S:	Maintained
 VIAPRO SMBUS DRIVER
 VIAPRO SMBUS DRIVER
 P:	Jean Delvare
 P:	Jean Delvare
 M:	khali@linux-fr.org
 M:	khali@linux-fr.org
-L:	i2c@lm-sensors.org
+L:	linux-i2c@vger.kernel.org
 S:	Maintained
 S:	Maintained
 
 
 VIA UNICHROME(PRO)/CHROME9 FRAMEBUFFER DRIVER
 VIA UNICHROME(PRO)/CHROME9 FRAMEBUFFER DRIVER

+ 8 - 2
Makefile

@@ -1,7 +1,7 @@
 VERSION = 2
 VERSION = 2
 PATCHLEVEL = 6
 PATCHLEVEL = 6
 SUBLEVEL = 28
 SUBLEVEL = 28
-EXTRAVERSION = -rc2
+EXTRAVERSION = -rc3
 NAME = Killer Bat of Doom
 NAME = Killer Bat of Doom
 
 
 # *DOCUMENTATION*
 # *DOCUMENTATION*
@@ -961,6 +961,7 @@ export CPPFLAGS_vmlinux.lds += -P -C -U$(ARCH)
 
 
 # The asm symlink changes when $(ARCH) changes.
 # The asm symlink changes when $(ARCH) changes.
 # Detect this and ask user to run make mrproper
 # Detect this and ask user to run make mrproper
+# If asm is a stale symlink (point to dir that does not exist) remove it
 define check-symlink
 define check-symlink
 	set -e;                                                            \
 	set -e;                                                            \
 	if [ -L include/asm ]; then                                        \
 	if [ -L include/asm ]; then                                        \
@@ -970,6 +971,10 @@ define check-symlink
 			echo "       set ARCH or save .config and run 'make mrproper' to fix it";             \
 			echo "       set ARCH or save .config and run 'make mrproper' to fix it";             \
 			exit 1;                                            \
 			exit 1;                                            \
 		fi;                                                        \
 		fi;                                                        \
+		test -e $$asmlink || rm include/asm;                       \
+	elif [ -d include/asm ]; then                                      \
+		echo "ERROR: $@ is a directory but a symlink was expected";\
+		exit 1;                                                    \
 	fi
 	fi
 endef
 endef
 
 
@@ -1431,7 +1436,8 @@ ALLSOURCE_ARCHS := $(SRCARCH)
 define find-sources
 define find-sources
         ( for arch in $(ALLSOURCE_ARCHS) ; do \
         ( for arch in $(ALLSOURCE_ARCHS) ; do \
 	       find $(__srctree)arch/$${arch} $(RCS_FIND_IGNORE) \
 	       find $(__srctree)arch/$${arch} $(RCS_FIND_IGNORE) \
-	            -name $1 -print; \
+		    -wholename $(__srctree)arch/$${arch}/include/asm -type d -prune \
+	            -o -name $1 -print; \
 	  done ; \
 	  done ; \
 	  find $(__srctree)security/selinux/include $(RCS_FIND_IGNORE) \
 	  find $(__srctree)security/selinux/include $(RCS_FIND_IGNORE) \
 	       -name $1 -print; \
 	       -name $1 -print; \

+ 14 - 5
arch/arm/common/sharpsl_pm.c

@@ -54,11 +54,13 @@
 /*
 /*
  * Prototypes
  * Prototypes
  */
  */
+#ifdef CONFIG_PM
 static int sharpsl_off_charge_battery(void);
 static int sharpsl_off_charge_battery(void);
-static int sharpsl_check_battery_temp(void);
 static int sharpsl_check_battery_voltage(void);
 static int sharpsl_check_battery_voltage(void);
-static int sharpsl_ac_check(void);
 static int sharpsl_fatal_check(void);
 static int sharpsl_fatal_check(void);
+#endif
+static int sharpsl_check_battery_temp(void);
+static int sharpsl_ac_check(void);
 static int sharpsl_average_value(int ad);
 static int sharpsl_average_value(int ad);
 static void sharpsl_average_clear(void);
 static void sharpsl_average_clear(void);
 static void sharpsl_charge_toggle(struct work_struct *private_);
 static void sharpsl_charge_toggle(struct work_struct *private_);
@@ -424,6 +426,7 @@ static int sharpsl_check_battery_temp(void)
 	return 0;
 	return 0;
 }
 }
 
 
+#ifdef CONFIG_PM
 static int sharpsl_check_battery_voltage(void)
 static int sharpsl_check_battery_voltage(void)
 {
 {
 	int val, i, buff[5];
 	int val, i, buff[5];
@@ -455,6 +458,7 @@ static int sharpsl_check_battery_voltage(void)
 
 
 	return 0;
 	return 0;
 }
 }
+#endif
 
 
 static int sharpsl_ac_check(void)
 static int sharpsl_ac_check(void)
 {
 {
@@ -586,8 +590,6 @@ static int corgi_pxa_pm_enter(suspend_state_t state)
 
 
 	return 0;
 	return 0;
 }
 }
-#endif
-
 
 
 /*
 /*
  * Check for fatal battery errors
  * Check for fatal battery errors
@@ -738,7 +740,10 @@ static int sharpsl_off_charge_battery(void)
 		}
 		}
 	}
 	}
 }
 }
-
+#else
+#define sharpsl_pm_suspend	NULL
+#define sharpsl_pm_resume	NULL
+#endif
 
 
 static ssize_t battery_percentage_show(struct device *dev, struct device_attribute *attr, char *buf)
 static ssize_t battery_percentage_show(struct device *dev, struct device_attribute *attr, char *buf)
 {
 {
@@ -768,10 +773,12 @@ static void sharpsl_apm_get_power_status(struct apm_power_info *info)
 	info->battery_life = sharpsl_pm.battstat.mainbat_percent;
 	info->battery_life = sharpsl_pm.battstat.mainbat_percent;
 }
 }
 
 
+#ifdef CONFIG_PM
 static struct platform_suspend_ops sharpsl_pm_ops = {
 static struct platform_suspend_ops sharpsl_pm_ops = {
 	.enter		= corgi_pxa_pm_enter,
 	.enter		= corgi_pxa_pm_enter,
 	.valid		= suspend_valid_only_mem,
 	.valid		= suspend_valid_only_mem,
 };
 };
+#endif
 
 
 static int __init sharpsl_pm_probe(struct platform_device *pdev)
 static int __init sharpsl_pm_probe(struct platform_device *pdev)
 {
 {
@@ -802,7 +809,9 @@ static int __init sharpsl_pm_probe(struct platform_device *pdev)
 
 
 	apm_get_power_status = sharpsl_apm_get_power_status;
 	apm_get_power_status = sharpsl_apm_get_power_status;
 
 
+#ifdef CONFIG_PM
 	suspend_set_ops(&sharpsl_pm_ops);
 	suspend_set_ops(&sharpsl_pm_ops);
+#endif
 
 
 	mod_timer(&sharpsl_pm.ac_timer, jiffies + msecs_to_jiffies(250));
 	mod_timer(&sharpsl_pm.ac_timer, jiffies + msecs_to_jiffies(250));
 
 

+ 1 - 0
arch/arm/mach-at91/board-afeb-9260v1.c

@@ -165,6 +165,7 @@ static struct at91_mmc_data __initdata afeb9260_mmc_data = {
 static struct i2c_board_info __initdata afeb9260_i2c_devices[] = {
 static struct i2c_board_info __initdata afeb9260_i2c_devices[] = {
 	{
 	{
 		I2C_BOARD_INFO("fm3130", 0x68),
 		I2C_BOARD_INFO("fm3130", 0x68),
+	}, {
 		I2C_BOARD_INFO("24c64", 0x50),
 		I2C_BOARD_INFO("24c64", 0x50),
 	},
 	},
 };
 };

+ 2 - 0
arch/arm/mach-at91/include/mach/gpio.h

@@ -13,6 +13,7 @@
 #ifndef __ASM_ARCH_AT91RM9200_GPIO_H
 #ifndef __ASM_ARCH_AT91RM9200_GPIO_H
 #define __ASM_ARCH_AT91RM9200_GPIO_H
 #define __ASM_ARCH_AT91RM9200_GPIO_H
 
 
+#include <linux/kernel.h>
 #include <asm/irq.h>
 #include <asm/irq.h>
 
 
 #define PIN_BASE		NR_AIC_IRQS
 #define PIN_BASE		NR_AIC_IRQS
@@ -220,6 +221,7 @@ static inline int gpio_request(unsigned gpio, const char *label)
 
 
 static inline void gpio_free(unsigned gpio)
 static inline void gpio_free(unsigned gpio)
 {
 {
+	might_sleep();
 }
 }
 
 
 extern int gpio_direction_input(unsigned gpio);
 extern int gpio_direction_input(unsigned gpio);

+ 4 - 2
arch/arm/mach-ep93xx/core.c

@@ -26,6 +26,7 @@
 #include <linux/serial_core.h>
 #include <linux/serial_core.h>
 #include <linux/device.h>
 #include <linux/device.h>
 #include <linux/mm.h>
 #include <linux/mm.h>
+#include <linux/dma-mapping.h>
 #include <linux/time.h>
 #include <linux/time.h>
 #include <linux/timex.h>
 #include <linux/timex.h>
 #include <linux/delay.h>
 #include <linux/delay.h>
@@ -449,12 +450,13 @@ static struct resource ep93xx_ohci_resources[] = {
 	},
 	},
 };
 };
 
 
+
 static struct platform_device ep93xx_ohci_device = {
 static struct platform_device ep93xx_ohci_device = {
 	.name		= "ep93xx-ohci",
 	.name		= "ep93xx-ohci",
 	.id		= -1,
 	.id		= -1,
 	.dev		= {
 	.dev		= {
-		.dma_mask		= (void *)0xffffffff,
-		.coherent_dma_mask	= 0xffffffff,
+		.dma_mask		= &ep93xx_ohci_device.dev.coherent_dma_mask,
+		.coherent_dma_mask	= DMA_BIT_MASK(32),
 	},
 	},
 	.num_resources	= ARRAY_SIZE(ep93xx_ohci_resources),
 	.num_resources	= ARRAY_SIZE(ep93xx_ohci_resources),
 	.resource	= ep93xx_ohci_resources,
 	.resource	= ep93xx_ohci_resources,

+ 3 - 0
arch/arm/mach-imx/include/mach/gpio.h

@@ -1,5 +1,6 @@
 #ifndef _IMX_GPIO_H
 #ifndef _IMX_GPIO_H
 
 
+#include <linux/kernel.h>
 #include <mach/imx-regs.h>
 #include <mach/imx-regs.h>
 
 
 #define IMX_GPIO_ALLOC_MODE_NORMAL	0
 #define IMX_GPIO_ALLOC_MODE_NORMAL	0
@@ -63,6 +64,8 @@ static inline int gpio_request(unsigned gpio, const char *label)
 
 
 static inline void gpio_free(unsigned gpio)
 static inline void gpio_free(unsigned gpio)
 {
 {
+	might_sleep();
+
 	imx_gpio_free(gpio);
 	imx_gpio_free(gpio);
 }
 }
 
 

+ 3 - 0
arch/arm/mach-ixp4xx/include/mach/gpio.h

@@ -25,6 +25,7 @@
 #ifndef __ASM_ARCH_IXP4XX_GPIO_H
 #ifndef __ASM_ARCH_IXP4XX_GPIO_H
 #define __ASM_ARCH_IXP4XX_GPIO_H
 #define __ASM_ARCH_IXP4XX_GPIO_H
 
 
+#include <linux/kernel.h>
 #include <mach/hardware.h>
 #include <mach/hardware.h>
 
 
 static inline int gpio_request(unsigned gpio, const char *label)
 static inline int gpio_request(unsigned gpio, const char *label)
@@ -34,6 +35,8 @@ static inline int gpio_request(unsigned gpio, const char *label)
 
 
 static inline void gpio_free(unsigned gpio)
 static inline void gpio_free(unsigned gpio)
 {
 {
+	might_sleep();
+
 	return;
 	return;
 }
 }
 
 

+ 3 - 0
arch/arm/mach-ks8695/include/mach/gpio.h

@@ -11,6 +11,8 @@
 #ifndef __ASM_ARCH_GPIO_H_
 #ifndef __ASM_ARCH_GPIO_H_
 #define __ASM_ARCH_GPIO_H_
 #define __ASM_ARCH_GPIO_H_
 
 
+#include <linux/kernel.h>
+
 #define KS8695_GPIO_0		0
 #define KS8695_GPIO_0		0
 #define KS8695_GPIO_1		1
 #define KS8695_GPIO_1		1
 #define KS8695_GPIO_2		2
 #define KS8695_GPIO_2		2
@@ -74,6 +76,7 @@ static inline int gpio_request(unsigned int pin, const char *label)
 
 
 static inline void gpio_free(unsigned int pin)
 static inline void gpio_free(unsigned int pin)
 {
 {
+	might_sleep();
 }
 }
 
 
 #endif
 #endif

+ 2 - 0
arch/arm/mach-mx3/mx31ads.c

@@ -35,6 +35,8 @@
 #include <mach/imx-uart.h>
 #include <mach/imx-uart.h>
 #include <mach/iomux-mx3.h>
 #include <mach/iomux-mx3.h>
 
 
+#include "devices.h"
+
 /*!
 /*!
  * @file mx31ads.c
  * @file mx31ads.c
  *
  *

+ 2 - 2
arch/arm/mach-mx3/pcm037.c

@@ -91,12 +91,12 @@ static struct map_desc pcm037_io_desc[] __initdata = {
 		.virtual	= AIPS1_BASE_ADDR_VIRT,
 		.virtual	= AIPS1_BASE_ADDR_VIRT,
 		.pfn		= __phys_to_pfn(AIPS1_BASE_ADDR),
 		.pfn		= __phys_to_pfn(AIPS1_BASE_ADDR),
 		.length		= AIPS1_SIZE,
 		.length		= AIPS1_SIZE,
-		.type		= MT_DEVICE
+		.type		= MT_DEVICE_NONSHARED
 	}, {
 	}, {
 		.virtual	= AIPS2_BASE_ADDR_VIRT,
 		.virtual	= AIPS2_BASE_ADDR_VIRT,
 		.pfn		= __phys_to_pfn(AIPS2_BASE_ADDR),
 		.pfn		= __phys_to_pfn(AIPS2_BASE_ADDR),
 		.length		= AIPS2_SIZE,
 		.length		= AIPS2_SIZE,
-		.type		= MT_DEVICE
+		.type		= MT_DEVICE_NONSHARED
 	},
 	},
 };
 };
 
 

+ 2 - 0
arch/arm/mach-ns9xxx/gpio.c

@@ -8,6 +8,7 @@
  * under the terms of the GNU General Public License version 2 as published by
  * under the terms of the GNU General Public License version 2 as published by
  * the Free Software Foundation.
  * the Free Software Foundation.
  */
  */
+#include <linux/kernel.h>
 #include <linux/compiler.h>
 #include <linux/compiler.h>
 #include <linux/init.h>
 #include <linux/init.h>
 #include <linux/spinlock.h>
 #include <linux/spinlock.h>
@@ -63,6 +64,7 @@ EXPORT_SYMBOL(gpio_request);
 
 
 void gpio_free(unsigned gpio)
 void gpio_free(unsigned gpio)
 {
 {
+	might_sleep();
 	clear_bit(gpio, gpiores);
 	clear_bit(gpio, gpiores);
 	return;
 	return;
 }
 }

+ 2 - 0
arch/arm/mach-orion5x/gpio.c

@@ -165,6 +165,8 @@ EXPORT_SYMBOL(gpio_request);
 
 
 void gpio_free(unsigned pin)
 void gpio_free(unsigned pin)
 {
 {
+	might_sleep();
+
 	if (pin >= GPIO_MAX || !test_bit(pin, gpio_valid)) {
 	if (pin >= GPIO_MAX || !test_bit(pin, gpio_valid)) {
 		pr_debug("%s: invalid GPIO %d\n", __func__, pin);
 		pr_debug("%s: invalid GPIO %d\n", __func__, pin);
 		return;
 		return;

+ 3 - 1
arch/arm/mach-pxa/corgi_pm.c

@@ -204,7 +204,9 @@ static struct sharpsl_charger_machinfo corgi_pm_machinfo = {
 	.read_devdata    = corgipm_read_devdata,
 	.read_devdata    = corgipm_read_devdata,
 	.charger_wakeup  = corgi_charger_wakeup,
 	.charger_wakeup  = corgi_charger_wakeup,
 	.should_wakeup   = corgi_should_wakeup,
 	.should_wakeup   = corgi_should_wakeup,
-#ifdef CONFIG_BACKLIGHT_CORGI
+#if defined(CONFIG_LCD_CORGI)
+	.backlight_limit = corgi_lcd_limit_intensity,
+#elif defined(CONFIG_BACKLIGHT_CORGI)
 	.backlight_limit = corgibl_limit_intensity,
 	.backlight_limit = corgibl_limit_intensity,
 #endif
 #endif
 	.charge_on_volt	  = SHARPSL_CHARGE_ON_VOLT,
 	.charge_on_volt	  = SHARPSL_CHARGE_ON_VOLT,

+ 1 - 0
arch/arm/mach-pxa/include/mach/sharpsl.h

@@ -26,6 +26,7 @@ struct corgits_machinfo {
  * SharpSL Backlight
  * SharpSL Backlight
  */
  */
 extern void corgibl_limit_intensity(int limit);
 extern void corgibl_limit_intensity(int limit);
+extern void corgi_lcd_limit_intensity(int limit);
 
 
 
 
 /*
 /*

+ 12 - 0
arch/arm/mach-pxa/spitz.c

@@ -385,6 +385,16 @@ static void __init spitz_init_spi(void)
 	if (err)
 	if (err)
 		goto err_free_2;
 		goto err_free_2;
 
 
+	err = gpio_direction_output(SPITZ_GPIO_ADS7846_CS, 1);
+	if (err)
+		goto err_free_3;
+	err = gpio_direction_output(SPITZ_GPIO_LCDCON_CS, 1);
+	if (err)
+		goto err_free_3;
+	err = gpio_direction_output(SPITZ_GPIO_MAX1111_CS, 1);
+	if (err)
+		goto err_free_3;
+
 	if (machine_is_akita()) {
 	if (machine_is_akita()) {
 		spitz_lcdcon_info.gpio_backlight_cont = AKITA_GPIO_BACKLIGHT_CONT;
 		spitz_lcdcon_info.gpio_backlight_cont = AKITA_GPIO_BACKLIGHT_CONT;
 		spitz_lcdcon_info.gpio_backlight_on = AKITA_GPIO_BACKLIGHT_ON;
 		spitz_lcdcon_info.gpio_backlight_on = AKITA_GPIO_BACKLIGHT_ON;
@@ -394,6 +404,8 @@ static void __init spitz_init_spi(void)
 	spi_register_board_info(ARRAY_AND_SIZE(spitz_spi_devices));
 	spi_register_board_info(ARRAY_AND_SIZE(spitz_spi_devices));
 	return;
 	return;
 
 
+err_free_3:
+	gpio_free(SPITZ_GPIO_MAX1111_CS);
 err_free_2:
 err_free_2:
 	gpio_free(SPITZ_GPIO_LCDCON_CS);
 	gpio_free(SPITZ_GPIO_LCDCON_CS);
 err_free_1:
 err_free_1:

+ 3 - 1
arch/arm/mach-pxa/spitz_pm.c

@@ -198,7 +198,9 @@ struct sharpsl_charger_machinfo spitz_pm_machinfo = {
 	.read_devdata     = spitzpm_read_devdata,
 	.read_devdata     = spitzpm_read_devdata,
 	.charger_wakeup   = spitz_charger_wakeup,
 	.charger_wakeup   = spitz_charger_wakeup,
 	.should_wakeup    = spitz_should_wakeup,
 	.should_wakeup    = spitz_should_wakeup,
-#ifdef CONFIG_BACKLIGHT_CORGI
+#if defined(CONFIG_LCD_CORGI)
+	.backlight_limit = corgi_lcd_limit_intensity,
+#elif defined(CONFIG_BACKLIGHT_CORGI)
         .backlight_limit  = corgibl_limit_intensity,
         .backlight_limit  = corgibl_limit_intensity,
 #endif
 #endif
 	.charge_on_volt	  = SHARPSL_CHARGE_ON_VOLT,
 	.charge_on_volt	  = SHARPSL_CHARGE_ON_VOLT,

+ 1 - 1
arch/arm/mm/proc-xsc3.S

@@ -349,7 +349,7 @@ ENTRY(cpu_xsc3_switch_mm)
 cpu_xsc3_mt_table:
 cpu_xsc3_mt_table:
 	.long	0x00						@ L_PTE_MT_UNCACHED
 	.long	0x00						@ L_PTE_MT_UNCACHED
 	.long	PTE_EXT_TEX(1)					@ L_PTE_MT_BUFFERABLE
 	.long	PTE_EXT_TEX(1)					@ L_PTE_MT_BUFFERABLE
-	.long	PTE_CACHEABLE					@ L_PTE_MT_WRITETHROUGH
+	.long	PTE_EXT_TEX(5) | PTE_CACHEABLE			@ L_PTE_MT_WRITETHROUGH
 	.long	PTE_CACHEABLE | PTE_BUFFERABLE			@ L_PTE_MT_WRITEBACK
 	.long	PTE_CACHEABLE | PTE_BUFFERABLE			@ L_PTE_MT_WRITEBACK
 	.long	PTE_EXT_TEX(1) | PTE_BUFFERABLE			@ L_PTE_MT_DEV_SHARED
 	.long	PTE_EXT_TEX(1) | PTE_BUFFERABLE			@ L_PTE_MT_DEV_SHARED
 	.long	0x00						@ unused
 	.long	0x00						@ unused

+ 1 - 1
arch/arm/plat-mxc/gpio.c

@@ -188,7 +188,7 @@ static int mxc_gpio_get(struct gpio_chip *chip, unsigned offset)
 	struct mxc_gpio_port *port =
 	struct mxc_gpio_port *port =
 		container_of(chip, struct mxc_gpio_port, chip);
 		container_of(chip, struct mxc_gpio_port, chip);
 
 
-	return (__raw_readl(port->base + GPIO_DR) >> offset) & 1;
+	return (__raw_readl(port->base + GPIO_PSR) >> offset) & 1;
 }
 }
 
 
 static int mxc_gpio_direction_input(struct gpio_chip *chip, unsigned offset)
 static int mxc_gpio_direction_input(struct gpio_chip *chip, unsigned offset)

+ 20 - 0
arch/arm/plat-mxc/include/mach/io.h

@@ -14,6 +14,26 @@
 /* Allow IO space to be anywhere in the memory */
 /* Allow IO space to be anywhere in the memory */
 #define IO_SPACE_LIMIT 0xffffffff
 #define IO_SPACE_LIMIT 0xffffffff
 
 
+#ifdef CONFIG_ARCH_MX3
+#define __arch_ioremap __mx3_ioremap
+#define __arch_iounmap __iounmap
+
+static inline void __iomem *
+__mx3_ioremap(unsigned long phys_addr, size_t size, unsigned int mtype)
+{
+	if (mtype == MT_DEVICE) {
+		/* Access all peripherals below 0x80000000 as nonshared device
+		 * but leave l2cc alone.
+		 */
+		if ((phys_addr < 0x80000000) && ((phys_addr < L2CC_BASE_ADDR) ||
+			(phys_addr >= L2CC_BASE_ADDR + L2CC_SIZE)))
+			mtype = MT_DEVICE_NONSHARED;
+	}
+
+	return __arm_ioremap(phys_addr, size, mtype);
+}
+#endif
+
 /* io address mapping macro */
 /* io address mapping macro */
 #define __io(a)			((void __iomem *)(a))
 #define __io(a)			((void __iomem *)(a))
 
 

+ 27 - 60
arch/cris/Makefile

@@ -23,12 +23,17 @@ mach-$(CONFIG_ETRAXFS) := fs
 
 
 ifneq ($(arch-y),)
 ifneq ($(arch-y),)
 SARCH := arch-$(arch-y)
 SARCH := arch-$(arch-y)
+inc := -Iarch/cris/include/$(SARCH)
+inc += -Iarch/cris/include/$(SARCH)/arch
 else
 else
 SARCH :=
 SARCH :=
+inc :=
 endif
 endif
 
 
 ifneq ($(mach-y),)
 ifneq ($(mach-y),)
 MACH := mach-$(mach-y)
 MACH := mach-$(mach-y)
+inc += -Iarch/cris/include/$(SARCH)/$(MACH)/
+inc += -Iarch/cris/include/$(SARCH)/$(MACH)/mach
 else
 else
 MACH :=
 MACH :=
 endif
 endif
@@ -39,95 +44,57 @@ OBJCOPYFLAGS := -O binary -R .note -R .comment -S
 
 
 CPPFLAGS_vmlinux.lds = -DDRAM_VIRTUAL_BASE=0x$(CONFIG_ETRAX_DRAM_VIRTUAL_BASE)
 CPPFLAGS_vmlinux.lds = -DDRAM_VIRTUAL_BASE=0x$(CONFIG_ETRAX_DRAM_VIRTUAL_BASE)
 
 
-KBUILD_AFLAGS += -mlinux -march=$(arch-y) -Iinclude/asm/arch/mach -Iinclude/asm/arch
-
-KBUILD_CFLAGS += -mlinux -march=$(arch-y) -pipe -Iinclude/asm/arch/mach -Iinclude/asm/arch
+KBUILD_AFLAGS += -mlinux -march=$(arch-y) $(inc)
+KBUILD_CFLAGS += -mlinux -march=$(arch-y) -pipe $(inc)
+KBUILD_CPPFLAGS += $(inc)
 
 
 ifdef CONFIG_FRAME_POINTER
 ifdef CONFIG_FRAME_POINTER
 KBUILD_CFLAGS := $(subst -fomit-frame-pointer,,$(KBUILD_CFLAGS)) -g
 KBUILD_CFLAGS := $(subst -fomit-frame-pointer,,$(KBUILD_CFLAGS)) -g
 KBUILD_CFLAGS += -fno-omit-frame-pointer
 KBUILD_CFLAGS += -fno-omit-frame-pointer
 endif
 endif
 
 
-head-y := arch/$(ARCH)/$(SARCH)/kernel/head.o
+head-y := arch/cris/$(SARCH)/kernel/head.o
 
 
 LIBGCC = $(shell $(CC) $(KBUILD_CFLAGS) -print-file-name=libgcc.a)
 LIBGCC = $(shell $(CC) $(KBUILD_CFLAGS) -print-file-name=libgcc.a)
 
 
-core-y		+= arch/$(ARCH)/kernel/ arch/$(ARCH)/mm/
-core-y		+= arch/$(ARCH)/$(SARCH)/kernel/ arch/$(ARCH)/$(SARCH)/mm/
+core-y		+= arch/cris/kernel/ arch/cris/mm/
+core-y		+= arch/cris/$(SARCH)/kernel/ arch/cris/$(SARCH)/mm/
 ifdef CONFIG_ETRAX_ARCH_V32
 ifdef CONFIG_ETRAX_ARCH_V32
-core-y		+= arch/$(ARCH)/$(SARCH)/$(MACH)/
+core-y		+= arch/cris/$(SARCH)/$(MACH)/
 endif
 endif
-drivers-y	+= arch/$(ARCH)/$(SARCH)/drivers/
-libs-y		+= arch/$(ARCH)/$(SARCH)/lib/ $(LIBGCC)
+drivers-y	+= arch/cris/$(SARCH)/drivers/
+libs-y		+= arch/cris/$(SARCH)/lib/ $(LIBGCC)
 
 
 # cris source path
 # cris source path
-SRC_ARCH              = $(srctree)/arch/$(ARCH)
+SRC_ARCH              = $(srctree)/arch/cris
 # cris object files path
 # cris object files path
-OBJ_ARCH              = $(objtree)/arch/$(ARCH)
+OBJ_ARCH              = $(objtree)/arch/cris
 
 
-boot := arch/$(ARCH)/boot
-MACHINE := arch/$(ARCH)/$(SARCH)
+boot := arch/cris/$(SARCH)/boot
+MACHINE := arch/cris/$(SARCH)
 
 
 all: zImage
 all: zImage
 
 
 zImage Image: vmlinux
 zImage Image: vmlinux
 	$(Q)$(MAKE) $(build)=$(boot) MACHINE=$(MACHINE) $(boot)/$@
 	$(Q)$(MAKE) $(build)=$(boot) MACHINE=$(MACHINE) $(boot)/$@
 
 
-archprepare: $(SRC_ARCH)/.links $(srctree)/include/asm-$(ARCH)/.arch FORCE
-
-# Create some links to make all tools happy
-$(SRC_ARCH)/.links:
-	@rm -rf $(SRC_ARCH)/drivers
-	@ln -sfn $(SARCH)/drivers $(SRC_ARCH)/drivers
-	@rm -rf $(SRC_ARCH)/boot
-	@ln -sfn $(SARCH)/boot $(SRC_ARCH)/boot
-	@rm -rf $(SRC_ARCH)/lib
-	@ln -sfn $(SARCH)/lib $(SRC_ARCH)/lib
-	@rm -f $(SRC_ARCH)/arch/mach
-	@rm -rf $(SRC_ARCH)/arch
-	@ln -sfn $(SARCH) $(SRC_ARCH)/arch
-ifdef CONFIG_ETRAX_ARCH_V32
-	@ln -sfn ../$(SARCH)/$(MACH) $(SRC_ARCH)/arch/mach
-endif
-	@rm -rf $(SRC_ARCH)/kernel/vmlinux.lds.S
-	@ln -sfn ../$(SARCH)/vmlinux.lds.S $(SRC_ARCH)/kernel/vmlinux.lds.S
-	@rm -rf $(SRC_ARCH)/kernel/asm-offsets.c
-	@ln -sfn ../$(SARCH)/kernel/asm-offsets.c $(SRC_ARCH)/kernel/asm-offsets.c
-	@touch $@
-
-# Create link to sub arch includes
-$(srctree)/include/asm-$(ARCH)/.arch: $(wildcard include/config/arch/*.h)
-	@echo '  SYMLINK include/asm-$(ARCH)/arch -> include/asm-$(ARCH)/$(SARCH)'
-	@rm -f $(srctree)/include/asm-$(ARCH)/arch/mach
-	@rm -f $(srctree)/include/asm-$(ARCH)/arch
-	@ln -sf $(SARCH) $(srctree)/include/asm-$(ARCH)/arch
-ifdef CONFIG_ETRAX_ARCH_V32
-	@ln -sf $(MACH) $(srctree)/include/asm-$(ARCH)/arch/mach
-endif
-	@touch $@
+archprepare:
 
 
 archclean:
 archclean:
-	$(Q)if [ -e arch/$(ARCH)/boot ]; then \
-		$(MAKE) $(clean)=arch/$(ARCH)/boot; \
+	$(Q)if [ -e arch/cris/$(SARCH)/boot ]; then \
+		$(MAKE) $(clean)=arch/cris/$(SARCH)/boot; \
 	fi
 	fi
 
 
 CLEAN_FILES += \
 CLEAN_FILES += \
 	$(MACHINE)/boot/zImage \
 	$(MACHINE)/boot/zImage \
 	$(MACHINE)/boot/compressed/decompress.bin \
 	$(MACHINE)/boot/compressed/decompress.bin \
 	$(MACHINE)/boot/compressed/piggy.gz \
 	$(MACHINE)/boot/compressed/piggy.gz \
-	$(MACHINE)/boot/rescue/rescue.bin \
-	$(SRC_ARCH)/.links \
-	$(srctree)/include/asm-$(ARCH)/.arch
-
-MRPROPER_FILES += \
-	$(SRC_ARCH)/drivers \
-	$(SRC_ARCH)/boot \
-	$(SRC_ARCH)/lib \
-	$(SRC_ARCH)/arch \
-	$(SRC_ARCH)/kernel/vmlinux.lds.S \
-	$(SRC_ARCH)/kernel/asm-offsets.c
+	$(MACHINE)/boot/rescue/rescue.bin
+
+
+# MRPROPER_FILES +=
 
 
 define archhelp
 define archhelp
-  echo  '* zImage        - Compressed kernel image (arch/$(ARCH)/boot/zImage)'
-  echo  '* Image         - Uncompressed kernel image (arch/$(ARCH)/boot/Image)'
+  echo  '* zImage        - Compressed kernel image (arch/cris/boot/zImage)'
+  echo  '* Image         - Uncompressed kernel image (arch/cris/boot/Image)'
 endef
 endef

+ 2 - 0
arch/cris/arch-v10/boot/.gitignore

@@ -0,0 +1,2 @@
+Image
+zImage

+ 1 - 1
arch/cris/arch-v10/boot/compressed/head.S

@@ -9,7 +9,7 @@
  */
  */
 
 
 #define ASSEMBLER_MACROS_ONLY
 #define ASSEMBLER_MACROS_ONLY
-#include <asm/arch/sv_addr_ag.h>
+#include <arch/sv_addr_ag.h>
 
 
 #define RAM_INIT_MAGIC 0x56902387
 #define RAM_INIT_MAGIC 0x56902387
 #define COMMAND_LINE_MAGIC 0x87109563
 #define COMMAND_LINE_MAGIC 0x87109563

+ 1 - 1
arch/cris/arch-v10/boot/compressed/misc.c

@@ -20,7 +20,7 @@
 
 
 
 
 #include <linux/types.h>
 #include <linux/types.h>
-#include <asm/arch/svinto.h>
+#include <arch/svinto.h>
 
 
 /*
 /*
  * gzip declarations
  * gzip declarations

+ 1 - 1
arch/cris/arch-v10/boot/rescue/head.S

@@ -65,7 +65,7 @@
 #ifdef CONFIG_ETRAX_AXISFLASHMAP
 #ifdef CONFIG_ETRAX_AXISFLASHMAP
 
 
 #define ASSEMBLER_MACROS_ONLY
 #define ASSEMBLER_MACROS_ONLY
-#include <asm/arch/sv_addr_ag.h>
+#include <arch/sv_addr_ag.h>
 
 
 	;; The partitiontable is looked for at the first sector after the boot
 	;; The partitiontable is looked for at the first sector after the boot
 	;; sector. Sector size is 65536 bytes in all flashes we use.
 	;; sector. Sector size is 65536 bytes in all flashes we use.

+ 1 - 1
arch/cris/arch-v10/boot/rescue/kimagerescue.S

@@ -6,7 +6,7 @@
  */
  */
 
 
 #define ASSEMBLER_MACROS_ONLY
 #define ASSEMBLER_MACROS_ONLY
-#include <asm/arch/sv_addr_ag.h>
+#include <arch/sv_addr_ag.h>
 
 
 #define CODE_START 0x40004000
 #define CODE_START 0x40004000
 #define CODE_LENGTH 784
 #define CODE_LENGTH 784

+ 1 - 1
arch/cris/arch-v10/boot/rescue/testrescue.S

@@ -6,7 +6,7 @@
  */
  */
 
 
 #define ASSEMBLER_MACROS_ONLY
 #define ASSEMBLER_MACROS_ONLY
-#include <asm/arch/sv_addr_ag.h>
+#include <arch/sv_addr_ag.h>
 
 
 	.text
 	.text
 
 

+ 1 - 1
arch/cris/arch-v10/drivers/axisflashmap.c

@@ -26,7 +26,7 @@
 
 
 #include <asm/axisflashmap.h>
 #include <asm/axisflashmap.h>
 #include <asm/mmu.h>
 #include <asm/mmu.h>
-#include <asm/arch/sv_addr_ag.h>
+#include <arch/sv_addr_ag.h>
 
 
 #ifdef CONFIG_CRIS_LOW_MAP
 #ifdef CONFIG_CRIS_LOW_MAP
 #define FLASH_UNCACHED_ADDR  KSEG_8
 #define FLASH_UNCACHED_ADDR  KSEG_8

+ 2 - 2
arch/cris/arch-v10/drivers/ds1302.c

@@ -24,10 +24,10 @@
 
 
 #include <asm/uaccess.h>
 #include <asm/uaccess.h>
 #include <asm/system.h>
 #include <asm/system.h>
-#include <asm/arch/svinto.h>
+#include <arch/svinto.h>
 #include <asm/io.h>
 #include <asm/io.h>
 #include <asm/rtc.h>
 #include <asm/rtc.h>
-#include <asm/arch/io_interface_mux.h>
+#include <arch/io_interface_mux.h>
 
 
 #include "i2c.h"
 #include "i2c.h"
 
 

+ 2 - 2
arch/cris/arch-v10/drivers/gpio.c

@@ -23,11 +23,11 @@
 #include <linux/interrupt.h>
 #include <linux/interrupt.h>
 
 
 #include <asm/etraxgpio.h>
 #include <asm/etraxgpio.h>
-#include <asm/arch/svinto.h>
+#include <arch/svinto.h>
 #include <asm/io.h>
 #include <asm/io.h>
 #include <asm/system.h>
 #include <asm/system.h>
 #include <asm/irq.h>
 #include <asm/irq.h>
-#include <asm/arch/io_interface_mux.h>
+#include <arch/io_interface_mux.h>
 
 
 #define GPIO_MAJOR 120  /* experimental MAJOR number */
 #define GPIO_MAJOR 120  /* experimental MAJOR number */
 
 

+ 2 - 2
arch/cris/arch-v10/drivers/i2c.c

@@ -25,10 +25,10 @@
 #include <asm/etraxi2c.h>
 #include <asm/etraxi2c.h>
 
 
 #include <asm/system.h>
 #include <asm/system.h>
-#include <asm/arch/svinto.h>
+#include <arch/svinto.h>
 #include <asm/io.h>
 #include <asm/io.h>
 #include <asm/delay.h>
 #include <asm/delay.h>
-#include <asm/arch/io_interface_mux.h>
+#include <arch/io_interface_mux.h>
 
 
 #include "i2c.h"
 #include "i2c.h"
 
 

+ 2 - 2
arch/cris/arch-v10/drivers/sync_serial.c

@@ -26,11 +26,11 @@
 #include <asm/irq.h>
 #include <asm/irq.h>
 #include <asm/dma.h>
 #include <asm/dma.h>
 #include <asm/io.h>
 #include <asm/io.h>
-#include <asm/arch/svinto.h>
+#include <arch/svinto.h>
 #include <asm/uaccess.h>
 #include <asm/uaccess.h>
 #include <asm/system.h>
 #include <asm/system.h>
 #include <asm/sync_serial.h>
 #include <asm/sync_serial.h>
-#include <asm/arch/io_interface_mux.h>
+#include <arch/io_interface_mux.h>
 
 
 /* The receiver is a bit tricky beacuse of the continuous stream of data.*/
 /* The receiver is a bit tricky beacuse of the continuous stream of data.*/
 /*                                                                       */
 /*                                                                       */

+ 0 - 47
arch/cris/arch-v10/kernel/asm-offsets.c

@@ -1,47 +0,0 @@
-#include <linux/sched.h>
-#include <asm/thread_info.h>
-
-/*
- * Generate definitions needed by assembly language modules.
- * This code generates raw asm output which is post-processed to extract
- * and format the required data.
- */
-
-#define DEFINE(sym, val) \
-        asm volatile("\n->" #sym " %0 " #val : : "i" (val))
-
-#define BLANK() asm volatile("\n->" : : )
-
-int main(void)
-{
-#define ENTRY(entry) DEFINE(PT_ ## entry, offsetof(struct pt_regs, entry))
-	ENTRY(orig_r10);
-	ENTRY(r13); 
-	ENTRY(r12); 
-	ENTRY(r11);
-        ENTRY(r10);
-        ENTRY(r9);
-        ENTRY(mof);
-        ENTRY(dccr);
-        ENTRY(srp);
-	BLANK();
-#undef ENTRY
-#define ENTRY(entry) DEFINE(TI_ ## entry, offsetof(struct thread_info, entry))
-        ENTRY(task);
-        ENTRY(flags);
-        ENTRY(preempt_count);
-        BLANK();
-#undef ENTRY
-#define ENTRY(entry) DEFINE(THREAD_ ## entry, offsetof(struct thread_struct, entry))
-	ENTRY(ksp);
-        ENTRY(usp);
-        ENTRY(dccr);
-        BLANK();
-#undef ENTRY
-#define ENTRY(entry) DEFINE(TASK_ ## entry, offsetof(struct task_struct, entry))
-        ENTRY(pid);
-        BLANK();
-        DEFINE(LCLONE_VM, CLONE_VM);
-        DEFINE(LCLONE_UNTRACED, CLONE_UNTRACED);
-        return 0;
-}

+ 1 - 1
arch/cris/arch-v10/kernel/crisksyms.c

@@ -1,6 +1,6 @@
 #include <linux/module.h>
 #include <linux/module.h>
 #include <asm/io.h>
 #include <asm/io.h>
-#include <asm/arch/svinto.h>
+#include <arch/svinto.h>
 
 
 /* Export shadow registers for the CPU I/O pins */
 /* Export shadow registers for the CPU I/O pins */
 EXPORT_SYMBOL(genconfig_shadow);
 EXPORT_SYMBOL(genconfig_shadow);

+ 1 - 1
arch/cris/arch-v10/kernel/debugport.c

@@ -19,7 +19,7 @@
 #include <linux/delay.h>
 #include <linux/delay.h>
 #include <linux/tty.h>
 #include <linux/tty.h>
 #include <asm/system.h>
 #include <asm/system.h>
-#include <asm/arch/svinto.h>
+#include <arch/svinto.h>
 #include <asm/io.h>             /* Get SIMCOUT. */
 #include <asm/io.h>             /* Get SIMCOUT. */
 
 
 extern void reset_watchdog(void);
 extern void reset_watchdog(void);

+ 1 - 1
arch/cris/arch-v10/kernel/dma.c

@@ -7,7 +7,7 @@
 #include <linux/errno.h>
 #include <linux/errno.h>
 
 
 #include <asm/dma.h>
 #include <asm/dma.h>
-#include <asm/arch/svinto.h>
+#include <arch/svinto.h>
 
 
 /* Macro to access ETRAX 100 registers */
 /* Macro to access ETRAX 100 registers */
 #define SETS(var, reg, field, val) var = (var & ~IO_MASK_(reg##_, field##_)) | \
 #define SETS(var, reg, field, val) var = (var & ~IO_MASK_(reg##_, field##_)) | \

+ 1 - 1
arch/cris/arch-v10/kernel/entry.S

@@ -23,7 +23,7 @@
 #include <linux/linkage.h>
 #include <linux/linkage.h>
 #include <linux/sys.h>
 #include <linux/sys.h>
 #include <asm/unistd.h>
 #include <asm/unistd.h>
-#include <asm/arch/sv_addr_ag.h>
+#include <arch/sv_addr_ag.h>
 #include <asm/errno.h>
 #include <asm/errno.h>
 #include <asm/thread_info.h>
 #include <asm/thread_info.h>
 #include <asm/asm-offsets.h>
 #include <asm/asm-offsets.h>

+ 1 - 1
arch/cris/arch-v10/kernel/fasttimer.c

@@ -24,7 +24,7 @@
 #include <asm/rtc.h>
 #include <asm/rtc.h>
 
 
 
 
-#include <asm/arch/svinto.h>
+#include <arch/svinto.h>
 #include <asm/fasttimer.h>
 #include <asm/fasttimer.h>
 #include <linux/proc_fs.h>
 #include <linux/proc_fs.h>
 
 

+ 1 - 1
arch/cris/arch-v10/kernel/head.S

@@ -10,7 +10,7 @@
 #define ASSEMBLER_MACROS_ONLY
 #define ASSEMBLER_MACROS_ONLY
 /* The IO_* macros use the ## token concatenation operator, so
 /* The IO_* macros use the ## token concatenation operator, so
    -traditional must not be used when assembling this file.  */
    -traditional must not be used when assembling this file.  */
-#include <asm/arch/sv_addr_ag.h>
+#include <arch/sv_addr_ag.h>
 
 
 #define CRAMFS_MAGIC 0x28cd3d45
 #define CRAMFS_MAGIC 0x28cd3d45
 #define RAM_INIT_MAGIC 0x56902387
 #define RAM_INIT_MAGIC 0x56902387

+ 2 - 2
arch/cris/arch-v10/kernel/io_interface_mux.c

@@ -11,9 +11,9 @@
 #include <linux/module.h>
 #include <linux/module.h>
 #include <linux/init.h>
 #include <linux/init.h>
 
 
-#include <asm/arch/svinto.h>
+#include <arch/svinto.h>
 #include <asm/io.h>
 #include <asm/io.h>
-#include <asm/arch/io_interface_mux.h>
+#include <arch/io_interface_mux.h>
 
 
 
 
 #define DBG(s)
 #define DBG(s)

+ 1 - 1
arch/cris/arch-v10/kernel/kgdb.c

@@ -176,7 +176,7 @@
 #include <asm/setup.h>
 #include <asm/setup.h>
 #include <asm/ptrace.h>
 #include <asm/ptrace.h>
 
 
-#include <asm/arch/svinto.h>
+#include <arch/svinto.h>
 #include <asm/irq.h>
 #include <asm/irq.h>
 
 
 static int kgdb_started = 0;
 static int kgdb_started = 0;

+ 1 - 1
arch/cris/arch-v10/kernel/process.c

@@ -14,7 +14,7 @@
 #include <linux/err.h>
 #include <linux/err.h>
 #include <linux/fs.h>
 #include <linux/fs.h>
 #include <linux/slab.h>
 #include <linux/slab.h>
-#include <asm/arch/svinto.h>
+#include <arch/svinto.h>
 #include <linux/init.h>
 #include <linux/init.h>
 
 
 #ifdef CONFIG_ETRAX_GPIO
 #ifdef CONFIG_ETRAX_GPIO

+ 1 - 1
arch/cris/arch-v10/kernel/time.c

@@ -14,7 +14,7 @@
 #include <linux/sched.h>
 #include <linux/sched.h>
 #include <linux/init.h>
 #include <linux/init.h>
 #include <linux/mm.h>
 #include <linux/mm.h>
-#include <asm/arch/svinto.h>
+#include <arch/svinto.h>
 #include <asm/types.h>
 #include <asm/types.h>
 #include <asm/signal.h>
 #include <asm/signal.h>
 #include <asm/io.h>
 #include <asm/io.h>

+ 1 - 1
arch/cris/arch-v10/kernel/traps.c

@@ -10,7 +10,7 @@
 
 
 #include <linux/ptrace.h>
 #include <linux/ptrace.h>
 #include <asm/uaccess.h>
 #include <asm/uaccess.h>
-#include <asm/arch/sv_addr_ag.h>
+#include <arch/sv_addr_ag.h>
 
 
 void
 void
 show_registers(struct pt_regs *regs)
 show_registers(struct pt_regs *regs)

+ 1 - 1
arch/cris/arch-v10/mm/fault.c

@@ -13,7 +13,7 @@
 #include <linux/mm.h>
 #include <linux/mm.h>
 #include <asm/uaccess.h>
 #include <asm/uaccess.h>
 #include <asm/pgtable.h>
 #include <asm/pgtable.h>
-#include <asm/arch/svinto.h>
+#include <arch/svinto.h>
 #include <asm/mmu_context.h>
 #include <asm/mmu_context.h>
 
 
 /* debug of low-level TLB reload */
 /* debug of low-level TLB reload */

+ 1 - 1
arch/cris/arch-v10/mm/init.c

@@ -12,7 +12,7 @@
 #include <asm/mmu.h>
 #include <asm/mmu.h>
 #include <asm/io.h>
 #include <asm/io.h>
 #include <asm/mmu_context.h>
 #include <asm/mmu_context.h>
-#include <asm/arch/svinto.h>
+#include <arch/svinto.h>
 
 
 extern void tlb_init(void);
 extern void tlb_init(void);
 
 

+ 1 - 1
arch/cris/arch-v10/mm/tlb.c

@@ -12,7 +12,7 @@
 
 
 #include <asm/tlb.h>
 #include <asm/tlb.h>
 #include <asm/mmu_context.h>
 #include <asm/mmu_context.h>
-#include <asm/arch/svinto.h>
+#include <arch/svinto.h>
 
 
 #define D(x)
 #define D(x)
 
 

+ 0 - 118
arch/cris/arch-v10/vmlinux.lds.S

@@ -1,118 +0,0 @@
-/* ld script to make the Linux/CRIS kernel
- * Authors: Bjorn Wesen (bjornw@axis.com)
- *
- * It is VERY DANGEROUS to fiddle around with the symbols in this
- * script. It is for example quite vital that all generated sections
- * that are used are actually named here, otherwise the linker will
- * put them at the end, where the init stuff is which is FREED after
- * the kernel has booted. 
- */	
-
-#include <asm-generic/vmlinux.lds.h>
-#include <asm/page.h>
-
-jiffies = jiffies_64;
-SECTIONS
-{
-	. = DRAM_VIRTUAL_BASE;
-	dram_start = .;
-	ibr_start = .;
-	. = . + 0x4000; /* see head.S and pages reserved at the start */
-
-	_text = .;                    /* Text and read-only data */
-	text_start = .;              /* lots of aliases */
-	_stext = .;
-	__stext = .;
-	.text : {
-		TEXT_TEXT
-		SCHED_TEXT
-		LOCK_TEXT
-		*(.fixup)
-		*(.text.__*)
-	}
-
-	_etext = . ;                  /* End of text section */ 
-	__etext = .;
-
-	. = ALIGN(4);                /* Exception table */
-  	__start___ex_table = .;
-  	__ex_table : { *(__ex_table) }
-  	__stop___ex_table = .;
-
-	RODATA
-
-	. = ALIGN (4);
-	___data_start = . ;
-	__Sdata = . ;
-	.data : {                     /* Data */
-		DATA_DATA
-	}
-	__edata = . ;                 /* End of data section */
-	_edata = . ;
-
-	. = ALIGN(PAGE_SIZE);	/* init_task and stack, must be aligned */
-  	.data.init_task : { *(.data.init_task) }
-
-	. = ALIGN(PAGE_SIZE);	/* Init code and data */
-  	__init_begin = .;
-	.init.text : { 
-		   _sinittext = .;
-		   INIT_TEXT
-		   _einittext = .;
-	}
-	.init.data : { INIT_DATA }
-  	. = ALIGN(16);
-  	__setup_start = .;
-  	.init.setup : { *(.init.setup) }
-  	__setup_end = .;
-  	.initcall.init : {
-		__initcall_start = .;
-		INITCALLS
-		__initcall_end = .;	
-	}
-
-	.con_initcall.init : {
-		__con_initcall_start = .;
-		*(.con_initcall.init)
-		__con_initcall_end = .;
-	}	
-	SECURITY_INIT
-
-#ifdef CONFIG_BLK_DEV_INITRD
-	.init.ramfs : {
-		__initramfs_start = .;
-		*(.init.ramfs)
-		__initramfs_end = .;
-	}
-#endif
-	__vmlinux_end = .;            /* last address of the physical file */
-
-	/*
-	 * We fill to the next page, so we can discard all init
-	 * pages without needing to consider what payload might be
-	 * appended to the kernel image.
-	 */
-	. = ALIGN(PAGE_SIZE);
-
-	__init_end = .;
-
-	__data_end = . ;              /* Move to _edata ? */
-	__bss_start = .;              /* BSS */
-	.bss : {
-		*(COMMON)
-		*(.bss)
-	}
-
-	. =  ALIGN (0x20);
-	_end = .;
-	__end = .;
-
-	/* Sections to be discarded */
-  	/DISCARD/ : {
-		EXIT_TEXT
-		EXIT_DATA
-		*(.exitcall.exit)
-        }
-
-	dram_end = dram_start + CONFIG_ETRAX_DRAM_SIZE*1024*1024;
-}

+ 16 - 4
arch/cris/arch-v32/boot/compressed/head.S

@@ -7,7 +7,7 @@
 
 
 #define ASSEMBLER_MACROS_ONLY
 #define ASSEMBLER_MACROS_ONLY
 #include <hwregs/asm/reg_map_asm.h>
 #include <hwregs/asm/reg_map_asm.h>
-#include <asm/arch/mach/startup.inc>
+#include <mach/startup.inc>
 
 
 #define RAM_INIT_MAGIC 0x56902387
 #define RAM_INIT_MAGIC 0x56902387
 #define COMMAND_LINE_MAGIC 0x87109563
 #define COMMAND_LINE_MAGIC 0x87109563
@@ -17,7 +17,7 @@
 	.globl	input_data
 	.globl	input_data
 
 
 	.text
 	.text
-start:
+_start:
 	di
 	di
 
 
 	;; Start clocks for used blocks.
 	;; Start clocks for used blocks.
@@ -28,7 +28,13 @@ start:
 	beq	dram_init_finished
 	beq	dram_init_finished
 	nop
 	nop
 
 
-#include "../../mach/dram_init.S"
+#if defined CONFIG_ETRAXFS
+#include "../../mach-fs/dram_init.S"
+#elif defined CONFIG_CRIS_MACH_ARTPEC3
+#include "../../mach-a3/dram_init.S"
+#else
+#error Only ETRAXFS and ARTPEC-3 supported!
+#endif
 
 
 dram_init_finished:
 dram_init_finished:
 
 
@@ -130,4 +136,10 @@ _cmd_line_addr:
 _boot_source:
 _boot_source:
 	.dword 0
 	.dword 0
 
 
-#include "../../mach/hw_settings.S"
+#if defined CONFIG_ETRAXFS
+#include "../../mach-fs/hw_settings.S"
+#elif defined CONFIG_CRIS_MACH_ARTPEC3
+#include "../../mach-a3/hw_settings.S"
+#else
+#error Only ETRAXFS and ARTPEC-3 supported!
+#endif

+ 1 - 1
arch/cris/arch-v32/drivers/mach-a3/gpio.c

@@ -33,7 +33,7 @@
 #include <asm/io.h>
 #include <asm/io.h>
 #include <asm/system.h>
 #include <asm/system.h>
 #include <asm/irq.h>
 #include <asm/irq.h>
-#include <asm/arch/mach/pinmux.h>
+#include <mach/pinmux.h>
 
 
 #ifdef CONFIG_ETRAX_VIRTUAL_GPIO
 #ifdef CONFIG_ETRAX_VIRTUAL_GPIO
 #include "../i2c.h"
 #include "../i2c.h"

+ 1 - 1
arch/cris/arch-v32/drivers/mach-a3/nandflash.c

@@ -18,7 +18,7 @@
 #include <linux/mtd/mtd.h>
 #include <linux/mtd/mtd.h>
 #include <linux/mtd/nand.h>
 #include <linux/mtd/nand.h>
 #include <linux/mtd/partitions.h>
 #include <linux/mtd/partitions.h>
-#include <asm/arch/memmap.h>
+#include <arch/memmap.h>
 #include <hwregs/reg_map.h>
 #include <hwregs/reg_map.h>
 #include <hwregs/reg_rdwr.h>
 #include <hwregs/reg_rdwr.h>
 #include <hwregs/pio_defs.h>
 #include <hwregs/pio_defs.h>

+ 1 - 1
arch/cris/arch-v32/drivers/mach-fs/nandflash.c

@@ -18,7 +18,7 @@
 #include <linux/mtd/mtd.h>
 #include <linux/mtd/mtd.h>
 #include <linux/mtd/nand.h>
 #include <linux/mtd/nand.h>
 #include <linux/mtd/partitions.h>
 #include <linux/mtd/partitions.h>
-#include <asm/arch/memmap.h>
+#include <arch/memmap.h>
 #include <hwregs/reg_map.h>
 #include <hwregs/reg_map.h>
 #include <hwregs/reg_rdwr.h>
 #include <hwregs/reg_rdwr.h>
 #include <hwregs/gio_defs.h>
 #include <hwregs/gio_defs.h>

+ 1 - 1
arch/cris/arch-v32/drivers/pci/bios.c

@@ -1,6 +1,6 @@
 #include <linux/pci.h>
 #include <linux/pci.h>
 #include <linux/kernel.h>
 #include <linux/kernel.h>
-#include <asm/arch/hwregs/intr_vect.h>
+#include <arch/hwregs/intr_vect.h>
 
 
 void __devinit  pcibios_fixup_bus(struct pci_bus *b)
 void __devinit  pcibios_fixup_bus(struct pci_bus *b)
 {
 {

+ 2 - 2
arch/cris/arch-v32/kernel/cache.c

@@ -1,7 +1,7 @@
 #include <linux/module.h>
 #include <linux/module.h>
 #include <asm/io.h>
 #include <asm/io.h>
-#include <asm/arch/cache.h>
-#include <asm/arch/hwregs/dma.h>
+#include <arch/cache.h>
+#include <arch/hwregs/dma.h>
 
 
 /* This file is used to workaround a cache bug, Guinness TR 106. */
 /* This file is used to workaround a cache bug, Guinness TR 106. */
 
 

+ 4 - 4
arch/cris/arch-v32/kernel/crisksyms.c

@@ -1,9 +1,9 @@
 #include <linux/module.h>
 #include <linux/module.h>
 #include <linux/irq.h>
 #include <linux/irq.h>
-#include <asm/arch/dma.h>
-#include <asm/arch/intmem.h>
-#include <asm/arch/mach/pinmux.h>
-#include <asm/arch/io.h>
+#include <arch/dma.h>
+#include <arch/intmem.h>
+#include <mach/pinmux.h>
+#include <arch/io.h>
 
 
 /* Functions for allocating DMA channels */
 /* Functions for allocating DMA channels */
 EXPORT_SYMBOL(crisv32_request_dma);
 EXPORT_SYMBOL(crisv32_request_dma);

+ 1 - 1
arch/cris/arch-v32/kernel/debugport.c

@@ -9,7 +9,7 @@
 #include <hwregs/reg_map.h>
 #include <hwregs/reg_map.h>
 #include <hwregs/ser_defs.h>
 #include <hwregs/ser_defs.h>
 #include <hwregs/dma_defs.h>
 #include <hwregs/dma_defs.h>
-#include <asm/arch/mach/pinmux.h>
+#include <mach/pinmux.h>
 
 
 struct dbg_port
 struct dbg_port
 {
 {

+ 2 - 2
arch/cris/arch-v32/kernel/entry.S

@@ -24,8 +24,8 @@
 #include <asm/thread_info.h>
 #include <asm/thread_info.h>
 #include <asm/asm-offsets.h>
 #include <asm/asm-offsets.h>
 
 
-#include <asm/arch/hwregs/asm/reg_map_asm.h>
-#include <asm/arch/hwregs/asm/intr_vect_defs_asm.h>
+#include <hwregs/asm/reg_map_asm.h>
+#include <hwregs/asm/intr_vect_defs_asm.h>
 
 
 	;; Exported functions.
 	;; Exported functions.
 	.globl system_call
 	.globl system_call

+ 18 - 4
arch/cris/arch-v32/kernel/head.S

@@ -10,12 +10,13 @@
  * The macros found in mmu_defs_asm.h uses the ## concatenation operator, so
  * The macros found in mmu_defs_asm.h uses the ## concatenation operator, so
  * -traditional must not be used when assembling this file.
  * -traditional must not be used when assembling this file.
  */
  */
+#include <linux/autoconf.h>
+#include <arch/memmap.h>
 #include <hwregs/reg_rdwr.h>
 #include <hwregs/reg_rdwr.h>
-#include <asm/arch/memmap.h>
 #include <hwregs/intr_vect.h>
 #include <hwregs/intr_vect.h>
 #include <hwregs/asm/mmu_defs_asm.h>
 #include <hwregs/asm/mmu_defs_asm.h>
 #include <hwregs/asm/reg_map_asm.h>
 #include <hwregs/asm/reg_map_asm.h>
-#include <asm/arch/mach/startup.inc>
+#include <mach/startup.inc>
 
 
 #define CRAMFS_MAGIC 0x28cd3d45
 #define CRAMFS_MAGIC 0x28cd3d45
 #define JHEAD_MAGIC 0x1FF528A6
 #define JHEAD_MAGIC 0x1FF528A6
@@ -217,7 +218,14 @@ _inflash:
 	beq	_dram_initialized
 	beq	_dram_initialized
 	nop
 	nop
 
 
-#include "../mach/dram_init.S"
+#if defined CONFIG_ETRAXFS
+#include "../mach-fs/dram_init.S"
+#elif defined CONFIG_CRIS_MACH_ARTPEC3
+#include "../mach-a3/dram_init.S"
+#else
+#error Only ETRAXFS and ARTPEC-3 supported!
+#endif
+
 
 
 _dram_initialized:
 _dram_initialized:
 	;; Copy the text and data section to DRAM. This depends on that the
 	;; Copy the text and data section to DRAM. This depends on that the
@@ -472,4 +480,10 @@ swapper_pg_dir = 0xc0002000
 
 
 	.section ".init.data", "aw"
 	.section ".init.data", "aw"
 
 
-#include "../mach/hw_settings.S"
+#if defined CONFIG_ETRAXFS
+#include "../mach-fs/hw_settings.S"
+#elif defined CONFIG_CRIS_MACH_ARTPEC3
+#include "../mach-a3/hw_settings.S"
+#else
+#error Only ETRAXFS and ARTPEC-3 supported!
+#endif

+ 4 - 4
arch/cris/arch-v32/kernel/kgdb.c

@@ -174,10 +174,10 @@
 #include <asm/ptrace.h>
 #include <asm/ptrace.h>
 
 
 #include <asm/irq.h>
 #include <asm/irq.h>
-#include <asm/arch/hwregs/reg_map.h>
-#include <asm/arch/hwregs/reg_rdwr.h>
-#include <asm/arch/hwregs/intr_vect_defs.h>
-#include <asm/arch/hwregs/ser_defs.h>
+#include <arch/hwregs/reg_map.h>
+#include <arch/hwregs/reg_rdwr.h>
+#include <arch/hwregs/intr_vect_defs.h>
+#include <arch/hwregs/ser_defs.h>
 
 
 /* From entry.S. */
 /* From entry.S. */
 extern void gdb_handle_exception(void);
 extern void gdb_handle_exception(void);

+ 1 - 1
arch/cris/arch-v32/kernel/kgdb_asm.S

@@ -5,7 +5,7 @@
  * port exceptions for kernel debugging purposes.
  * port exceptions for kernel debugging purposes.
  */
  */
 
 
-#include <asm/arch/hwregs/intr_vect.h>
+#include <arch/hwregs/intr_vect.h>
 
 
 	;; Exported functions.
 	;; Exported functions.
 	.globl kgdb_handle_exception
 	.globl kgdb_handle_exception

+ 4 - 4
arch/cris/arch-v32/kernel/pinmux.c

@@ -11,10 +11,10 @@
 #include <linux/kernel.h>
 #include <linux/kernel.h>
 #include <linux/string.h>
 #include <linux/string.h>
 #include <linux/spinlock.h>
 #include <linux/spinlock.h>
-#include <asm/arch/hwregs/reg_map.h>
-#include <asm/arch/hwregs/reg_rdwr.h>
-#include <asm/arch/pinmux.h>
-#include <asm/arch/hwregs/pinmux_defs.h>
+#include <arch/hwregs/reg_map.h>
+#include <arch/hwregs/reg_rdwr.h>
+#include <arch/pinmux.h>
+#include <arch/hwregs/pinmux_defs.h>
 
 
 #undef DEBUG
 #undef DEBUG
 
 

Some files were not shown because too many files changed in this diff