summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* [PATCH] mm/slob.c: for_each_possible_cpu(), not NR_CPUSJohn Hawkes2006-04-191-7/+3
| | | | | | | | | | Convert for-loops that explicitly reference "NR_CPUS" into the potentially more efficient for_each_possible_cpu() construct. Signed-off-by: John Hawkes <hawkes@sgi.com> Cc: Matt Mackall <mpm@selenic.com> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
* [PATCH] swsusp: prevent possible image corruption on resumeRafael J. Wysocki2006-04-191-4/+5
| | | | | | | | | | | | | | | | | | | | The function free_pagedir() used by swsusp for freeing its internal data structures clears the PG_nosave and PG_nosave_free flags for each page being freed. However, during resume PG_nosave_free set means that the page in question is "unsafe" (ie. it will be overwritten in the process of restoring the saved system state from the image), so it should not be used for the image data. Therefore free_pagedir() should not clear PG_nosave_free if it's called during resume (otherwise "unsafe" pages freed by it may be used for storing the image data and the data may get corrupted later on). Signed-off-by: Rafael J. Wysocki <rjw@sisk.pl> Acked-by: Pavel Machek <pavel@ucw.cz> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
* [PATCH] m41t00: fix bitmasks when writing to chipDavid Barksdale2006-04-191-4/+4
| | | | | | | | | | | | | Fix the bitmasks used when writing to the M41T00 registers. The original code used a mask of 0x7f when writing to each register, this is incorrect and probably the result of a copy-paste error. As a result years from 1980 to 1999 will be read back as 2000 to 2019. Signed-off-by: David Barksdale <amatus@ocgnet.org> Acked-by: Jean Delvare <khali@linux-fr.org> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
* [PATCH] uml: MADV_REMOVE fixesJeff Dike2006-04-193-2/+6
| | | | | | | | | | | | | MADV_REMOVE fixes - change the test mapping to be MAP_SHARED instead of MAP_PRIVATE, as MADV_REMOVE on MAP_PRIVATE maps won't work. Also, use the kernel's definition of MADV_REMOVE instead of hardcoding it if there isn't a libc definition. Signed-off-by: Jeff Dike <jdike@addtoit.com> Cc: Hugh Dickins <hugh@veritas.com> Cc: <stable@kernel.org> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
* [PATCH] for_each_possible_cpu: x86_64KAMEZAWA Hiroyuki2006-04-191-1/+1
| | | | | | | | | | | | | | | | | for_each_cpu() actually iterates across all possible CPUs. We've had mistakes in the past where people were using for_each_cpu() where they should have been iterating across only online or present CPUs. This is inefficient and possibly buggy. We're renaming for_each_cpu() to for_each_possible_cpu() to avoid this in the future. This patch replaces for_each_cpu with for_each_possible_cpu. Signed-off-by: KAMEZAWA Hiroyuki <kamezawa.hiroyu@jp.fujitsu.com> Acked-by: Andi Kleen <ak@muc.de> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
* [PATCH] task: Make task list manipulations RCU safeEric W. Biederman2006-04-194-5/+4
| | | | | | | | | | | | | | | | | While we can currently walk through thread groups, process groups, and sessions with just the rcu_read_lock, this opens the door to walking the entire task list. We already have all of the other RCU guarantees so there is no cost in doing this, this should be enough so that proc can stop taking the tasklist lock during readdir. prev_task was killed because it has no users, and using it will miss new tasks when doing an rcu traversal. Signed-off-by: Eric W. Biederman <ebiederm@xmission.com> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
* [PATCH] uml: make 64-bit COW files compatible with 32-bit onesPaolo 'Blaisorblade' Giarrusso2006-04-191-1/+1
| | | | | | | | | | | | | | This is the minimal fix to make 64-bit UML binaries create 32-bit compatible COW files and read them. I've indeed tested that current code doesn't do this - the code gets SIGFPE for a division by a value read at the wrong place, where 0 is found. Signed-off-by: Paolo 'Blaisorblade' Giarrusso <blaisorblade@yahoo.it> Cc: Jeff Dike <jdike@addtoit.com> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
* Linux v2.6.17-rc2v2.6.17-rc2Linus Torvalds2006-04-181-1/+1
|
* Merge branch 'upstream' of git://ftp.linux-mips.org/pub/scm/upstream-linusLinus Torvalds2006-04-18197-3989/+7745
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * 'upstream' of git://ftp.linux-mips.org/pub/scm/upstream-linus: (47 commits) [MAINTAINERS] The ham radio code now has website at http://www.linux-ax25.org. [MIPS] Use __ffs() instead of ffs() for waybit calculation. [MIPS] Fix Makefile bugs for MIPS32/MIPS64 R1 and R2. [MIPS] Handle IDE PIO cache aliases on SMP. [MIPS] Make mips_srs_init static. [MIPS] MIPS boards: Set HZ to 100. [MIPS] kgdb: Let gcc compute the array size itself. [MIPS] FPU affinity for MT ASE. [MIPS] MT: Improved multithreading support. [MIPS] kpsd and other AP/SP improvements. [MIPS] R2: Instruction hazard barrier. [MIPS] Fix genrtc compilation. [MIPS] R2: Implement shadow register allocation without spinlock. [MIPS] Fix VR41xx build errors. [MIPS] Fix tx49_blast_icache32_page_indexed. [MIPS] Enable SCHED_NO_NO_OMIT_FRAME_POINTER for MIPS. [MIPS] Use "R" constraint for cache_op. [MIPS] Rewrite all the assembler interrupt handlers to C. [MIPS] Fix the crime against humanity that mipsIRQ.S is. [MIPS] Fixup damage done by 22a9835c350782a5c3257343713932af3ac92ee0. ...
| * [MAINTAINERS] The ham radio code now has website at http://www.linux-ax25.org.Ralf Baechle2006-04-191-0/+3
| |
| * [MIPS] Use __ffs() instead of ffs() for waybit calculation.Atsushi Nemoto2006-04-192-9/+9
| | | | | | | | | | Signed-off-by: Atsushi Nemoto <anemo@mba.ocn.ne.jp> Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
| * [MIPS] Fix Makefile bugs for MIPS32/MIPS64 R1 and R2.Ralf Baechle2006-04-191-4/+4
| | | | | | | | | | | | | | | | | | This fixes kernel builds with gcc 3.2 (not 64-bit, that is looking like it is beyond recovery) and 3.3. With these bugs fixed we now also can get undo 3b4c4996a0c24da9e6f8be764e3950b756b18cc0 and similar bits for SMTC that were added in 79cc8007b93838a670b164b8a55ab3e735a12a8b. Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
| * [MIPS] Handle IDE PIO cache aliases on SMP.Ralf Baechle2006-04-197-2/+60
| | | | | | | | Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
| * [MIPS] Make mips_srs_init static.Ralf Baechle2006-04-191-1/+1
| | | | | | | | | | | | Nothing outside traps.c uses it. Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
| * [MIPS] MIPS boards: Set HZ to 100.Ralf Baechle2006-04-191-0/+13
| | | | | | | | | | | | | | 1000Hz will bring an FPGA CPU down on it's knees and it's even worse on multithreaded cores. Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
| * [MIPS] kgdb: Let gcc compute the array size itself.Ralf Baechle2006-04-191-1/+1
| | | | | | | | | | | | This is the same method as used in the serial driver. Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
| * [MIPS] FPU affinity for MT ASE.Ralf Baechle2006-04-1910-2/+125
| | | | | | | | Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
| * [MIPS] MT: Improved multithreading support.Ralf Baechle2006-04-1951-176/+3720
| | | | | | | | Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
| * [MIPS] kpsd and other AP/SP improvements.Ralf Baechle2006-04-199-394/+1307
| | | | | | | | Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
| * [MIPS] R2: Instruction hazard barrier.Ralf Baechle2006-04-191-0/+15
| | | | | | | | Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
| * [MIPS] Fix genrtc compilation.Ralf Baechle2006-04-191-2/+2
| | | | | | | | | | Signed-off-by: Ralf Roesch <ralf.roesch@rw-gmbh.de> Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
| * [MIPS] R2: Implement shadow register allocation without spinlock.Ralf Baechle2006-04-191-23/+18
| | | | | | | | Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
| * [MIPS] Fix VR41xx build errors.Yoichi Yuasa2006-04-191-0/+13
| | | | | | | | | | Signed-off-by: Ralf Baechle <ralf@linux-mips.org> Signed-off-by: Yoichi Yuasa <yoichi_yuasa@tripeaks.co.jp>
| * [MIPS] Fix tx49_blast_icache32_page_indexed.Atsushi Nemoto2006-04-191-1/+2
| | | | | | | | | | | | | | | | Fix the cache index value in tx49_blast_icache32_page_indexed(). This is a damage by de62893bc0725f8b5f0445250577cd7a10b2d8f8 commit. Signed-off-by: Atsushi Nemoto <anemo@mba.ocn.ne.jp> Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
| * [MIPS] Enable SCHED_NO_NO_OMIT_FRAME_POINTER for MIPS.Atsushi Nemoto2006-04-191-0/+4
| | | | | | | | | | | | | | MIPS get_wchan() no longer requires -fno-omit-frame-pointer. Signed-off-by: Atsushi Nemoto <anemo@mba.ocn.ne.jp> Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
| * [MIPS] Use "R" constraint for cache_op.Ralf Baechle2006-04-191-1/+1
| | | | | | | | | | | | | | Gcc might emit an absolute address for the the "m" constraint which gas unfortunately does not permit. Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
| * [MIPS] Rewrite all the assembler interrupt handlers to C.Ralf Baechle2006-04-19100-3388/+1114
| | | | | | | | | | | | | | | | | | | | | | | | Saves like 1,600 lines of code, is way easier to debug, compilers frequently do a better job than the cut and paste type of handlers many boards had. And finally having all the stuff done in a single place also means alot of bug potencial for the MT ASE is gone. The only surviving handler in assembler is the DECstation one; I hope Maciej will rewrite it. Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
| * [MIPS] Fix the crime against humanity that mipsIRQ.S is.Ralf Baechle2006-04-199-67/+260
| | | | | | | | Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
| * [MIPS] Fixup damage done by 22a9835c350782a5c3257343713932af3ac92ee0.Ralf Baechle2006-04-192-4/+6
| | | | | | | | Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
| * [MIPS] Replace redundant declarations of _end by <asm/sections.h>.Ralf Baechle2006-04-195-10/+7
| | | | | | | | Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
| * [MIPS] JMR3927 build fixes for the RTC code.Ralf Baechle2006-04-193-32/+45
| | | | | | | | Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
| * [MIPS] EV96100: ev96100_cpu_irq needs a struct pt_regs argument.Ralf Baechle2006-04-191-1/+1
| | | | | | | | Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
| * [MIPS] EV96100: Fix over two year old typo in variable name.Ralf Baechle2006-04-191-1/+1
| | | | | | | | Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
| * [MIPS] Ocelot 3: Fix build errors after the recent move of Marvell headers.Ralf Baechle2006-04-191-12/+12
| | | | | | | | Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
| * [MIPS] MV6434x: Add prototype of interrupt dispatch function.Ralf Baechle2006-04-191-0/+2
| | | | | | | | Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
| * [MIPS] it8172: Fix build of serial driver.Ralf Baechle2006-04-191-6/+6
| | | | | | | | Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
| * [MIPS] ITE: Glue build.Ralf Baechle2006-04-191-0/+1
| | | | | | | | Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
| * [MIPS] MV6434x: The name of the CPP symbol is __mips__, not __MIPS__.Ralf Baechle2006-04-191-1/+1
| | | | | | | | Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
| * [MIPS] Jaguar: Fix build errors after the recent move of Marvell headers.Ralf Baechle2006-04-191-18/+18
| | | | | | | | | | | | | | Some things were renamed because the PPC variant of the MV-643XX now uses the same header and the Jaguar code didn't catch up on that. Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
| * [MIPS] ITE8172: Fix build error due to missmatching prototypes.Ralf Baechle2006-04-191-3/+0
| | | | | | | | Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
| * [MIPS] Fix CONFIG_LIMITED_DMA build.Ralf Baechle2006-04-191-0/+2
| | | | | | | | | | | | This fix a build error for the Momentum Jaguar ATX eval board. Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
| * [MIPS] PNX8550 build fix.Ralf Baechle2006-04-191-0/+1
| | | | | | | | Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
| * [MIPS] Rewrite spurious_interrupt from assembler to C.Ralf Baechle2006-04-1918-44/+40
| | | | | | | | Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
| * [MIPS] Fix breakage due to the grand makefile crapectomy.Ralf Baechle2006-04-191-2/+2
| | | | | | | | | | | | It's cc-option not cc-options. Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
| * [MIPS] Sort out duplicate exports.Ralf Baechle2006-04-192-17/+0
| | | | | | | | Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
| * [MIPS] Wire up sync_file_range(2).Ralf Baechle2006-04-196-6/+23
| | | | | | | | Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
| * [MIPS] Wire splice syscall.Ralf Baechle2006-04-195-6/+13
| | | | | | | | Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
| * [MIPS] More SHT_* and SHF_* ELF definitions.Ralf Baechle2006-04-191-2/+43
| | | | | | | | Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
| * [MIPS] Fix vectored interrupt support in TLB exception handler generator.Ralf Baechle2006-04-192-2/+3
| | | | | | | | Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
| * [MIPS] Provide access functions for c0_badvaddr.Ralf Baechle2006-04-191-0/+3
| | | | | | | | Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
OpenPOWER on IntegriCloud