]> pilppa.org Git - linux-2.6-omap-h63xx.git/log
linux-2.6-omap-h63xx.git
18 years agonamespaces: move the UTS namespace under UTS_NS option
Pavel Emelyanov [Fri, 8 Feb 2008 12:18:21 +0000 (04:18 -0800)]
namespaces: move the UTS namespace under UTS_NS option

Currently all the namespace management code is in the kernel/utsname.c file,
so just compile it out and make stubs in the appropriate header.

The init namespace itself is in init/version.c and is in the kernel all the
time.

Signed-off-by: Pavel Emelyanov <xemul@openvz.org>
Acked-by: Serge Hallyn <serue@us.ibm.com>
Cc: Cedric Le Goater <clg@fr.ibm.com>
Cc: "Eric W. Biederman" <ebiederm@xmission.com>
Cc: Herbert Poetzl <herbert@13thfloor.at>
Cc: Kirill Korotaev <dev@sw.ru>
Cc: Sukadev Bhattiprolu <sukadev@us.ibm.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
18 years agonamespaces: add the NAMESPACES config option
Pavel Emelyanov [Fri, 8 Feb 2008 12:18:19 +0000 (04:18 -0800)]
namespaces: add the NAMESPACES config option

The option is selectable if EMBEDDED is chosen only.  When the EMBEDDED is off
namespaces will be on.

Signed-off-by: Pavel Emelyanov <xemul@openvz.org>
Acked-by: Serge Hallyn <serue@us.ibm.com>
Cc: Cedric Le Goater <clg@fr.ibm.com>
Cc: "Eric W. Biederman" <ebiederm@xmission.com>
Cc: Herbert Poetzl <herbert@13thfloor.at>
Cc: Kirill Korotaev <dev@sw.ru>
Cc: Sukadev Bhattiprolu <sukadev@us.ibm.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
18 years agohugetlb: add locking for overcommit sysctl
Nishanth Aravamudan [Fri, 8 Feb 2008 12:18:18 +0000 (04:18 -0800)]
hugetlb: add locking for overcommit sysctl

When I replaced hugetlb_dynamic_pool with nr_overcommit_hugepages I used
proc_doulongvec_minmax() directly.  However, hugetlb.c's locking rules
require that all counter modifications occur under the hugetlb_lock.  Add a
callback into the hugetlb code similar to the one for nr_hugepages.  Grab
the lock around the manipulation of nr_overcommit_hugepages in
proc_doulongvec_minmax().

Signed-off-by: Nishanth Aravamudan <nacc@us.ibm.com>
Acked-by: Adam Litke <agl@us.ibm.com>
Cc: David Gibson <david@gibson.dropbear.id.au>
Cc: William Lee Irwin III <wli@holomorphy.com>
Cc: <stable@kernel.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
18 years agoinotify: fix check for one-shot watches before destroying them
Ulisses Furquim [Fri, 8 Feb 2008 12:18:16 +0000 (04:18 -0800)]
inotify: fix check for one-shot watches before destroying them

As the IN_ONESHOT bit is never set when an event is sent we must check it
in the watch's mask and not in the event's mask.

Signed-off-by: Ulisses Furquim <ulissesf@gmail.com>
Reported-by: "Clem Taylor" <clem.taylor@gmail.com>
Tested-by: "Clem Taylor" <clem.taylor@gmail.com>
Cc: Amy Griffis <amy.griffis@hp.com>
Cc: Robert Love <rlove@google.com>
Cc: John McCutchan <ttb@tentacle.dhs.org>
Cc: <stable@kernel.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
18 years ago[ARM] Orion: free up kernel virtual address space
Lennert Buytenhek [Thu, 7 Feb 2008 20:55:45 +0000 (21:55 +0100)]
[ARM] Orion: free up kernel virtual address space

Move Orion virtual mappings higher up in the address space, to free
up more kernel virtual address space.

Signed-off-by: Lennert Buytenhek <buytenh@marvell.com>
Signed-off-by: Nicolas Pitre <nico@marvell.com>
18 years ago[ARM] Orion: distinguish between physical and virtual addresses
Lennert Buytenhek [Thu, 7 Feb 2008 20:55:17 +0000 (21:55 +0100)]
[ARM] Orion: distinguish between physical and virtual addresses

Hack up the Orion port to distinguish between virtual and physical
addresses of register windows.  This will allow moving virtual
mappings higher up in the address space, to free up more kernel
virtual address space.

Signed-off-by: Lennert Buytenhek <buytenh@marvell.com>
Signed-off-by: Nicolas Pitre <nico@marvell.com>
18 years ago[ARM] Orion: kill orion_early_putstr()
Lennert Buytenhek [Thu, 7 Feb 2008 20:54:18 +0000 (21:54 +0100)]
[ARM] Orion: kill orion_early_putstr()

Kill orion_early_putstr(), as it isn't used anywhere.

