- 12 Apr, 2004 40 commits
-
-
Andrew Morton authored
From: William Lee Irwin III <wli@holomorphy.com> The following patch consolidates redundant code in various hugetlb implementations. I took the liberty of renaming a few things, since the code was all moved anyway, and it has the benefit of helping to catch missed conversions and/or consolidations.
-
Andrew Morton authored
From: Arjan van de Ven <arjanv@redhat.com> patch below fixes a missing \n in a printk; without this you get to see a <4> in the middle of that line...
-
Andrew Morton authored
From: <gerg@snapgear.com> Add support for boards that have a 64MHz clock to common Coldfire header.
-
Andrew Morton authored
From: <gerg@snapgear.com> Add type specifier to printk calls in 68EZ328/ucdimm setup code. Patch original from kernel janitors.
-
Andrew Morton authored
From: <gerg@snapgear.com> Clean up debug trace in startup code of 68EZ328 DragonEngine board.
-
Andrew Morton authored
From: <gerg@snapgear.com> A couple of fixes for the DragonEngine sepcific setup code: . remove cs8900 ethernet setup from here . add type specifier to printk calls (from kernel janitors)
-
Andrew Morton authored
From: <gerg@snapgear.com> Some fixes for the 68360 common ints management code: . use irqreturn_t for return type of interrupt handlers . add type field to printk calls (from kernel janitors) . there is no loop in show_interrupts(), don't use continue
-
Andrew Morton authored
From: <gerg@snapgear.com> Some fixes for the 68328 common ints management code: . use irqreturn_t for return type of interrupt handlers . clean up asm code to be gcc-3.3.x clean . add type field to printk calls (from kernel janitors) . there is no loop in show_interrupts(), don't use continue
-
Andrew Morton authored
From: <gerg@snapgear.com> A number of small fixes for the Motorola 68328 setup code: . fix interrupt routine return types to be irqreturn_t . add type specifier to printk calls (from kernel janitors) . rework asm code to be gcc-3.3.x clean
-
Andrew Morton authored
From: <gerg@snapgear.com> Fixes to the Motorola ColdFire 5407 setup code: . fix interrupt routine return types to be irqreturn_t . add DMA base addresses array . support compile time setting of kernel boot arguments
-
Andrew Morton authored
From: <gerg@snapgear.com> Add type specifier to printk calls. Patch originally from kernel janitors.
-
Andrew Morton authored
From: <gerg@snapgear.com> Add type specifier to printk calls. Patch originally from kernel janitors.
-
Andrew Morton authored
From: <gerg@snapgear.com> Add type specifier to printk calls. Original patch from kernel janitors.
-
Andrew Morton authored
From: <gerg@snapgear.com> Conditionaly copy an attached ROMfs filesystem in memory on kernel startup. This should only be done if there really is a ROMfs there.
-
Andrew Morton authored
From: <gerg@snapgear.com> Add type field to printk call. Original patch supplied bu kernel janitors.
-
Andrew Morton authored
From: <gerg@snapgear.com> Fixes to the Motorola ColdFire 5307 setup code: . fix interrupt routine return types to be irqreturn_t . add DMA base addresses array
-
Andrew Morton authored
From: <gerg@snapgear.com> . add type field to printk calls (from kernel janitors) . there is no loop in show_interrupts(), don't use continue
-
Andrew Morton authored
From: <gerg@snapgear.com> Add start up code specific to the newly added COBRA5282 board.
-
Andrew Morton authored
From: <gerg@snapgear.com> Fixes to the Motorola ColdFire 5282 setup code: . fix interrupt routine return types to be irqreturn_t . add DMA base addresses array
-
Andrew Morton authored
From: <gerg@snapgear.com> Add startup code specific to newly supported COBRA5272 board.
-
Andrew Morton authored
From: <gerg@snapgear.com> Allow for auto-detecting the size of the DRAM in the startup code for the Motorola/5272 (ColdFire) board. Use the DRAM sizing register, since it will have been setup by the debug boot monitor (dBUG).
-
Andrew Morton authored
From: <gerg@snapgear.com> Add type field to printk calls in m68knommu timers.c
-
Andrew Morton authored
From: <gerg@snapgear.com> Define the DMA register set base address array for those m68knommu/ColdFire CPU's that have a DMA engines.
-
Andrew Morton authored
From: <gerg@snapgear.com> Add type field to printk calls in m68knommu mm/init.c. Patch originally from kernel janitors.
-
Andrew Morton authored
From: <gerg@snapgear.com> Add type field to printk calls. Patch original provided by kernel janitors.
-
Andrew Morton authored
From: <gerg@snapgear.com> Add build support for the senTec vendor to m68knommu architecture Makefile.
-
Andrew Morton authored
From: <gerg@snapgear.com> Fix architecture/cpu defines to support those used by modern versions of gcc (that is gcc > 3.3.x) for m68knommu. The standard for defining ColdFire architectures is no longer __mcf5200__, it is now __mcoldfire__. This patch fixes all the occurances in the m68knommu/lib functions.
-
Andrew Morton authored
From: <gerg@snapgear.com> A couple of additions to the linker script for m68knommu platforms: . add support for COBRA5272 and COBRA5282 boards . link in .rodata.str1 generated by gcc-3.3.x compilers
-
Andrew Morton authored
From: <gerg@snapgear.com> Add type to all printk calls in m68knommu traps.c. Also added a modern dump_stack function.
-
Andrew Morton authored
From: <gerg@snapgear.com> Cleanup m68knommu/kernel/setup.c. Add type to all printk calls, remove obsolete framebuffer setup and fix a few irqreturn_t for interrupt handlers in prototypes. Printk cleanup originally from kernel janitors.
-
Andrew Morton authored
From: <gerg@snapgear.com> Add local m68knommu dma allocation code to build list.
-
Andrew Morton authored
From: <gerg@snapgear.com> Create the coherent DMA allocation functions for m68knommu. No current hardware in this class requires anything special, so it just just does normal allocations after sanity checks.
-
Andrew Morton authored
From: <gerg@snapgear.com> Cleanup m68knommu's comempci.c support code. Add type to all printk calls. Patch originally from kernel janitors.
-
Andrew Morton authored
From: <gerg@snapgear.com> A few changes to the m68knommu Kconfig: . Add support for 64MHz clocked CPU's . Add support for selecting the COBRA5272 and COBRA5282 boards . Use drivers/Kconfig for driver configuration . Allow configuring compilation with frame-pointer
-
Andrew Morton authored
From: <gerg@snapgear.com> Some kernel janitor clean ups of printk for the m68knommu specific process code. And more importantly a fix to the kernel_thread() asm code to correctly return the pid back to the return var from the clone system call.
-
Andrew Morton authored
From: <gerg@snapgear.com> Create a dma-mapping.h for m68knommu architecture.
-
Andrew Morton authored
From: <miles@mcspd15.ucom.lsi.nec.co.jp> (Miles Bader) Is this something that should be done in <asm-generic/dma-mapping.h>?
-
Andrew Morton authored
From: <miles@mcspd15.ucom.lsi.nec.co.jp> (Miles Bader) Otherwise the compiler can delete them (this is one of those "how on earth did it ever work before" moments).
-
Andrew Morton authored
From: Roland McGrath <roland@redhat.com> The posix-timers implementation associates timers with the creating thread and destroys timers when their creator thread dies. POSIX clearly specifies that these timers are per-process, and a timer should not be torn down when the thread that created it exits. I hope there won't be any controversy on what the correct semantics are here, since POSIX is clear and the Linux feature is called "posix-timers". The attached program built with NPTL -lrt -lpthread demonstrates the bug. The program is correct by POSIX, but fails on Linux. Note that a until just the other day, NPTL had a trivial bug that always disabled its use of kernel timer syscalls (check strace for lack of timer_create/SYS_259). So unless you have built your own NPTL libs very recently, you probably won't see the kernel calls actually used by this program. Also attached is my patch to fix this. It (you guessed it) moves the posix_timers field from task_struct to signal_struct. Access is now governed by the siglock instead of the task lock. exit_itimers is called from __exit_signal, i.e. only on the death of the last thread in the group, rather than from do_exit for every thread. Timers' it_process fields store the group leader's pointer, which won't die. For the case of SIGEV_THREAD_ID, I hold a ref on the task_struct for it_process to stay robust in case the target thread dies; the ref is released and the dangling pointer cleared when the timer fires and the target thread is dead. (This should only come up in a buggy user program, so noone cares exactly how the kernel handles that case. But I think what I did is robust and sensical.) /* Test for bogus per-thread deletion of timers. */ #include <stdio.h> #include <error.h> #include <time.h> #include <signal.h> #include <stdint.h> #include <sys/time.h> #include <sys/resource.h> #include <unistd.h> #include <pthread.h> /* Creating timers in another thread should work too. */ static void *do_timer_create(void *arg) { struct sigevent *const sigev = arg; timer_t *const timerId = sigev->sigev_value.sival_ptr; if (timer_create(CLOCK_REALTIME, sigev, timerId) < 0) { perror("timer_create"); return NULL; } return timerId; } int main(void) { int i, res; timer_t timerId; struct itimerspec itval; struct sigevent sigev; itval.it_interval.tv_sec = 2; itval.it_interval.tv_nsec = 0; itval.it_value.tv_sec = 2; itval.it_value.tv_nsec = 0; sigev.sigev_notify = SIGEV_SIGNAL; sigev.sigev_signo = SIGALRM; sigev.sigev_value.sival_ptr = (void *)&timerId; for (i = 0; i < 100; i++) { printf("cnt = %d\n", i); pthread_t thr; res = pthread_create(&thr, NULL, &do_timer_create, &sigev); if (res) { error(0, res, "pthread_create"); continue; } void *val; res = pthread_join(thr, &val); if (res) { error(0, res, "pthread_join"); continue; } if (val == NULL) continue; res = timer_settime(timerId, 0, &itval, NULL); if (res < 0) perror("timer_settime"); res = timer_delete(timerId); if (res < 0) perror("timer_delete"); } return 0; }
-
Andrew Morton authored
From: Yoshinori Sato <ysato@users.sourceforge.jp> - add Kconfig depends H8300 - H8/300 support compile error fixed.
-