summaryrefslogtreecommitdiffstats
path: root/arch
Commit message (Collapse)AuthorAgeFilesLines
* CRIS v10: Remove CVS tag from boot/compressed/misc.cJesper Nilsson2008-02-081-4/+2
|
* CRIS v10: Update and fix bug in kernel/debugport.Jesper Nilsson2008-02-081-111/+23
| | | | | | | | - Move local_irq_save to after possible return in console_write_direct. - Remove old raw_printk hack, not needed anymore. - Add watchdog handling. - Make serial_driver use depend on CONFIG_ETRAX_SERIAL. - Remove useless CVS log.
* CRIS v10: Update driver for pcf8563Jesper Nilsson2008-02-081-173/+220
| | | | | | | | | | | | - Use mutex instead of spinlock, fixes kernel bugzilla report 8339. - Make sure that pcf8563_init can be called multiple times but only setup once. - Change RTC_VLOW_RD -> RTC_VL_READ, RTC_VLOW_SET -> RTC_VL_CLR - Cache the voltage low value at driver init so the battery status information does not get 'accidentally' cleared when setting the RTC time. - Add weekday handling. - Correct leapyear handling to include 100 and 400 year exceptions. - Correct whitespace and formatting errors. - Remove useless CVS id tag.
* CRIS v10: Fix bugs in i2c_init and i2c_readregJesper Nilsson2008-02-081-78/+3
| | | | | | | | | | - Set the variable first to zero after first setup, so we can stop multiple calls to i2c_init from trying to setup i2c. - The last byte read by the master in an i2c transfer needs to be NACKed, not ACKed. - Also, remove useless CVS log and CVS id tags.
* CRIS v10: Cleanup drivers/eeprom.c to avoid import conflicts.Jesper Nilsson2008-02-081-73/+2
| | | | | - Remove useless CVS log and CVS id tags. - Whitespace fix and remove C++ comment.
* CRIS v10: Correct and cleanup boot/rescue/testrescue.SJesper Nilsson2008-02-081-7/+5
| | | | | | - Correct include path for sv_addr_ag.h, should be asm/arch/ - Fix some whitespace errors. - Remove useless CVS id tag.
* CRIS v10: Correct and cleanup boot/rescue/kimagerescue.SJesper Nilsson2008-02-081-29/+29
| | | | | | - Correct include path for sv_addr_ag.h, should be included from asm/arch/ - Remove useless CVS id tag. - Correct whitespace errors and some formatting.
* CRIS v10: Change boot/rescue/Makefile to use ccflags-y, asflags-y and ldflags-y.Jesper Nilsson2008-02-081-3/+3
| | | | | | Replace EXTRA_CFLAGS with ccflags-y. Change ASFLAGS and LDFLAGS into asflags-y and ldflags-y, we only need these flags in this makefile.
* CRIS v10: Update boot/compressed/Makefile to use ccflags-y and ldflags-yJesper Nilsson2008-02-081-2/+2
| | | | | Replace use of EXTRA_CFLAGS with ccflags-y and LDFLAGS with ldflags-y, (we only need to change linker flags for this makefile)
* CRIS v32: Update and improve kernel/time.cJesper Nilsson2008-02-081-98/+139
| | | | | | | | | - Shorten include paths to machine dependent header files. - Register name for first timer is now regi_timer0. - Remove raw_printk hack, use oops_in_progress instead. - Add handling of CPU frequency scaling for CRIS. - Remove regs parameter to timer_interrupt, get them from get_irq_regs instead. - Whitespace and formatting changes.
* CRIS v10: New default config.Jesper Nilsson2008-02-081-522/+274
|
* CRIS v32: Update and improve kernel/traps.cJesper Nilsson2008-02-081-78/+114
| | | | | | | | - Remove watchdog handling, handled elsewhere. - Shorten include paths to machine dependent header files. - Remove raw_printk hack, we now use oops_in_progress instead. - Add handling of BUG for exception handlers (break 14). - Formatting and whitespace changes.
* CRIS v32: Minor updates to kernel/process.cJesper Nilsson2008-02-081-9/+5
| | | | | | - Shorten include paths for machine dependent header files. - Remove unused extern declaration of etrax_gpio_wake_up_check. - Register name for first timer is now regi_timer0.
* CRIS v32: Update and simplify kernel/irq.c.Jesper Nilsson2008-02-081-81/+193
| | | | | | | | - First timer register has changed name to timer0. - Build IRQs with only IRQ number, mask bit will be calculated instead. - Add more IRQs, up to 64 supported. - Use arrays to hold which IRQs triggered instead of trying to do magic with two 32 bit values now that more than 32 IRQs are supported.
* CRIS v32: Update kernel/head.SJesper Nilsson2008-02-081-88/+114
| | | | | | | | | | - Shorten include paths for machine specific header files. - Add magic for booting NAND flash. - Change CONFIG_ETRAXFS_SIM to CONFIG_ETRAX_VCS_SIM. - Use assembler macros for initializing hardware (clocks) - Add stubs for SMP slave CPUs. - Search for cramfs or jffs2 if no romfs found. - Initialize l2cache.
* CRIS v32: Update and improve fasttimer.cJesper Nilsson2008-02-081-324/+195
| | | | | | | | | | | | | | | - Change include path to machine dependent header files. - Remove __INLINE__, it expands to inline anyway. - Don't initialize static variables. - Change timers to use fasttimer_t instead of timevals. - Change name of timeval_cmp to fasttime_cmp to highlight this. - Register name for first timer is regi_timer0, not regi_timer. - Whitespace and formatting changes. - Don't return if we're blocking interrupts, goto done and restore interrupts. - Disable interrupts while walking the fasttimer list, only restore while doing the callback. - Remove #ifdef DECLARE_WAITQUEUE, this code won't be used in another OS. - Remove CVS log.
* CRIS v32: Update debugport.Jesper Nilsson2008-02-081-299/+43
| | | | | | | | | | - Shorten include paths to machine dependent headers. - Add support for fifth serial port. - Remove CONFIG_ETRAXFS_SIM and CONFIG_ETRAX_DEBUG_PORT_NULL, no longer used. - Remove raw_printk and stupid_debug hack, no longer needed. - Remove dummy console stuff, no longer needed. - Correct some register type names. - Correct some whitespace errors and formatting.
* CRIS v32: Update boot/rescue/head.S code.Jesper Nilsson2008-02-081-27/+15
| | | | | | - Add ifdef for ETRAX_AXISFLASHMAP to avoid compiling file unless it is set. - Use assembler macros for setting up clocks. - Don't copy image, just jump to it (only works for NOR flash)
* CRIS v32: Update boot/compressed/misc.cJesper Nilsson2008-02-081-19/+53
| | | | | | | | | | - Shorten include paths to machine specific headers. - Remove fill_inbuf, not defined here. - Return __dest as value from memcpy. - Enable serial port hardware transmitter and receiver in serial_setup. - Correct baudrate divisor calculation, changed from 4800 to 115200. - Add support for Artpec-3 specific serial port setup. - Initialize pinmux for the correct serial port.
* CRIS v32: Update compressed head.SJesper Nilsson2008-02-081-98/+39
| | | | | | - Fixes for NAND and NOR flash booting. - Use assembler macros for common tasks (clocks, general io etc) - Use (EtraxFS or Artpec-3) machine specific include for dram and hardware init.
* CRIS v32: Remove common gpio and nandflash, add mach-fs and mach-a3 as subdirs.Jesper Nilsson2008-02-081-2/+3
| | | | | Also add board_mmcspi to build if ETRAX_SPI_MMC_BOARD is set. (Generic MMC SPI implementation)
* CRIS v32: Update boot rescue Kbuild makefile.Jesper Nilsson2008-02-081-25/+16
| | | | | | - Remove old specific targets, use more generic ones instead. - Use if_changed to avoid creating new images when no change. - Use EXTRA_CFLAGS instead of CFLAGS.
* CRIS v32: Update boot compressed Kbuild makefile.Jesper Nilsson2008-02-081-28/+17
| | | | | | - Remove old specific targets, use more generic ones instead. - Use if_changed to avoid creating new images when no change. - Use KBUILD_CFLAGS instead of CFLAGS.
* CRIS v32: Update boot Kbuild makefile.Jesper Nilsson2008-02-081-8/+15
| | | | | - Remove old specific targets, use more generic ones instead. - Use if_changed to avoid creating new images when no change.
* CRIS v32: Update traps.cJesper Nilsson2008-02-081-103/+95
| | | | | | | | | - Remove raw_prink hack, use oops_in_progress instead. - When ETRAX_WATCHDOG_NICE_DOGGY is set, loop in trap after oops dump instead of rebooting. - Break long lines to less than 80 chars. - Fix whitespace errors. - Remove unnecessary comments.
* CRIS v10: Update and improve axisflashmap.cJesper Nilsson2008-02-081-144/+37
| | | | | | | | - Add config to use mtd0 as whole flash device. - Fix whitespace errors. - Remove braces around single statement ifs. - Break long lines. - Remove unnecessary CVS log.
* CRIS v10: Update rescue head.sJesper Nilsson2008-02-081-56/+61
| | | | | - Correct whitespace problems. - Add ifdef for ETRAX_AXISFLASHMAP to avoid compile error when not set.
* CRIS v10: Update rescue Kbuild makefile.Jesper Nilsson2008-02-081-37/+19
| | | | | | | - Remove old specific targets, use more generic ones instead. - Use if_changed to avoid creating new images when no change. Removes a lot of cruft. - Use EXTRA_CFLAGS instead of CFLAGS.
* CRIS v10: Update boot/compressed Kbuild makefile.Jesper Nilsson2008-02-081-29/+19
| | | | | | - Remove old specific targets, use more generic ones instead. - Use if_changed to avoid creating new images when no change. - Use EXTRA_CFLAGS instead of CFLAGS.
* CRIS v10: Update boot Kbuild makefile.Jesper Nilsson2008-02-081-8/+16
| | | | - Remove old specific targets, use more generic ones instead.
* CRIS: Update main Kbuild makefile.Jesper Nilsson2008-02-081-69/+70
| | | | | | | | - Remove old and non-generic targets, use generic ones instead. - Add sub-arch as mach-fs or mach-a3 for EtraxFS and Artpec-3 respectively. - Add links to sub-arch directories, and erase before trying to create them. - Include from sub-arch specific include directory "mach". - Add files to be cleaned in CLEAN_FILES instead of as archclean target.
* CRIS v32: Update and improve axisflashmapJesper Nilsson2008-02-081-143/+345
| | | | | | - Use default partition table when no partition is found (for initial tests) - Add config ETRAX_AXISFLASHMAP_MTD0WHOLE to allow whole flash as mtd0. - Add config for VCS simulator connection.
* CRIS v32: New version of I2C driver.Jesper Nilsson2008-02-082-14/+187
| | | | | | | | - Add i2c_write and i2c_read as functions. - Use spinlocks for critical regions. - Add config item to set I2C data and clock port. - Put unneeded testcode inside #if 0. - Remove CVS id tag.
* CRIS v32: Fixup kernel Makefile.Jesper Nilsson2008-02-081-3/+2
| | | | | | | - Remove CRISv32 common arbiter, dma, io and pinmux files, they are now defined in machine dependent directories. - Add cache and cacheflush files for working around cache problems in CRISv32 chips.
* CRIS v32: Update entry.S to working order.Jesper Nilsson2008-02-081-18/+63
| | | | | | | - Remove oldset parameter. - Utilise delay-slot for parameter moving. - Add kernel_execve as break 13. - Add new kernel syscalls.
* CRIS v32: Whitespace and formatting changes for kernel/ptrace.cJesper Nilsson2008-02-082-5/+8
|
* CRIS: Minor generic kernel/traps.c changes.Jesper Nilsson2008-02-081-87/+139
| | | | | | | - Collect extern declarations at top of file. - Change raw_printk to printk, use oops_in_progress instead. - Fix formatting and whitespace. - Allow the watchdog to be disabled during oops.
* CRIS: Minor fixes to mm/fault.cJesper Nilsson2008-02-081-141/+28
| | | | | | | - Only disallow oops if we're in_interrupt context (was in_atomic before) - Use the generic oops_in_progress instead of the raw_printk hack. - Fix whitespace/formatting. - Remove CVS log entries.
* CRIS: Remove unnecessary CVS log from cris/mm/init.cJesper Nilsson2008-02-081-111/+0
|
* CRIS v32: Update synchronous serial driver.Jesper Nilsson2008-02-081-341/+599
| | | | | Now uses a DMA descriptor ring, which should avoid any unnecessary pauses in the streams.
* CRIS v32: Add L2 cache initialization code.Jesper Nilsson2008-02-081-0/+29
|
* CRIS v32: Add hardware dependent include files and defconfigs for ETRAX FS ↵Jesper Nilsson2008-02-082-0/+1169
| | | | | | | | and ARTPEC-3 chips. The header files describe the hardware registers available in both these chips, note that most of this documentation is automatically generated from the hardware implementation.
* CRIS v32: Add new machine dependent files for Etrax-FS and Artpec-3.Jesper Nilsson2008-02-0823-186/+3470
| | | | | | | | The two chips are somewhat different, and needs different handling. Adds handing of the dma, dram initialization, hardware settings, io, memory arbiter and pinmux Also moves the dma, dram initialization and io from CRIS v32 common files.
* CRIS v32: Add new driver files for Etrax-FSJesper Nilsson2008-02-083-0/+1149
| | | | Adds gpio and nandflash handling for Etrax-FS
* CRIS v32: Add new driver files for Artpec-3.Jesper Nilsson2008-02-083-0/+1168
| | | | Adds gpio and nandflash handling for Artpec-3.
* CRIS: Rearrange Kconfigs for v10 and v32 to allow compilation without warnings.Jesper Nilsson2008-02-085-536/+988
| | | | | | | | | | | - Remove some unneeded configs and add some new ones. - Merge common config items to common file instead of duplicating them. - Pull in standard Kconfig.preempt. - Remove some unneeded Kconfigs for subsystems not (yet) available on CRIS (md, scsi, ieee1394, i2o, isdn, telephony, media, pcmcia, pci) - Rename CRISv32 config items which had different types from CRISv10. (ETRAX_LED2G, ETRAX_LED2R, ETRAX_LED3G, ETRAX_LED3R, ETRAX_I2C_DATA_PORT, ETRAX_I2C_CLK_PORT)
* Merge branch 'slub-linus' of ↵Linus Torvalds2008-02-071-0/+4
|\ | | | | | | | | | | | | | | | | | | | | | | git://git.kernel.org/pub/scm/linux/kernel/git/christoph/vm * 'slub-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/christoph/vm: SLUB: fix checkpatch warnings Use non atomic unlock SLUB: Support for performance statistics SLUB: Alternate fast paths using cmpxchg_local SLUB: Use unique end pointer for each slab page. SLUB: Deal with annoying gcc warning on kfree()
| * SLUB: Alternate fast paths using cmpxchg_localChristoph Lameter2008-02-071-0/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Provide an alternate implementation of the SLUB fast paths for alloc and free using cmpxchg_local. The cmpxchg_local fast path is selected for arches that have CONFIG_FAST_CMPXCHG_LOCAL set. An arch should only set CONFIG_FAST_CMPXCHG_LOCAL if the cmpxchg_local is faster than an interrupt enable/disable sequence. This is known to be true for both x86 platforms so set FAST_CMPXCHG_LOCAL for both arches. Currently another requirement for the fastpath is that the kernel is compiled without preemption. The restriction will go away with the introduction of a new per cpu allocator and new per cpu operations. The advantages of a cmpxchg_local based fast path are: 1. Potentially lower cycle count (30%-60% faster) 2. There is no need to disable and enable interrupts on the fast path. Currently interrupts have to be disabled and enabled on every slab operation. This is likely avoiding a significant percentage of interrupt off / on sequences in the kernel. 3. The disposal of freed slabs can occur with interrupts enabled. The alternate path is realized using #ifdef's. Several attempts to do the same with macros and inline functions resulted in a mess (in particular due to the strange way that local_interrupt_save() handles its argument and due to the need to define macros/functions that sometimes disable interrupts and sometimes do something else). [clameter: Stripped preempt bits and disabled fastpath if preempt is enabled] Signed-off-by: Christoph Lameter <clameter@sgi.com> Reviewed-by: Pekka Enberg <penberg@cs.helsinki.fi> Cc: <linux-arch@vger.kernel.org> Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
* | Fix compilation of powerpc asm-offsets.c with old gccTony Breeds2008-02-071-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Commit ad7f71674ad7c3c4467e48f6ab9e85516dae2720 ("[POWERPC] Use a sensible default for clock_getres() in the VDSO") corrected the clock resolution reported by the VDSO clock_getres() but introduced another problem in that older versions of gcc (gcc-4.0 and earlier) fail to compile the new code in arch/powerpc/kernel/asm-offsets.c. This fixes it by introducing a new MONOTONIC_RES_NSEC define in the generic code which is equivalent to KTIME_MONOTONIC_RES but is just an integer constant, not a ktime union. Signed-off-by: Tony Breeds <tony@bakeyournoodle.com> Signed-off-by: Paul Mackerras <paulus@samba.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
* | m68k: correct setting of struct user.u_ar0Geert Uytterhoeven2008-02-071-1/+1
| | | | | | | | | | | | | | | | | | | | | | Commit 6e16d89bcd668a95eb22add24c02d80890232b66 ("Sanitize the type of struct user.u_ar0") forgot to change the m68k setting code, causing the following compiler warning: arch/m68k/kernel/process.c:338: warning: assignment makes integer from pointer without a cast Signed-off-by: Geert Uytterhoeven <geert@linux-m68k.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
OpenPOWER on IntegriCloud