Signed-off-by: Lennert Buytenhek <buytenh@marvell.com>
Signed-off-by: Nicolas Pitre <nico@marvell.com>
18 years ago[ARM] Orion: update defconfig
Nicolas Pitre [Thu, 7 Feb 2008 19:25:08 +0000 (14:25 -0500)]
[ARM] Orion: update defconfig

Signed-off-by: Nicolas Pitre <nico@marvell.com>
18 years ago[ARM] Orion: Use the sata_mv driver for the integrated SATA controller
Saeed Bishara [Tue, 29 Jan 2008 22:33:32 +0000 (11:33 -1100)]
[ARM] Orion: Use the sata_mv driver for the integrated SATA controller

This patch adds instantiation for the sata_mv driver, enabling the
integrated SATA controller.

Signed-off-by: Saeed Bishara <saeed@marvell.com>
Signed-off-by: Nicolas Pitre <nico@marvell.com>
18 years agoCRIS v32: Remove hwregs/timer_defs.h, it is now architecture specific.
Jesper Nilsson [Fri, 8 Feb 2008 16:51:15 +0000 (17:51 +0100)]
CRIS v32: Remove hwregs/timer_defs.h, it is now architecture specific.

- File is moved to arch-v32/mach-fs/hwregs/timer_defs.h

18 years agoCRIS v32: Change drivers/i2c.c locking.
Jesper Nilsson [Fri, 8 Feb 2008 16:00:25 +0000 (17:00 +0100)]
CRIS v32: Change drivers/i2c.c locking.

- Change spin_lock + local_irq_save into spin_lock_irqsave
- Change spin_unlock + local_irq_restore into spin_unlock_irqrestore
- Return ENOTTY if ioctl is not recognized as a cris ioctl.
- Make init functions static.

18 years agoCRIS v32: Rewrite ARTPEC-3 gpio driver to avoid volatiles and general cleanup.
Jesper Nilsson [Fri, 8 Feb 2008 15:28:36 +0000 (16:28 +0100)]
CRIS v32: Rewrite ARTPEC-3 gpio driver to avoid volatiles and general cleanup.

Changes as suggested by Andrew Morton, plus general cleanup to
ease later consolidation of driver into machine common driver.

- Correct parameter type of gpio_write to const char __user *
- Remove volatile from the arrays of machine dependent registers, use
  readl and writel to access them instead.
- Remove useless casts of void.
- Use spin_lock_irqsave for locking.
- Break gpio_write into smaller sub-functions.
- Remove useless breaks after returns.
- Don't perform any change in IO_CFG_WRITE_MODE if values are invalid.
  (previously values were set and then set to zero)
- Change cast for copy_to_user to (void __user *)
- Make file_operations gpio_fops static and const.
- Make setget_output static. (However, it's still inline since the CRIS
  architecture is still not SMP, which makes the function small enough
  to inline)

18 years agoEnhanced partition statistics: documentation update
Jerome Marchand [Fri, 8 Feb 2008 10:10:56 +0000 (11:10 +0100)]
Enhanced partition statistics: documentation update

Update the documentation to reflect the change in userspace interface.

Signed-off-by: Jerome Marchand <jmarchan@redhat.com>
Signed-off-by: Jens Axboe <jens.axboe@oracle.com>
18 years agoEnhanced partition statistics: remove old partition statistics
Jerome Marchand [Fri, 8 Feb 2008 11:06:21 +0000 (12:06 +0100)]
Enhanced partition statistics: remove old partition statistics

Removes the now unused old partition statistic code.

Signed-off-by: Jerome Marchand <jmarchan@redhat.com>
Signed-off-by: Jens Axboe <jens.axboe@oracle.com>
18 years agoEnhanced partition statistics: procfs
Jerome Marchand [Fri, 8 Feb 2008 10:04:56 +0000 (11:04 +0100)]
Enhanced partition statistics: procfs

Reports enhanced partition statistics in /proc/diskstats.

Signed-off-by: Jerome Marchand <jmarchan@redhat.com>
18 years agoEnhanced partition statistics: sysfs
Jerome Marchand [Fri, 8 Feb 2008 10:04:55 +0000 (11:04 +0100)]
Enhanced partition statistics: sysfs

Reports enhanced partition statistics in sysfs.

Signed-off-by: Jerome Marchand <jmarchan@redhat.com>
18 years agoEnhanced partition statistics: aoe fix
Jerome Marchand [Fri, 8 Feb 2008 10:04:53 +0000 (11:04 +0100)]
Enhanced partition statistics: aoe fix

Updates the enhanced partition statistics in ATA over Ethernet driver
(not tested).

Signed-off-by: Jerome Marchand <jmarchan@redhat.com>
18 years agoEnhanced partition statistics: update partition statitics
Jerome Marchand [Fri, 8 Feb 2008 10:04:35 +0000 (11:04 +0100)]
Enhanced partition statistics: update partition statitics

Updates the enhanced partition statistics in generic block layer
besides the disk statistics.

Signed-off-by: Jerome Marchand <jmarchan@redhat.com>
Signed-off-by: Jens Axboe <jens.axboe@oracle.com>
18 years agoEnhanced partition statistics: core statistics
Jerome Marchand [Fri, 8 Feb 2008 10:04:09 +0000 (11:04 +0100)]
Enhanced partition statistics: core statistics

This patch contain the core infrastructure of enhanced partition
statistics. It adds to struct hd_struct the same stats data as struct
gendisk and define basics function to manipulate them.

Signed-off-by: Jerome Marchand <jmarchan@redhat.com>
Signed-off-by: Jens Axboe <jens.axboe@oracle.com>
18 years agoblock: fixup rq_init() a bit
Jens Axboe [Fri, 8 Feb 2008 11:41:03 +0000 (12:41 +0100)]
block: fixup rq_init() a bit

Rearrange fields in cache order and initialize some fields that
we didn't previously init. Remove init of ->completion_data, it's
part of a union with ->hash. Luckily clearing the rb node is the same
as setting it to null!

Signed-off-by: Jens Axboe <jens.axboe@oracle.com>
18 years agoCRIS: Add new timerfd syscall entries.
Jesper Nilsson [Fri, 8 Feb 2008 10:54:30 +0000 (11:54 +0100)]
CRIS: Add new timerfd syscall entries.

18 years agoMAINTAINERS: Add my information for the CRIS port.
Jesper Nilsson [Fri, 25 Jan 2008 12:22:29 +0000 (13:22 +0100)]
MAINTAINERS: Add my information for the CRIS port.

18 years agoCRIS v32: Correct spelling of bandwidth in function name.
Jesper Nilsson [Fri, 8 Feb 2008 09:44:05 +0000 (10:44 +0100)]
CRIS v32: Correct spelling of bandwidth in function name.

18 years agoCRIS v32: Clean up nandflash.c for ARTPEC-3 and ETRAX FS.
Jesper Nilsson [Fri, 8 Feb 2008 09:24:41 +0000 (10:24 +0100)]
CRIS v32: Clean up nandflash.c for ARTPEC-3 and ETRAX FS.

Clean up issues noticed by Andrew Morton:

- Use a combined struct for allocating the mtd_info and nand_chip structs
  instead of using anonymous memory as the example in
  Documentation/DocBook/mtdnand.tmpl
- Use kzalloc instead of using kmalloc/memset(0)
- Make crisv32_device_ready static.

18 years agoCRIS v10: Cleanup of drivers/gpio.c
Jesper Nilsson [Wed, 6 Feb 2008 13:52:40 +0000 (14:52 +0100)]
CRIS v10: Cleanup of drivers/gpio.c

- Change parameters of gpio_write (const char * buf -> const char __user *buf)
- Don't initialize static variables to zero.
- Remove useless casts from void.
- Change name of interrupt routine (gpio_pa_interrupt -> gpio_interrupt)
- Use kzmalloc instead of allocating memory and zeroing it manually.
- Correct casts for copy_to_user and copy_from_user to (void __user *)
- Make file_operations gpio_fops static.
- Make ioif_watcher static, not used outside this file.

18 years agoCRIS v10: drivers/net/cris/eth_v10.c rename LED defines to CRIS_LED to avoid name...
Jesper Nilsson [Wed, 6 Feb 2008 12:35:07 +0000 (13:35 +0100)]
CRIS v10: drivers/net/cris/eth_v10.c rename LED defines to CRIS_LED to avoid name clash.

18 years agoCRIS: Make io_pwm_set_period members unsigned in etraxgpio.h
Jesper Nilsson [Wed, 6 Feb 2008 12:33:32 +0000 (13:33 +0100)]
CRIS: Make io_pwm_set_period members unsigned in etraxgpio.h

18 years agoCRIS: Move ETRAX_AXISFLASHMAP to common Kconfig file.
Jesper Nilsson [Wed, 6 Feb 2008 12:21:28 +0000 (13:21 +0100)]
CRIS: Move ETRAX_AXISFLASHMAP to common Kconfig file.

18 years agoCRIS: Drop regs parameter from call to profile_tick in kernel/time.c
Jesper Nilsson [Thu, 31 Jan 2008 16:56:24 +0000 (17:56 +0100)]
CRIS: Drop regs parameter from call to profile_tick in kernel/time.c

18 years agoCRIS v32: Fix minor formatting issue in mach-a3/io.c
Jesper Nilsson [Tue, 29 Jan 2008 17:54:55 +0000 (18:54 +0100)]
CRIS v32: Fix minor formatting issue in mach-a3/io.c

18 years agoCRIS v32: Initialize GIO even if we're rambooting in kernel/head.S
Jesper Nilsson [Tue, 29 Jan 2008 17:54:05 +0000 (18:54 +0100)]
CRIS v32: Initialize GIO even if we're rambooting in kernel/head.S

18 years agoCRIS v32: Remove kernel/arbiter.c, it now exists in machine dependent directory.
Jesper Nilsson [Tue, 29 Jan 2008 17:52:42 +0000 (18:52 +0100)]
CRIS v32: Remove kernel/arbiter.c, it now exists in machine dependent directory.

18 years agoCRIS v32: Minor changes to avoid errors in asm-cris/arch-v32/hwregs/reg_rdwr.h
Jesper Nilsson [Tue, 29 Jan 2008 09:43:05 +0000 (10:43 +0100)]
CRIS v32: Minor changes to avoid errors in asm-cris/arch-v32/hwregs/reg_rdwr.h

- Add ifdef around macros to read and write hardware registers
- Add parens around REG_READ expression to avoid possible precedence errors.
- Remove useless CVS id tag.

18 years agoCRIS v32: arch-v32/hwregs/intr_vect_defs.h moved to machine dependent directory.
Jesper Nilsson [Tue, 29 Jan 2008 09:37:33 +0000 (10:37 +0100)]
CRIS v32: arch-v32/hwregs/intr_vect_defs.h moved to machine dependent directory.

18 years agoCRIS v32: Correct offset for TASK_pid in asm-cris/arch-v32/offset.h
Jesper Nilsson [Mon, 28 Jan 2008 17:15:11 +0000 (18:15 +0100)]
CRIS v32: Correct offset for TASK_pid in asm-cris/arch-v32/offset.h

18 years agoCRIS v32: Move register map header to machine dependent directory.
Jesper Nilsson [Mon, 28 Jan 2008 17:13:50 +0000 (18:13 +0100)]
CRIS v32: Move register map header to machine dependent directory.

This file is machine dependent, and needs to be in
asm-cris/arch-v32/mach-fs/hwregs/reg_map.h instead.

18 years agoCRIS v32: Let compiler know that memory is clobbered after a break op.
Jesper Nilsson [Mon, 28 Jan 2008 17:11:29 +0000 (18:11 +0100)]
CRIS v32: Let compiler know that memory is clobbered after a break op.

18 years agoCRIS v32: Remove SMP stub from asm-cris/arch-v32/system.h
Jesper Nilsson [Mon, 28 Jan 2008 17:08:44 +0000 (18:08 +0100)]
CRIS v32: Remove SMP stub from asm-cris/arch-v32/system.h

CRIS v32 is not SMP.

18 years agoCRIS v32: Completely rework spinlocks for ETRAX FS and ARTPEC-3
Jesper Nilsson [Mon, 28 Jan 2008 17:07:58 +0000 (18:07 +0100)]
CRIS v32: Completely rework spinlocks for ETRAX FS and ARTPEC-3

18 years agoCRIS v32: Change name for simulator config in asm-cris/arch-v32/processor.h
Jesper Nilsson [Mon, 28 Jan 2008 17:06:43 +0000 (18:06 +0100)]
CRIS v32: Change name for simulator config in asm-cris/arch-v32/processor.h

18 years agoCRIS v32: Add prototype for crisv32_pinmux_dealloc_fixed in asm-cris/arch-v32/pinmux.h
Jesper Nilsson [Mon, 28 Jan 2008 17:06:11 +0000 (18:06 +0100)]
CRIS v32: Add prototype for crisv32_pinmux_dealloc_fixed in asm-cris/arch-v32/pinmux.h

Deallocation was not possible before, but is now.

18 years agoCRIS v32: Change name for simulator config in asm-cris/arch-v32/page.h
Jesper Nilsson [Mon, 28 Jan 2008 17:04:46 +0000 (18:04 +0100)]
CRIS v32: Change name for simulator config in asm-cris/arch-v32/page.h

Also, fix a typo.

18 years agoCRIS v32: Remove juliette.h, it is not supported for CRIS v32.
Jesper Nilsson [Mon, 28 Jan 2008 17:03:26 +0000 (18:03 +0100)]
CRIS v32: Remove juliette.h, it is not supported for CRIS v32.

18 years agoCRIS v32: Add support for ETRAX FS and ARTPEC-3 for arch-v32/hwregs/eth_defs.h
Jesper Nilsson [Mon, 28 Jan 2008 16:56:56 +0000 (17:56 +0100)]
CRIS v32: Add support for ETRAX FS and ARTPEC-3 for arch-v32/hwregs/eth_defs.h

- A couple of fields have changed name:
reg_eth_rw_ga_lo.table -> tbl
reg_eth_rw_ga_hi.table -> tbl
reg_eth_rw_gen_ctrl.flow_ctrl_dis -> flow_ctrl

- Add some new register fields.
reg_eth_rw_gen_ctrl.gtxclk_out
reg_eth_rw_gen_ctrl.phyrst_n
reg_eth_rw_tr_ctrl.carrier_ext

- max_size in reg_eth_rw_rec_ctrl had the wrong size.

- Registers reg_eth_rw_mgm_ctrl and reg_eth_r_stat was reworked completely.

18 years agoCRIS v32: Rename variable used in macro for arch-v32/hwregs/dma.h
Jesper Nilsson [Mon, 28 Jan 2008 16:42:17 +0000 (17:42 +0100)]
CRIS v32: Rename variable used in macro for arch-v32/hwregs/dma.h

The old name "r" would quite often produce warnings when other
variables with the same name was shadowed. Rename it __x to
make it more unlikely to happen.

18 years agoCRIS v32: Remove useless CVS id tag from arch-v32/hwregs/Makefile
Jesper Nilsson [Mon, 28 Jan 2008 15:55:21 +0000 (16:55 +0100)]
CRIS v32: Remove useless CVS id tag from arch-v32/hwregs/Makefile

18 years agoCRIS v32: Add defines for udelay and ndelay in arch-v32/delay.h
Jesper Nilsson [Mon, 28 Jan 2008 15:54:51 +0000 (16:54 +0100)]
CRIS v32: Add defines for udelay and ndelay in arch-v32/delay.h

Both of these are implemented using cris_delay10ns().

18 years agoCRIS v32: Adjust arch-v32/atomic.h for new spinlock/rwlock infrastructure
Jesper Nilsson [Mon, 28 Jan 2008 15:53:19 +0000 (16:53 +0100)]
CRIS v32: Adjust arch-v32/atomic.h for new spinlock/rwlock infrastructure

18 years agoCRIS v32: Add missing header to include/asm-cris/arch-v32/Kbuild
Jesper Nilsson [Mon, 28 Jan 2008 15:51:31 +0000 (16:51 +0100)]
CRIS v32: Add missing header to include/asm-cris/arch-v32/Kbuild

18 years agoCRIS: Break long comment line in include/asm-cris/arch-v10/page.h
Jesper Nilsson [Mon, 28 Jan 2008 15:50:32 +0000 (16:50 +0100)]
CRIS: Break long comment line in include/asm-cris/arch-v10/page.h

18 years agoCRIS: Rename LED macros to CRIS_LED to avoid name clash in io.h
Jesper Nilsson [Mon, 28 Jan 2008 15:49:39 +0000 (16:49 +0100)]
CRIS: Rename LED macros to CRIS_LED to avoid name clash in io.h

This is done to avoid collision with linux/leds.h

18 years agoCRIS: Add missing headers to include/asm-cris Kbuild files.
Jesper Nilsson [Thu, 31 Jan 2008 16:40:37 +0000 (17:40 +0100)]
CRIS: Add missing headers to include/asm-cris Kbuild files.

18 years agoCRIS: Add sched_clock to kernel/time.c
Jesper Nilsson [Mon, 28 Jan 2008 15:40:21 +0000 (16:40 +0100)]
CRIS: Add sched_clock to kernel/time.c

Also, clean up some whitespace errors.

18 years agoCRIS: Register cpus in kernel/setup.c
Jesper Nilsson [Mon, 28 Jan 2008 15:39:00 +0000 (16:39 +0100)]
CRIS: Register cpus in kernel/setup.c

Also, fix some white space errors, and constify cpuinfo_op.

18 years agoCRIS: Remove include of linux/init.h, not needed anymore.
Jesper Nilsson [Mon, 28 Jan 2008 15:34:30 +0000 (16:34 +0100)]
CRIS: Remove include of linux/init.h, not needed anymore.

18 years agoCRIS: Remove CONFIG_NO_IOMEM from ARTPEC-3 default config.
Jesper Nilsson [Mon, 28 Jan 2008 15:33:21 +0000 (16:33 +0100)]
CRIS: Remove CONFIG_NO_IOMEM from ARTPEC-3 default config.

18 years agoCRIS: Remove useless CVS log from kernel/ptrace.c
Jesper Nilsson [Mon, 28 Jan 2008 15:30:35 +0000 (16:30 +0100)]
CRIS: Remove useless CVS log from kernel/ptrace.c

Also, fix some whitespace errors.

18 years agoCRIS: Remove useless CVS id and log from kernel/process.c
Jesper Nilsson [Mon, 28 Jan 2008 15:29:21 +0000 (16:29 +0100)]
CRIS: Remove useless CVS id and log from kernel/process.c

18 years agoCRIS: Add configuration possibility for using kmalloc for modules.
Jesper Nilsson [Mon, 28 Jan 2008 15:28:10 +0000 (16:28 +0100)]
CRIS: Add configuration possibility for using kmalloc for modules.

Using kmalloc instead of vmalloc solves the stability problems
experienced by some 100 LX products.

18 years agoCRIS: Remove CONFIG_NO_IOMEM from default configs.
Jesper Nilsson [Mon, 28 Jan 2008 15:25:13 +0000 (16:25 +0100)]
CRIS: Remove CONFIG_NO_IOMEM from default configs.

18 years agoCRIS v32: Fix startup oops and replace hardcoded pagesize in vmlinux.lds.S
Jesper Nilsson [Wed, 30 Jan 2008 11:57:31 +0000 (12:57 +0100)]
CRIS v32: Fix startup oops and replace hardcoded pagesize in vmlinux.lds.S

- Move alignment of init data to page size outside define CONFIG_BLK_DEV_INITRD
  This avoids oops due to memory on the same page as init data being freed.
- Change hardcoded page size to use macro from asm/page.h
- Add reserved memory via CONFIG_ETRAX_VMEM_SIZE.
- Use available defines for TEXT_TEXT and INITCALLS.
- Cleanup whitespace.

18 years agoCRIS v32: Avoid work when switching between tasks with shared memory descriptors...
Jesper Nilsson [Fri, 25 Jan 2008 17:08:07 +0000 (18:08 +0100)]
CRIS v32: Avoid work when switching between tasks with shared memory descriptors in mm/tlb.c

There is no need to do all this work if they share memory descriptors.
Also, fix some minor whitespace and long lines.

18 years agoCRIS v32: Add workaround for MMU hardware bug for ETRAX FS in mm/mmu.S
Jesper Nilsson [Fri, 25 Jan 2008 17:05:12 +0000 (18:05 +0100)]
CRIS v32: Add workaround for MMU hardware bug for ETRAX FS in mm/mmu.S

18 years agoCRIS v32: Fix bug in internal memory allocator mm/intmem.c
Jesper Nilsson [Fri, 25 Jan 2008 17:03:00 +0000 (18:03 +0100)]
CRIS v32: Fix bug in internal memory allocator mm/intmem.c

- Fix bug where allocated memory didn't account for alignment.
- Add support for ARTPEC-3
- Add module_init for crisv32_intmem_init.

18 years agoCRIS v32: Change name of simulator config to CONFIG_ETRAX_VCS_SIM in mm/init.c
Jesper Nilsson [Fri, 25 Jan 2008 17:00:48 +0000 (18:00 +0100)]
CRIS v32: Change name of simulator config to CONFIG_ETRAX_VCS_SIM in mm/init.c

- Remove unneded code for ETRAX FS and ARTPEC-3

18 years agoCRIS v32: Change lib/spinlock.S to use byte operations instead of dwords.
Jesper Nilsson [Fri, 25 Jan 2008 16:57:28 +0000 (17:57 +0100)]
CRIS v32: Change lib/spinlock.S to use byte operations instead of dwords.

18 years agoCRIS v32: Move hw_settings.S to machine specific directories for ETRAX FS and ARTPEC-3
Jesper Nilsson [Fri, 25 Jan 2008 16:55:31 +0000 (17:55 +0100)]
CRIS v32: Move hw_settings.S to machine specific directories for ETRAX FS and ARTPEC-3

18 years agoCRIS v32: Update lib/checksum.S and lib/checksumcopy.S
Jesper Nilsson [Fri, 25 Jan 2008 16:54:14 +0000 (17:54 +0100)]
CRIS v32: Update lib/checksum.S and lib/checksumcopy.S

- Slight tweaks, use $acr + addoq to propagate carry across the loop boundary.
- Better use of latency cycles.
- Remove duplicate folding of carry, it is not needed.

18 years agoCRIS v32: Add lib/delay to build.
Jesper Nilsson [Fri, 25 Jan 2008 16:32:01 +0000 (17:32 +0100)]
CRIS v32: Add lib/delay to build.

18 years agoCRIS v32: Add precise delay loops for ETRAX FS and ARTPEC-3.
Jesper Nilsson [Fri, 25 Jan 2008 16:31:38 +0000 (17:31 +0100)]
CRIS v32: Add precise delay loops for ETRAX FS and ARTPEC-3.

Implements cris_delay10ns.

18 years agoCRIS v32: Update vcs_hook.c for ETRAX FS.
Jesper Nilsson [Fri, 25 Jan 2008 16:28:10 +0000 (17:28 +0100)]
CRIS v32: Update vcs_hook.c for ETRAX FS.

- Clean up some formatting and whitespace.

18 years agoCRIS v32: Move vcs_hook to machine specific directory.
Jesper Nilsson [Fri, 25 Jan 2008 15:43:53 +0000 (16:43 +0100)]
CRIS v32: Move vcs_hook to machine specific directory.

These files are different for ETRAX FS and ARTPEC-3.

18 years agoCRIS v32: Update kernel/smp.c for CRIS v32.
Jesper Nilsson [Fri, 25 Jan 2008 15:15:44 +0000 (16:15 +0100)]
CRIS v32: Update kernel/smp.c for CRIS v32.

- Change include paths to machine specific headers (asm/arch/hwregs -> hwregs)
- Add cpu_possible_map as cpumask_t and export it.
- Drop struct pt_regs parameter from crisv32_ipi_interrupt.
- timer -> timer0

18 years agoCRIS v32: Update signal handling in kernel/signal.c
Jesper Nilsson [Fri, 25 Jan 2008 15:10:02 +0000 (16:10 +0100)]
CRIS v32: Update signal handling in kernel/signal.c

- do_signal now returns void, and does not have the previous signal set
  as a parameter.
- Remove sys_rt_sigsuspend, we can use the common one instead.
- Change sys_sigsuspend to be more like x86, don't call do_signal here.
- handle_signal, setup_frame and setup_rt_frame now return -EFAULT
  if we've delivered a segfault, which is used by callers to perform
  necessary cleanup.
- Break long lines, correct whitespace and formatting errors.

18 years agoCRIS v32: Update boot/rescue/rescue.ld
Jesper Nilsson [Fri, 25 Jan 2008 15:05:55 +0000 (16:05 +0100)]
CRIS v32: Update boot/rescue/rescue.ld

- Update to work for ETRAX FS and ARTPEC-3

18 years agoCRIS v10: Update drivers/gpio.c, fix locking and general improvements.
Jesper Nilsson [Fri, 25 Jan 2008 14:42:41 +0000 (15:42 +0100)]
CRIS v10: Update drivers/gpio.c, fix locking and general improvements.

- Change all spin_lock/local_irq_save to spin_lock_irqsave.
- Change multiple returns in functions where we have a lock to goto out.
- Correct number of arguments to gpio_poll_timer_interrupt, gpio_pa_interrupt.
- Break out gpio_write logic to smaller functions to make it readable.
- In setget_input and setget_output, avoid extra if-indent level.
- Change name LED_* -> CRIS_LED_* to avoid name clash.
- Don't use braces around single statement ifs.
- Fix whitespace errors.
- Remove useless CVS id and log.

18 years agoCRIS: Add support for ETRAX FS and ARTPEC-3 to etraxgpio.h
Jesper Nilsson [Fri, 25 Jan 2008 12:50:27 +0000 (13:50 +0100)]
CRIS: Add support for ETRAX FS and ARTPEC-3 to etraxgpio.h

The CRIS v32 architectures have more gpio ports and built in PWM.

18 years agoCRIS v32: Change names of config variable and register field for data available.
Jesper Nilsson [Thu, 24 Jan 2008 13:37:10 +0000 (14:37 +0100)]
CRIS v32: Change names of config variable and register field for data available.

- CONFIG_ETRAXFS_SIM -> CONFIG_ETRAX_VCS_SIM
- ser_intr_mask.data_avail -> ser_intr_mask.dav

18 years agoCRIS v32: Change debug and formatting in kernel/fasttimer.c
Jesper Nilsson [Thu, 24 Jan 2008 13:34:37 +0000 (14:34 +0100)]
CRIS v32: Change debug and formatting in kernel/fasttimer.c

- Don't use SANITYCHECK(x) as a macro, test FAST_TIMER_SANITY_CHECKS with
  ifdef. This makes it possible for automatic indent etc to work.
- Correct some whitespace errors.
- Don't initialize static variable.

18 years agoCRIS v32: Update kernel/crisksyms.c
Jesper Nilsson [Thu, 24 Jan 2008 13:31:55 +0000 (14:31 +0100)]
CRIS v32: Update kernel/crisksyms.c

- Include pinmux.h from machine specific directory.
- Add some more symbols: crisv32_pinmux_alloc, crisv32_pinmux_dealloc_fixed,
  crisv32_io_get_name and crisv32_io_get

18 years agoCRIS v32: Remove config ifdef around init function for drivers/sync_serial.c
Jesper Nilsson [Thu, 24 Jan 2008 13:30:01 +0000 (14:30 +0100)]
CRIS v32: Remove config ifdef around init function for drivers/sync_serial.c

The init function should be defined always.

18 years agoCRIS v32: Remove drivers/gpio.c, now exists as machine specific file.
Jesper Nilsson [Thu, 24 Jan 2008 13:25:18 +0000 (14:25 +0100)]
CRIS v32: Remove drivers/gpio.c, now exists as machine specific file.

18 years agoCRIS v32: Update driver for RTC chip pcf8563.
Jesper Nilsson [Thu, 24 Jan 2008 13:24:09 +0000 (14:24 +0100)]
CRIS v32: Update driver for RTC chip pcf8563.

- Moved all calls to register_chrdev to a function called by module_init.
- Added mutex locking.
- Added better error handling at start up.
- Added BIN_TO_BCD of the month value before it is saved to the RTC.
- Corrected the month value returned by pcf8563_readreg.
- Cache the voltage low value at driver init so the battery status
  information does not get 'accidentally' cleared when setting the RTC time.
- Removed obsolete CONFIG_ETRAX_RTC_READONLY
- Voltage low ioctl():s RTC_VLOW_RD -> RTC_VL_READ, RTC_VLOW_SET -> RTC_VL_CLR

18 years agoCRIS v32: Remove drivers/nandflash.h, now exists as machine specific file.
Jesper Nilsson [Thu, 24 Jan 2008 13:17:47 +0000 (14:17 +0100)]
CRIS v32: Remove drivers/nandflash.h, now exists as machine specific file.

18 years agoCRIS v32: ETRAX FS Change name of LED macros in drivers/mach-fs/gpio.c to avoid colli...
Jesper Nilsson [Thu, 24 Jan 2008 13:14:09 +0000 (14:14 +0100)]
CRIS v32: ETRAX FS Change name of LED macros in drivers/mach-fs/gpio.c to avoid collision.

18 years agoCRIS v32: Change name of LED macros in drivers/mach-a3/gpio.c to avoid collision.
Jesper Nilsson [Thu, 24 Jan 2008 13:13:12 +0000 (14:13 +0100)]
CRIS v32: Change name of LED macros in drivers/mach-a3/gpio.c to avoid collision.

18 years agoCRIS v32: Change include path for hwregs in drivers/iop_fw_load.c
Jesper Nilsson [Thu, 24 Jan 2008 13:12:10 +0000 (14:12 +0100)]
CRIS v32: Change include path for hwregs in drivers/iop_fw_load.c

Also, remove useless CVS id tag.

18 years agoCRIS v32: Rewrite of stream co-processor driver for ETRAX FS and ARTPEC-3
Jesper Nilsson [Thu, 24 Jan 2008 13:10:27 +0000 (14:10 +0100)]
CRIS v32: Rewrite of stream co-processor driver for ETRAX FS and ARTPEC-3

- Workaround for cachebug (Guinness TR 106).
- Add ARTPEC-3 support.

18 years agoCRIS v32: Replace build flags in boot/rescue/Makefile
Jesper Nilsson [Thu, 24 Jan 2008 12:07:34 +0000 (13:07 +0100)]
CRIS v32: Replace build flags in boot/rescue/Makefile

- Change AFLAGS to asflags-y, LDFLAGS to ldflags-y and EXTRA_CFLAGS
  to ccflags-y. We only need the flags in this Makefile.

18 years agoCRIS v32: Replace build flags in boot/compressed/Makefile
Jesper Nilsson [Wed, 30 Jan 2008 11:55:56 +0000 (12:55 +0100)]
CRIS v32: Replace build flags in boot/compressed/Makefile

- Change AFLAGS to asflags-y, LDFLAGS to ldflags-y and KBUILD_CFLAGS
  to ccflags-y. We only need the flags in this Makefile.

18 years agoCRIS v10: Change name of low voltage read and set macros.
Jesper Nilsson [Wed, 23 Jan 2008 16:36:40 +0000 (17:36 +0100)]
CRIS v10: Change name of low voltage read and set macros.

18 years agoCRIS v32: Remove useless CVS id tag from boot/compressed/README
Jesper Nilsson [Wed, 23 Jan 2008 10:11:34 +0000 (11:11 +0100)]
CRIS v32: Remove useless CVS id tag from boot/compressed/README

18 years agoCRIS: Fix bugs in return value of atomic_inc_return and atomic_dec_return.
Jesper Nilsson [Mon, 21 Jan 2008 16:01:31 +0000 (17:01 +0100)]
CRIS: Fix bugs in return value of atomic_inc_return and atomic_dec_return.

Increment and decrement before assigning to return value.

18 years agoCRIS: Allow arch dependent delay to override common version.
Jesper Nilsson [Mon, 21 Jan 2008 15:38:41 +0000 (16:38 +0100)]
CRIS: Allow arch dependent delay to override common version.

18 years agoCRIS: Include arch dependent bug.h.
Jesper Nilsson [Mon, 21 Jan 2008 14:51:13 +0000 (15:51 +0100)]
CRIS: Include arch dependent bug.h.

18 years agoCRIS: Correct pfn_pte to make it possible to ioremap uncached addresses.
Jesper Nilsson [Mon, 21 Jan 2008 14:49:43 +0000 (15:49 +0100)]
CRIS: Correct pfn_pte to make it possible to ioremap uncached addresses.

18 years agoCRIS: Correct comment in io.h to describe reality of I/O space.
Jesper Nilsson [Mon, 21 Jan 2008 14:38:22 +0000 (15:38 +0100)]
CRIS: Correct comment in io.h to describe reality of I/O space.

The old comment stated that it was "junk needed for the arch-independent code
but which we never use in the CRIS port", but this is no longer true.

18 years agoCRIS: Update cpu_possible_map and raw_smp_processor_id in smp.h header.
Jesper Nilsson [Mon, 21 Jan 2008 14:15:09 +0000 (15:15 +0100)]
CRIS: Update cpu_possible_map and raw_smp_processor_id in smp.h header.

- Change name of __smp_processor_id to raw_smp_processor_id.
- cpu_possible_map is no longer a define for phys_cpu_present_map,
  it is now a cpumask_t.

18 years agoCRIS v10: Remove duplicated folding of carry from lib/checksum.S, it is not needed.
Jesper Nilsson [Mon, 21 Jan 2008 13:11:22 +0000 (14:11 +0100)]
CRIS v10: Remove duplicated folding of carry from lib/checksum.S, it is not needed.

Also, remove useless CVS id tag.

18 years agoCRIS v10: Remove duplicated folding of carry from lib/checksumcopy.S, it is not needed.
Jesper Nilsson [Mon, 21 Jan 2008 13:10:33 +0000 (14:10 +0100)]
CRIS v10: Remove duplicated folding of carry from lib/checksumcopy.S, it is not needed.

Also, remove useless CVS id tag.