commit bd71c2b17468a2531fb4c81ec1d73520845e97e1 Author: Linus Torvalds Date: Fri Feb 17 14:23:45 2006 -0800 Linux v2.6.16-rc4 commit 35b73ceb9a7d10c81bd9e79e8485f7079ef2b40e Author: Bjorn Helgaas Date: Fri Feb 17 13:59:50 2006 -0800 [PATCH] ACPI: fix vendor resource length computation acpi_rs_get_list_length() needs to account for all the vendor-defined data bytes. Failing to include these causes buffers to be sized too small, which causes slab corruption when we later convert AML to resources and run off the end of the buffer. This causes slab corruption on machines that use ACPI vendor-defined resources. All HP ia64 machines do, and I'm told that some NEC machines may as well. Signed-off-by: Bjorn Helgaas Cc: "Brown, Len" Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit 636f13c174dd7c84a437d3c3e8fa66f03f7fda63 Author: Chris Wright Date: Fri Feb 17 13:59:36 2006 -0800 [PATCH] sys_mbind sanity checking Make sure maxnodes is safe size before calculating nlongs in get_nodes(). Signed-off-by: Chris Wright Signed-off-by: Linus Torvalds commit 74910e6c7dc7471b286a883c1a7af70483ffd2ba Author: Andrew Morton Date: Fri Feb 17 13:52:58 2006 -0800 [PATCH] select: time comparison fixes I got all of these backwards. We want to return min(input timeout, new timeout) to userspace to prevent increasing the time-remaining value. Thanks to Ernst Herzberg for reporting and diagnosing. Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit 200a4552af34b9a32e1f68a881a9ed5c7ec699cc Author: David Gibson Date: Fri Feb 17 13:52:56 2006 -0800 [PATCH] powerpc: Fix accidentally-working typo in __pud_free_tlb One of the parameters to the __pud_free_tlb() macro for powerpc is incorrect (see patch) . We get away with it by accident, because the one place the macro is called, the second parameter is a variable named "pud". Signed-off-by: David Gibson Cc: Paul Mackerras Cc: Benjamin Herrenschmidt Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit 9ff4ced4676d3cd1f28b14d93a339f263ca304b0 Author: Tim Hockin Date: Fri Feb 17 13:52:54 2006 -0800 [PATCH] Remove KERN_INFO from middle of printk line Don't print KERN_INFO in the middle of a printk line. printk(KERN_INFO "OEM ID: %s ",str); is just above this. This is already fixed up in i386 copy. Signed-off-by: Martin J. Bligh Cc: Andi Kleen Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit 9127dd1aace4e89acb48fbcafd0ed27d3869847b Author: Johannes Berg Date: Fri Feb 17 13:52:54 2006 -0800 [PATCH] allow windfarm_pm112 module to load The windfarm_pm112 module relies on smu_sat_get_sdb_partition which is in windfarm_smu_sat.c but is not exported to modules, so despite Kconfig having the option to build the pm112 as modules, this can never be loaded. This patch fixes that by exporting smu_sat_get_sdb_partition with EXPORT_SYMBOL_GPL Signed-off-by: Johannes Berg Signed-off-by: Benjamin Herrenschmidt Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit 77e7f250f88cd62844e24c42aff4d0e95969c746 Author: Miklos Szeredi Date: Fri Feb 17 13:52:52 2006 -0800 [PATCH] fuse: fix bug in aborted fuse_release_end() There's a rather theoretical case of the BUG triggering in fuse_reset_request(): - iget() fails because of OOM after a successful CREATE_OPEN request - during IO on the resulting RELEASE request the connection is aborted Fix and add warning to fuse_reset_request(). Signed-off-by: Miklos Szeredi Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit a8534adb74e23374889b84b3d97eb18da542a1b5 Author: Rafael J. Wysocki Date: Fri Feb 17 13:52:51 2006 -0800 [PATCH] swsusp: fix breakage with swap on LVM Restore the compatibility with the older code and make it possible to suspend if the kernel command line doesn't contain the "resume=" argument Signed-off-by: Rafael J. Wysocki Cc: Pavel Machek Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit ed3d021b823336a2e0c5090a91d083243f756e6c Author: Heiko Carstens Date: Fri Feb 17 13:52:50 2006 -0800 [PATCH] s390: sys32_fstatat -> sys32_fstatat64 Just rename the compat system call to keep the name consistent with all the other *64 compat system calls. Signed-off-by: Heiko Carstens Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit 6cadb78b3bec0a439a99db8fb550dc568e924ae6 Author: Cornelia Huck Date: Fri Feb 17 13:52:49 2006 -0800 [PATCH] s390: fix assignment instead of check in ccw_device_set_online() Fix assignment instead of check in ccw_device_set_online(). Also remove unneeded assignment in ccw_device_do_sense(). Signed-off-by: Cornelia Huck Signed-off-by: Heiko Carstens Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit 54330456b2e3398743586254f6d7695061ea0d49 Author: Heiko Carstens Date: Fri Feb 17 13:52:48 2006 -0800 [PATCH] s390: smp initialization speed The last changes that introduced the additional_cpus command line parameter also introduced a regression regarding smp initialization speed. In smp_setup_cpu_possible_map() cpu_present_map is set to the same value as cpu_possible_map. Especially that means that bits in the present map will be set for cpus that are not present. This will cause a slow down in the initial cpu_up() loop in smp_init() since trying to take cpus online that aren't present takes a while. Fix this by setting only bits for present cpus in cpu_present_map and set cpu_present_map to cpu_possible_map in smp_cpus_done(). Signed-off-by: Heiko Carstens Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit 37a3302618a51520e2056494715ea6b4776dd8ab Author: Heiko Carstens Date: Fri Feb 17 13:52:47 2006 -0800 [PATCH] s390: possible_cpus parameter Introduce possible_cpus command line option. Hard sets the number of bits set in cpu_possible_map. Unlike the additional_cpus parameter this one guarantees that num_possible_cpus() will stay constant even if the system gets rebooted and a different number of cpus are present at startup. Signed-off-by: Heiko Carstens Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit 255acee706b333b79f593dd366f16e1f107cccc3 Author: Heiko Carstens Date: Fri Feb 17 13:52:46 2006 -0800 [PATCH] s390: additional_cpus parameter Introduce additional_cpus command line option. By default no additional cpu can be attached to the system anymore. Only the cpus present at IPL time can be switched on/off. If it is desired that additional cpus can be attached to the system the maximum number of additional cpus needs to be specified with this option. This change is necessary in order to limit the waste of per_cpu data structures. Signed-off-by: Heiko Carstens Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit 1fca251f36fac3fae7d9cf10de69c2c93f6c0000 Author: Heiko Carstens Date: Fri Feb 17 13:52:46 2006 -0800 [PATCH] s390: fix preempt_count of idle thread with cpu hotplug Set preempt_count of idle_thread to zero before switching off cpu. Otherwise the preempt_count will be wrong if the cpu is switched on again since the thread will be reused. Signed-off-by: Heiko Carstens Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit 6d751c43b29deb1d990fb9644c13ca941c9d1305 Author: Cornelia Huck Date: Fri Feb 17 13:52:45 2006 -0800 [PATCH] s390: ccw device disbanding If __ccw_device_disband_start() fails to initiate disbanding, it should finish with ccw_device_disband_done() (which leaves the device in offline state) instead of ccw_device_verify_done() (which leaves the device in online state). Signed-off-by: Cornelia Huck Signed-off-by: Heiko Carstens Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit 4bbf39c29bc3409d6454faf0dfa1b3b0aa2ac2af Author: Ingo Molnar Date: Fri Feb 17 13:52:44 2006 -0800 [PATCH] Introduce CONFIG_DEFAULT_MIGRATION_COST Heiko Carstens wrote: The boot sequence on s390 sometimes takes ages and we spend a very long time (up to one or two minutes) in calibrate_migration_costs. The time spent there differs from boot to boot. Also the calculated costs differ a lot. I've seen differences by up to a factor of 15 (yes, factor not percent). Also I doubt that making these measurements make much sense on a completely virtualized architecture where you cannot tell how much cpu time you will get anyway. So introduce the CONFIG_DEFAULT_MIGRATION_COST method for an architecture to set the scheduler migration costs. This turns off automatic detection of migration costs. Makes sense on virtual platforms, where migration costs are hard to measure accurately. Signed-off-by: Ingo Molnar Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit 05efc67d100ff6c3364604b72729addf1a86fdab Author: Adrian Bunk Date: Fri Feb 17 13:52:42 2006 -0800 [PATCH] arch/sh/Kconfig: fix the ISA_DMA_API dependencies Jean-Luc Leger found this obvious typo. Signed-off-by: Adrian Bunk Acked-by: Paul Mundt Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit 8c9e877949d953e80d0d400bc4d1d1195a2028a4 Author: Marcel Selhorst Date: Fri Feb 17 13:52:41 2006 -0800 [PATCH] Infineon TPM: IO-port leakage fix, WTX-bugfix Fix IO-port leakage from request_region in case of error during TPM initialization, adds more pnp-verification and fixes a WTX-bug. Signed-off-by: Marcel Selhorst Acked-by: Kylene Jo Hall Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit b2f49033d80c952a0ffc2d5647bc1a0b8a09c1b3 Author: Peter Staubach Date: Fri Feb 17 13:52:36 2006 -0800 [PATCH] fix deadlock in ext2 Fix a deadlock possible in the ext2 file system implementation. This deadlock occurs when a file is removed from an ext2 file system which was mounted with the "sync" mount option. The problem is that ext2_xattr_delete_inode() was invoking the routine, sync_dirty_buffer(), using a buffer head which was previously locked via lock_buffer(). The first thing that sync_dirty_buffer() does is to lock the buffer head that it was passed. It does this via lock_buffer(). Oops. The solution is to unlock the buffer head in ext2_xattr_delete_inode() before invoking sync_dirty_buffer(). This makes the code in ext2_xattr_delete_inode() obey the same locking rules as all other callers of sync_dirty_buffer() in the ext2 file system implementation. Signed-off-by: Peter Staubach Cc: Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit c15d85c8f3f73b5f20aae7928e25b6996f16b328 Author: Jens Axboe Date: Wed Feb 15 15:59:25 2006 +0100 [PATCH] Add missing FUA write to sata_mv dma command list Signed-off-by: Jens Axboe Signed-off-by: Jeff Garzik commit 0565c26de7b2c069add553106f210b3128b67785 Author: Albert Lee Date: Mon Feb 13 18:55:25 2006 +0800 [PATCH] libata: minor fix for 2.6.16-rc3 - Fix the array index value in ata_rwcmd_protocol() for the added FUA commands. - Filter out ATAPI packet command error messages in ata_pio_error() Signed-off-by: Albert Lee Signed-off-by: Jeff Garzik commit 2ae5b30ff08cee422c7f6388a759f743633c7542 Author: Dan Williams Date: Wed Dec 14 13:10:49 2005 -0700 [PATCH] Necessary evil to get sata_vsc to initialize with Intel iq3124h hba * libata does not care about error interrupts, so handle them locally * the interrupts that are ignored only appear to happen at init time Signed-off-by: Dan Williams Signed-off-by: Jeff Garzik commit 4cf808eb443ead42777a0230b73aec0cee7fb298 Author: Linus Torvalds Date: Fri Feb 17 20:38:21 2006 +0100 [PATCH] Handle holes in node mask in node fallback list setup Change the find_next_best_node algorithm to correctly skip over holes in the node online mask. Previously it would not handle missing nodes correctly and cause crashes at boot. [Written by Linus, tested by AK] Signed-off-by: Andi Kleen Signed-off-by: Linus Torvalds commit f5e2a7b22e7d7dfda8794906d0fddeaaa09bb944 Author: Jay Vosburgh Date: Tue Feb 7 21:17:22 2006 -0800 [PATCH] bonding: fix a locking bug in bond_release bond_release returns EINVAL without releasing the bond lock if the slave device is not being bonded by the bond. The following patch ensures that the lock is released in this case. Signed-off-by: Stephen J. Bevan Acked-by: Jay Vosburgh Signed-off-by: Jeff Garzik commit 66cc5d5aee1ea427b3aeacdabd006a4195c81eee Author: Frank Pavlic Date: Tue Feb 7 17:04:38 2006 +0100 [PATCH] s390: some qeth driver fixes [patch 2/2] s390: some qeth driver fixes From: Frank Pavlic - fixed kernel panic when using EDDP support in Layer 2 mode - NULL pointer exception in qeth_set_offline fixed. - setting EDDP in Layer 2 mode did not set NETIF_F_(SG/TSO) flags when device became online. - use sscanf for parsing and converting IPv4 addresses from string to __u8 values. - qeth_string_to_ipaddr6 fixed. in case of double colon the converted IPv6 address out from the string was not correct in previous implementation. Signed-off-by: Frank Pavlic diffstat: qeth.h | 112 +++++++++++++++++++++++++----------------------------------- qeth_eddp.c | 11 ++++- qeth_main.c | 17 +++------ 3 files changed, 63 insertions(+), 77 deletions(-) Signed-off-by: Jeff Garzik commit 0d613a27cc753bfacd20e6eaa2183bb7fef4c76e Author: Frank Pavlic Date: Tue Feb 7 17:04:36 2006 +0100 [PATCH] s390: lcs performance enhancements [patch 1/2] s390: lcs performance enhancements From: Klaus Wacker - When flood pinging (with large packet size) an LCS device, about 90 % of all packets are dropped by driver. - increased number of lcs IO buffers to 32. - use netif_stop_queue/netif_wake_queue in lcs_start_xmit routine - don't lock the whole xmit routine but just the piece of code where tx_buffer is touched. Signed-off-by: Frank Pavlic diffstat: lcs.c | 31 +++++++++++++++++-------------- lcs.h | 2 +- 2 files changed, 18 insertions(+), 15 deletions(-) Signed-off-by: Jeff Garzik commit ca5b0ec8ae9f11c85d1f27b19f182a054303f324 Author: Andrew Morton Date: Fri Feb 10 02:00:43 2006 -0800 [PATCH] smctr warning fix drivers/net/tokenring/smctr.c: In function `smctr_load_firmware': drivers/net/tokenring/smctr.c:2981: warning: assignment discards qualifiers from pointer target type Signed-off-by: Andrew Morton Signed-off-by: Jeff Garzik commit 6f4c56b2ae10b680be518cc99f5308fc59236db2 Author: Stephen Hemminger Date: Fri Feb 10 15:58:59 2006 -0800 [PATCH] sky2: speed setting fix Users report problems w/ auto-negotiation disabled and the link set to 100/Half or 10/Half. Problems range from poor performance to no link at all. The current sky2 code does not set things properly on link up if autonegotiation is disabled. Plus it does not contemplate a 10Mbit setting at all. This patch corrects that. Signed-off-by: John W. Linville Signed-off-by: Stephen Hemminger Signed-off-by: Jeff Garzik commit 564f9abb34c936e5d0c7682129042dad14dbbb95 Author: Stephen Hemminger Date: Mon Feb 13 15:46:48 2006 -0800 [PATCH] skge: speed setting This is a clone of John Linville's fixed for speed setting on sky2 driver. The skge driver has the same code (and bug). It would not allow manually forcing 100 and 10 mbit. Signed-off-by: Stephen Hemminger Signed-off-by: Jeff Garzik commit 7a160c735a264de400cbbf4cf0fb3250007ae0c6 Author: Stephen Hemminger Date: Mon Feb 13 15:48:08 2006 -0800 [PATCH] skge: no longer experimental Take the experimental dependency of skge driver, it is as stable as the others. Signed-off-by: Stephen Hemminger Signed-off-by: Jeff Garzik commit 56c8f7e290a1b3249c6a5b464fada8a167f2e5ff Author: Stephen Hemminger Date: Mon Feb 13 15:49:55 2006 -0800 [PATCH] sk98lin: no d-link support (kconfig) The sk98lin driver was changed a while ago to remove support for the D-Link 530T card because that hardware has no working VPD data. The help text for Kconfig was not updated. Signed-off-by: Stephen Hemminger Signed-off-by: Jeff Garzik commit aca0b510cdbf81d52e15014a720be2b8dfd26aea Author: Jean Tourrilhes Date: Thu Feb 16 17:44:54 2006 -0800 [PATCH] Wavelan_cs bitfield fixes Some bitfields were incorrectly initialised in wavelan_cs, causing some compiler warning. Also killed a error message that should not be there... Signed-off-by: Jean Tourrilhes Signed-off-by: Jeff Garzik commit cfe91f9ce297e23e6fbdf61c02bdd8ab9af7c8a8 Author: Chuck Ebbert <76306.1226@compuserve.com> Date: Fri Feb 17 03:16:55 2006 -0500 [PATCH] i386: fix singlestepping though a syscall Do not mask TIF_SINGLESTEP bit in _TIF_WORK_MASK. Masking this stopped do_notify_resume() from being called when it should have been. Signed-off-by: Chuck Ebbert <76306.1226@compuserve.com> Signed-off-by: Linus Torvalds commit d30864392823d5f38002fa32950689e651ee11da Author: Joshua Kinard Date: Fri Feb 17 03:52:25 2006 +0000 [PATCH] Fix SGI O2 compile error in drivers/video/gbefb.c A sysfs function call uses the wrong parameter, and thus breaks a build on SGI O2. CC drivers/video/gbefb.o drivers/video/gbefb.c: In function ‘gbefb_remove’: drivers/video/gbefb.c:1246: error: ‘dev’ undeclared (first use in this function) drivers/video/gbefb.c:1246: error: (Each undeclared identifier is reported only once drivers/video/gbefb.c:1246: error: for each function it appears in.) make[2]: *** [drivers/video/gbefb.o] Error 1 Signed-off-by: Joshua Kinard Signed-off-by: Antonino Daplas Signed-off-by: Martin Michlmayr Signed-off-by: Linus Torvalds commit 726c14bf499e91e7ede4f1728830aba05c675061 Author: Paul Mackerras Date: Fri Feb 17 10:30:23 2006 +1100 [PATCH] Provide an interface for getting the current tick length This provides an interface for arch code to find out how many nanoseconds are going to be added on to xtime by the next call to do_timer. The value returned is a fixed-point number in 52.12 format in nanoseconds. The reason for this format is that it gives the full precision that the timekeeping code is using internally. The motivation for this is to fix a problem that has arisen on 32-bit powerpc in that the value returned by do_gettimeofday drifts apart from xtime if NTP is being used. PowerPC is now using a lockless do_gettimeofday based on reading the timebase register and performing some simple arithmetic. (This method of getting the time is also exported to userspace via the VDSO.) However, the factor and offset it uses were calculated based on the nominal tick length and weren't being adjusted when NTP varied the tick length. Note that 64-bit powerpc has had the lockless do_gettimeofday for a long time now. It also had an extremely hairy routine that got called from the 32-bit compat routine for adjtimex, which adjusted the factor and offset according to what it thought the timekeeping code was going to do. Not only was this only called if a 32-bit task did adjtimex (i.e. not if a 64-bit task did adjtimex), it was also duplicating computations from kernel/timer.c and it wasn't clear that it was (still) correct. The simple solution is to ask the timekeeping code how long the current jiffy will be on each timer interrupt, after calling do_timer. If this jiffy will be a different length from the last one, we then need to compute new values for the factor and offset used in the lockless do_gettimeofday. In this way we can keep xtime and do_gettimeofday in sync, even when NTP is varying the tick length. Note that when adjtimex varies the tick length, it almost always introduces the variation from the next tick on. The only case I could see where adjtimex would vary the length of the current tick is when an old-style adjtime adjustment is being cancelled. (It's not clear to me why the adjustment has to be cancelled immediately rather than from the next tick on.) Thus I don't see any real need for a hook in adjtimex; the rare case of an old-style adjustment being cancelled can be fixed up at the next tick. Signed-off-by: Paul Mackerras Acked-by: john stultz Signed-off-by: Linus Torvalds commit dd942ae331425812930cd01766178b7e28e65f2d Author: Andi Kleen Date: Fri Feb 17 01:39:16 2006 +0100 [PATCH] Handle all and empty zones when setting up custom zonelists for mbind The memory allocator doesn't like empty zones (which have an uninitialized freelist), so a x86-64 system with a node fully in GFP_DMA32 only would crash on mbind. Fix that up by putting all possible zones as fallback into the zonelist and skipping the empty ones. In fact the code always enough allocated space for all zones, but only used it for the highest. This change just uses all the memory that was allocated before. This should work fine for now, but whoever implements node hot removal needs to fix this somewhere else too (or make sure zone datastructures by itself never go away, only their memory) Signed-off-by: Andi Kleen Acked-by: Christoph Lameter Signed-off-by: Linus Torvalds commit 2aed711a399cbc4a9bf239c13f05a8a8b460f215 Author: Andi Kleen Date: Thu Feb 16 23:42:16 2006 +0100 [PATCH] x86_64: Always pass full number of nodes to NUMA hash computation Previously the numa hash code would be confused by holes in the node space and stop early. This is the first part of the fix for the non boot issue with empty nodes on Opterons. Signed-off-by: Andi Kleen Signed-off-by: Linus Torvalds commit fdb9df942437c6c5d1a6928d5fff824466c3af67 Author: Andi Kleen Date: Thu Feb 16 23:42:13 2006 +0100 [PATCH] x86_64: Relax SRAT covers all memory check a bit Code was refusing good SRATs because about 12K got lost somewhere. Allow less than 1MB of difference before rejecting it. Signed-off-by: Andi Kleen Signed-off-by: Linus Torvalds commit 6574ffd74b03e35026f428a2c820e6ddf45d426c Author: Andi Kleen Date: Thu Feb 16 23:42:10 2006 +0100 [PATCH] x86_64: Resolve the RIP of an early exception using kallsyms But do it after everything else to risk less from recursive crashes. Signed-off-by: Andi Kleen Signed-off-by: Linus Torvalds commit 7fd67843b96f90f59c9a244a1bc25137978a3ff9 Author: Andi Kleen Date: Thu Feb 16 23:42:07 2006 +0100 [PATCH] x86_64: Disable tsc when apicpmtimer is active Otherwise it has no effect anyways. Signed-off-by: Andi Kleen Signed-off-by: Linus Torvalds commit ab68805955ee3dd84a6aa76cd70e61fde996968d Author: Andi Kleen Date: Thu Feb 16 23:42:04 2006 +0100 [PATCH] x86_64: Don't enable ATI apicmaintimer workaround when the machine has C2 or C3 Many laptops have problems with ticking the local APIC timer in C2/C3. The code added earlier to use it by default on ATI didn't really work for them. Don't enable it when the system supports C2/C3. This doesn't fix the problem fully, but at least it's not worse than before. Signed-off-by: Andi Kleen Signed-off-by: Linus Torvalds commit 2391c4b594eb28abd58102de8f4e5d7a4fa39f4c Author: Andi Kleen Date: Thu Feb 16 23:42:01 2006 +0100 [PATCH] x86_64: Don't call do_exit with interrupts disabled after IRET exception This caused a sigreturn with bad argument on a preemptible kernel to complain with Debug: sleeping function called from invalid context at /home/lsrc/quilt/linux/include/linux/rwsem.h:43 in_atomic():0, irqs_disabled():1 Call Trace: {__might_sleep+190} {profile_task_exit+21} {__do_exit+34} {do_wait+0} Signed-off-by: Andi Kleen Signed-off-by: Linus Torvalds commit a62eaf151d9cb478d127cfbc2e93c498869785b0 Author: Andi Kleen Date: Thu Feb 16 23:41:58 2006 +0100 [PATCH] x86_64: Add boot option to disable randomized mappings and cleanup AMD SimNow!'s JIT doesn't like them at all in the guest. For distribution installation it's easiest if it's a boot time option. Also I moved the variable to a more appropiate place and make it independent from sysctl And marked __read_mostly which it is. Signed-off-by: Andi Kleen Signed-off-by: Linus Torvalds commit 99019e919969be88e7e4042f3afa296bd55ad9ec Author: Jan Beulich Date: Thu Feb 16 23:41:55 2006 +0100 [PATCH] x86_64: make touch_nmi_watchdog() not touch impossible cpus' private data Along with that, also suppress the memory touching altogether when the watchdog is not running, to eliminate needless crosstalk. Plus ad a call to it to make things consistent (one could also consider removing the call in enable_timer_nmi_watchdog()). Signed-off-by: Jan Beulich Signed-off-by: Andi Kleen Signed-off-by: Linus Torvalds commit e4444d1a3039354c388135073786efeb64d8ef0c Author: Andi Kleen Date: Thu Feb 16 23:41:52 2006 +0100 [PATCH] x86_64: Update defconfig ... and enable 1394 by default. Signed-off-by: Andi Kleen Signed-off-by: Linus Torvalds commit 7345137930907ba747781636c60112f7c2789aa8 Author: Dan Williams Date: Sun Feb 5 17:55:16 2006 -0500 [PATCH] wireless/atmel: fix Open System authentication process bugs This patch fixes a number of bugs in the authentication process: 1) When falling back to Shared Key authentication mode from Open System, a missing 'return' would cause the auth request to be sent, but would drop the card into Management Error state. When falling back, the driver should also indicate that it is switching to Shared Key mode by setting exclude_unencrypted. 2) Initial authentication modes were apparently wrong in some cases, causing the driver to attempt Shared Key authentication mode when in fact the access point didn't support that mode or even had WEP disabled. The driver should set the correct initial authentication mode based on wep_is_on and exclude_unencrypted. 3) Authentication response packets from the access point in Open System mode were getting ignored because the driver was expecting the sequence number of a Shared Key mode response. The patch separates the OS and SK mode handling to provide the correct behavior. Signed-off-by: Dan Williams Signed-off-by: John W. Linville commit 0d467502b7fc2656f01d7f18ab290c8d41762018 Author: Dan Williams Date: Sun Feb 5 17:52:21 2006 -0500 [PATCH] wireless/atmel: fix setting TX key only in ENCODEEXT The previous patch that added ENCODEEXT and AUTH support to the atmel driver contained a slight error which would cause just setting the TX key index to also set the encryption key again. This patch allows any combination of setting the TX key index and setting an encryption key. Signed-off-by: Dan Williams Signed-off-by: John W. Linville commit d9db950cfa3d674ee834d980c329efdf8e4a0568 Author: Nicolas Pitre Date: Thu Feb 16 22:36:15 2006 +0000 [ARM] 3339/1: ARM EABI: make unmuxed syscalls visible Patch from Nicolas Pitre With EABI the multiplex sys_ipc and sys_socketcall syscalls are unavailable and their support code even removed from the compiled kernel, and the new unmuxed syscalls must be used instead. Make those syscall numbers visible. Signed-off-by: Nicolas Pitre Signed-off-by: Russell King commit 6c0fa49b18b09ba9e69c0999f89bc38fad95d8a6 Author: Nicolas Pitre Date: Thu Feb 16 22:36:13 2006 +0000 [ARM] 3338/1: old ABI compat: sys_socketcall Patch from Nicolas Pitre Commit 99595d0237926b5aba1fe4c844a011a1ba1ee1f8 forgot to intercept sys_socketcall as well. Signed-off-by: Nicolas Pitre Signed-off-by: Russell King commit 3dfaf7a68e275a1a6bee4861fdd61f911e6eb7a2 Author: Martin Michlmayr Date: Thu Feb 16 22:36:12 2006 +0000 [ARM] 3337/1: Fix NSLU2 flash support according to window size configuration patch Patch from Martin Michlmayr ARM patch 3226/1 (IXP4xx runtime expansion bus window size configuration) forgot to update mach-ixp4xx/nslu2-setup.c which leads to the following compilation error. Update NSLU2 flash support following patch 3226/1. CC arch/arm/mach-ixp4xx/nslu2-setup.o arch/arm/mach-ixp4xx/nslu2-setup.c:30: error: ‘NSLU2_FLASH_BASE’ undeclared here (not in a function) arch/arm/mach-ixp4xx/nslu2-setup.c:31: error: ‘NSLU2_FLASH_SIZE’ undeclared here (not in a function) make[1]: *** [arch/arm/mach-ixp4xx/nslu2-setup.o] Error 1 make: *** [arch/arm/mach-ixp4xx] Error 2 Signed-off-by: Martin Michlmayr --- nslu2-setup.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) Signed-off-by: Russell King commit 8f8b1138fc9f65e3591aac83a4ee394fef34ac1d Author: Ashok Raj Date: Thu Feb 16 14:01:48 2006 -0800 [IA64] Count disabled cpus as potential hot-pluggable CPUs Minor updates to earlier patch. - Added to documentation to add ia64 as well. - Minor clarification on how to use disabled cpus - used plain max instead of max_t per Andew Morton. Signed-off-by: Ashok Raj Signed-off-by: Tony Luck commit 10487fbd74f2f9c9b5fb2d77efd50eab48db191a Author: Francois Romieu Date: Thu Feb 16 22:17:00 2006 +0100 sis190: early setting of the pci driver private data Below this point, the error path will proceed through sis190_release_board(). It will happily oops if pci_set_drvdata() has not been issued. Signed-off-by: Francois Romieu commit f671c09bce88ea253d576c842f8f39d9a2a29028 Author: Kurt Hackel Date: Tue Feb 14 11:45:21 2006 -0800 [PATCH] ocfs2: detach from heartbeat events before freeing mle Signed-off-by: Kurt Hackel Signed-off-by: Mark Fasheh commit 745ae8ba29e729ec922393fa4d9448c385673599 Author: Mark Fasheh Date: Thu Feb 9 13:23:39 2006 -0800 [PATCH] ocfs2: only checkpoint journal when asked to Disable automatic checkpointing of the journal - this is a relic from older ocfs2 days. Worth quite a bit of performance on longer running single node tests. Signed-off-by: Mark Fasheh commit 558c70c59b75a5a53ba496fe3bccea80a9e3e6fb Author: Kurt Hackel Date: Wed Jan 18 17:07:47 2006 -0800 [PATCH] ocfs2: manually grant remote recovery lock * fix a hang in recovery that occurred in dlmlock_remote. the $RECOVERY lock was never moved to the granted queue even after getting DLM_NORMAL back from the master node. Signed-off-by: Kurt Hackel Signed-off-by: Mark Fasheh commit 44465a7daf7c4e34199b2b0ebb3c5101619dcb9d Author: Kurt Hackel Date: Wed Jan 18 17:05:38 2006 -0800 [PATCH] ocfs2: add dlm_wait_for_node_death * add dlm_wait_for_node_death function to be used after receiving a network error. this will wait for the given timeout to allow the heartbeat callbacks to update the domain map. without this, some paths may spin and consume enough cpu that the heartbeat gets starved and never updates. Signed-off-by: Kurt Hackel Signed-off-by: Mark Fasheh commit e2b5e4506f5c5187b91d7a79fbad28fe3ebd2fc5 Author: Kurt Hackel Date: Wed Jan 18 17:02:56 2006 -0800 [PATCH] ocfs2: fix release of ast never reserved * fix a bug in dlm_convert_lock_handler where dlm_lockres_release_ast was being called even if no ast was ever reserved Signed-off-by: Kurt Hackel Signed-off-by: Mark Fasheh commit 898efface1a5076cbae5af87b935212b1869971b Author: Kurt Hackel Date: Wed Jan 18 17:01:25 2006 -0800 [PATCH] ocfs2: recheck recovery state after getting lock * after successfully taking the $RECOVERY lock in EX mode, recheck to make sure that recovery has not already begun or completed on another node Signed-off-by: Kurt Hackel Signed-off-by: Mark Fasheh commit 6f6d75825dc49b082906b84537b4df28293c2977 Author: Jack Steiner Date: Wed Feb 15 19:46:50 2006 -0600 [IA64] Missing check for TIF_WORK if trace/audit enabled It appears that if auditing is enabled, the kernel fails to check for pending signals before returning to user mode. Signed-off-by: Jack Steiner Acked-by: Ken Chen Signed-off-by: Tony Luck commit 0425a14213f373595bd23cacdc675f2b973a28d4 Author: Russell King Date: Thu Feb 16 16:48:31 2006 +0000 [MMC] mmci: allow small data transfers If a data transfer is small (less than a FIFO size) we would hang waiting for the data to be read due to the PIO interrupt not occuring. We allowed for this in our PIO interrupt handler, but not when setting up a data transfer. Apply the "fix" when setting up a data transfer as well. Signed-off-by: Russell King commit 90f9dd8f72773152b69042debd6b9ed6d224703a Author: NeilBrown Date: Thu Feb 16 14:43:01 2006 +1100 [PATCH] Fix over-zealous tag clearing in radix_tree_delete If a tag is set for a node being deleted from a radix_tree, then that tag gets cleared from the parent of the node, even if it is set for some siblings of the node begin deleted. This patch changes the logic to include a test for any_tag_set similar to the logic a little futher down. Care is taken to ensure that 'nr_cleared_tags' remains equals to the number of entries in the 'tags' array which are set to '0' (which means that this tag is not set in the tree below pathp->node, and should be cleared at pathp->node and possibly above. [ Nick says: "Linus FYI, I was able to modify the radix tree test harness to catch the bug and can no longer trigger it after the fix. Resulting code passes all other harness tests as well of course." ] Signed-off-by: Neil Brown Acked-by: Nick Piggin Signed-off-by: Linus Torvalds commit 7bbb79403163e047c6e333ff169db34e3c969e65 Author: Russell King Date: Thu Feb 16 11:08:09 2006 +0000 [ARM] Fix SMP initialisation oops A change to the SMP initialisation caused the following oops: CPU1: Booted secondary processor CPU1: D VIPT write-back cache CPU1: I cache: 32768 bytes, associativity 4, 32 byte lines, 256 sets CPU1: D cache: 32768 bytes, associativity 4, 32 byte lines, 256 sets <7>Calibrating delay loop... 83.14 BogoMIPS (lpj=415744) <1>Unable to handle kernel NULL pointer dereference at virtual address 0000001c ... PC is at enqueue_task+0x1c/0x64 LR is at activate_task+0xcc/0xe4 SMP initialisation now requires cpu_possible_map to be initialised in setup_arch(). Move this from smp_prepare_cpus() to smp_init_cpus() and call it from our setup_arch() if CONFIG_SMP is enabled. Signed-off-by: Russell King commit 61be6d660093edde709ed638c7e1c458bd88c941 Author: Bjorn Helgaas Date: Wed Feb 15 15:17:43 2006 -0800 [PATCH] mmconfig: add kernel parameter documentation Mention the "pci=nommconf" option in kernel-parameters.txt. Signed-off-by: Bjorn Helgaas Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit c8adb494a6df6b2be8e50a8dafd5bab231df3505 Author: Andrew Morton Date: Wed Feb 15 15:17:42 2006 -0800 [PATCH] swsusp: nuke noisy message I get about 88 squillion of these when suspending an old ad450nx server. Cc: Pavel Roskin Cc: "Rafael J. Wysocki" Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit d1db4ec86c7b1bf5b44d2ed3bf84a4bb53c33b1c Author: Daniel Yeisley Date: Wed Feb 15 15:17:41 2006 -0800 [PATCH] x86_64: early initialization of cpu_to_node The early initialization of cpu_to_node code as it is now only updates the cpu_to_node array, and does not update cpu_pda()->nodemember. This will cause numa_node_id() to return 0 on systems where CPU 0 is not on Node 0. This leads to a kernel panic in slab.c. I've tested the patch below on a 16 processor x86_64 ES7000-600 server, and no longer see the panic I saw with the original 2.6.16-rc3. Signed-off-by: Dan Yeisley Acked-by: Andi Kleen Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit b2ee9dbfad14ba8e34a589d552ddc67300a26bec Author: Roman Zippel Date: Wed Feb 15 15:17:40 2006 -0800 [PATCH] hrtimer: fix multiple macro argument expansion For two macros the arguments were expanded twice, change them to inline functions to avoid it. Signed-off-by: Roman Zippel Acked-by: Ingo Molnar Acked-by: Thomas Gleixner Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit 5f6164f3092832e0d9b12eed52e09a76bf39c64a Author: Michael S. Tsirkin Date: Wed Feb 15 15:17:39 2006 -0800 [PATCH] add asm-generic/mman.h Make new MADV_REMOVE, MADV_DONTFORK, MADV_DOFORK consistent across all arches. The idea is to make it possible to use them portably even before distros include them in libc headers. Move common flags to asm-generic/mman.h Signed-off-by: Michael S. Tsirkin Cc: Roland Dreier Cc: Badari Pulavarty Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit 06fed33849c13af637c4d09e9ba27828fac9edd5 Author: Paul Jackson Date: Wed Feb 15 15:17:38 2006 -0800 [PATCH] cpuset: oops in exit on null cpuset fix Fix a latent bug in cpuset_exit() handling. If a task tried to allocate memory after calling cpuset_exit(), it oops'd in cpuset_update_task_memory_state() on a NULL cpuset pointer. So set the exiting tasks cpuset to the root cpuset instead of to NULL. A distro kernel hit this with an added kernel package that had just such a hook (allocating memory) in the exit code path. Signed-off-by: Paul Jackson Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit 651c29a17f7ea0204dacbc2a5042d57b1c9e2e37 Author: Andrew Morton Date: Wed Feb 15 15:17:37 2006 -0800 [PATCH] ide: touch softlockup detector during pio We're getting some softlockup false positives during heavy PIO operations. So poke the lockup detector. Cc: Bartlomiej Zolnierkiewicz Cc: Alan Cox Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit 36cbbe5eb9857730768aa5f54ad94d69e0b2133d Author: Benjamin LaHaise Date: Wed Feb 15 15:17:35 2006 -0800 [PATCH] kbuild: revert "fix make -jN with multiple targets with O=..." Commit 296e0855b0f9a4ec9be17106ac541745a55b2ce1: "kbuild: fix make -jN with multiple targets with O=..." causes a ~95% increase in build time for the kernel. Before: 4m21s after: 8m1.403s. Can we revert this until another approach is found? Cc: Sam Ravnborg Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit 9f672004ab1a8094bec1785b39ac683ab9eebebc Author: Christian Trefzer Date: Wed Feb 15 15:17:34 2006 -0800 [PATCH] neofb: avoid resetting display config on unblank (v2) There were two mistakes in the register-read-on-(un)blank approach. - First, without proper register (un)locking the value read back will always be zero, and this is what I missed entirely until just now. Due to this, the logic could not be verified at all and I tried some bogus checks which are completely stupid. - Second, the LCD status bit will always be set to zero when the backlight has been turned off. Reading the value back during unblank will disable the LCD unconditionally, regardless of the state it is supposed to be in, since we set it to zero beforehand. So this is what we do now: - create a new variable in struct neofb_par, and use that to determine whether to read back registers (initialized to true) - before actually blanking the screen, read back the register to sense any possible change made through Fn key combo - use proper neoUnlock() / neoLock() to actually read something - every call to neofb_blank() determines if we read back next time: blanking disables readback, unblanking (FB_BLANK_UNBLANK) enables it This should give us a nice and clean state machine. Has been thoroughly tested on a Dell Latitude CPiA / NM220 Chip docked to a C/Dock2 with attached CRT in all possible combinations of LCD/CRT on/off. I changed the config via Fn key, let the console blank, unblanked by keypress - works flawlessly. Signed-off-by: Christian Trefzer Cc: "Antonino A. Daplas" Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit 7c6de05884b9fcc7ef621e2ab198ba93d85f46aa Author: Yasuyuki Kozakai Date: Wed Feb 15 15:25:18 2006 -0800 [NETFILTER]: nf_conntrack: Fix TCP/UDP HW checksum handling for IPv6 packet If skb->ip_summed is CHECKSUM_HW here, skb->csum includes checksum of actual IPv6 header and extension headers. Then such excess checksum must be subtruct when nf_conntrack calculates TCP/UDP checksum with pseudo IPv6 header. Spotted by Ben Skeggs. Signed-off-by: Yasuyuki Kozakai Signed-off-by: Patrick McHardy Signed-off-by: David S. Miller commit 763ecff1879b3877f57f20fc9e79599aef59359f Author: Yasuyuki Kozakai Date: Wed Feb 15 15:24:15 2006 -0800 [NETFILTER]: nf_conntrack: attach conntrack to locally generated ICMPv6 error Locally generated ICMPv6 errors should be associated with the conntrack of the original packet. Since the conntrack entry may not be in the hash tables (for the first packet), it must be manually attached. Signed-off-by: Yasuyuki Kozakai Signed-off-by: Patrick McHardy Signed-off-by: David S. Miller commit 08857fa745ab6ce46601960d2774490e1cef2cff Author: Yasuyuki Kozakai Date: Wed Feb 15 15:23:28 2006 -0800 [NETFILTER]: nf_conntrack: attach conntrack to TCP RST generated by ip6t_REJECT TCP RSTs generated by the REJECT target should be associated with the conntrack of the original TCP packet. Since the conntrack entry is usually not is the hash tables, it must be manually attached. Signed-off-by: Yasuyuki Kozakai Signed-off-by: Patrick McHardy Signed-off-by: David S. Miller commit 7d3cdc6b554137a7a0534ce38b155a63a3117f27 Author: Yasuyuki Kozakai Date: Wed Feb 15 15:22:21 2006 -0800 [NETFILTER]: nf_conntrack: move registration of __nf_ct_attach Move registration of __nf_ct_attach to nf_conntrack_core to make it usable for IPv6 connection tracking as well. Signed-off-by: Yasuyuki Kozakai Signed-off-by: Patrick McHardy Signed-off-by: David S. Miller commit deac0ccdb4da16b68539d75edecf26162de05150 Author: Yasuyuki Kozakai Date: Wed Feb 15 15:21:31 2006 -0800 [NETFILTER]: x_tables: fix dependencies of conntrack related modules NF_CONNTRACK_MARK is bool and depends on NF_CONNTRACK which is tristate. If a variable depends on NF_CONNTRACK_MARK and doesn't take care about NF_CONNTRACK, it can be y even if NF_CONNTRACK isn't y. NF_CT_ACCT have same issue, too. Signed-off-by: Yasuyuki Kozakai Signed-off-by: Patrick McHardy Signed-off-by: David S. Miller commit 9c92d3486434e7310cb288587953e2dae4a79701 Author: Patrick McHardy Date: Wed Feb 15 15:18:19 2006 -0800 [NETFILTER]: Don't invoke okfn in CONFIG_NETFILTER=n variant of nf_hook() nf_hook() is supposed to call the netfilter hook and return control of the packet back to the caller in case it may pass, the okfn is only used for queueing. Signed-off-by: Patrick McHardy Signed-off-by: David S. Miller commit b05de01ae1c76b7d61da21bbcc26345bf7a9052f Author: Horms Date: Wed Feb 15 17:23:09 2006 +0900 [IA64] support panic_on_oops sysctl Trivial port of this feature from i386 As it stands, panic_on_oops but does nothing on ia64 Signed-Off-By: Horms Signed-off-by: Tony Luck commit 48d5cad87c3a4998d0bda16ccfb5c60dfe4de5fb Author: Patrick McHardy Date: Wed Feb 15 15:10:22 2006 -0800 [XFRM]: Fix SNAT-related crash in xfrm4_output_finish When a packet matching an IPsec policy is SNATed so it doesn't match any policy anymore it looses its xfrm bundle, which makes xfrm4_output_finish crash because of a NULL pointer dereference. This patch directs these packets to the original output path instead. Since the packets have already passed the POST_ROUTING hook, but need to start at the beginning of the original output path which includes another POST_ROUTING invocation, a flag is added to the IPCB to indicate that the packet was rerouted and doesn't need to pass the POST_ROUTING hook again. Signed-off-by: Patrick McHardy Signed-off-by: David S. Miller commit defbb2c929cbe89dc92239b303cd33d3c85e9a83 Author: hawkes@sgi.com Date: Tue Feb 14 10:40:17 2006 -0800 [IA64] ia64: simplify and fix udelay() The original ia64 udelay() was simple, but flawed for platforms without synchronized ITCs: a preemption and migration to another CPU during the while-loop likely resulted in too-early termination or very, very lengthy looping. The first fix (now in 2.6.15) broke the delay loop into smaller, non-preemptible chunks, reenabling preemption between the chunks. This fix is flawed in that the total udelay is computed to be the sum of just the non-premptible while-loop pieces, i.e., not counting the time spent in the interim preemptible periods. If an interrupt or a migration occurs during one of these interim periods, then that time is invisible and only serves to lengthen the effective udelay(). This new fix backs out the current flawed fix and returns to a simple udelay(), fully preemptible and interruptible. It implements two simple alternative udelay() routines: one a default generic version that uses ia64_get_itc(), and the other an sn-specific version that uses that platform's RTC. Signed-off-by: John Hawkes Signed-off-by: Tony Luck commit 4c2cd96696ae0896ce4bcf725b9f0eaffafeb640 Author: Dean Nelson Date: Wed Feb 15 08:02:21 2006 -0600 [IA64-SGI] enforce proper ordering of callouts by XPC Fix XPC so that it does not deliver any messages until the connected callout has returned, as well as, prevent the disconnected callout to occur before the disconnecting callout has returned. Signed-off-by: Dean Nelson Signed-off-by: Tony Luck commit c2a4969ba14e852bf4ee92c7db3b0cf82405a0c9 Author: Dean Roe Date: Tue Feb 14 15:01:23 2006 -0600 [IA64-SGI] fix the size of __sn_cnodeid_to_nasid The __sn_cnodeid_to_nasid array was incorrectly sized at MAX_NUMNODES. On a large system, this array could overflow. The following patch corrects this by defining it to MAX_COMPACT_NODES. Signed-off-by: Dean Roe Signed-off-by: Tony Luck commit 9c65cb9be62ac4993a5b392304b82e4f04f010fd Author: Mark Maule Date: Tue Feb 14 10:23:37 2006 -0600 [IA64-SGI] export sn_pcidev_info_get Export sn_pcidev_info_get. Signed-off-by Mark Maule Signed-off-by: Tony Luck commit 26d10915de3030a55253dba3b2b145402cdf6429 Author: Jes Sorensen Date: Mon Feb 13 05:35:01 2006 -0500 [IA64-SGI] remove compile time warning This one falls into the "present for Andrew Morton" category to address his wishlist for a compiler warning free build ;-) Signed-off-by: Tony Luck commit d3454344b3507042e5d561d0cfed19e99cf2fc88 Author: Jes Sorensen Date: Mon Feb 13 05:32:09 2006 -0500 [IA64] remove obsolete corporate address Remove obsolete SGI address Signed-off-by: Jes Sorensen Signed-off-by: Tony Luck commit 8ed9b2c7a804335004e4bd3b4c6989c5b6bc243f Author: Jes Sorensen Date: Mon Feb 13 05:29:57 2006 -0500 [IA64-SGI] sn2 minor fixes and cleanups General SN2 code cleanup: - Do not initialize global variables to zero - Use kzalloc instead of kmalloc+memset - Check kmalloc return values - Do not obfuscate spin lock calls - Remove some unused code - Various formatting cleanups Signed-off-by: Jes Sorensen Signed-off-by: Tony Luck commit 50d8e59038703c4da5acaed9afaa37ae416d3153 Author: Andreas Schwab Date: Sun Feb 12 17:01:35 2006 +0100 [IA64] Remove duplicate EXPORT_SYMBOLs Remove symbol exports from ia64_ksyms.c that are already exported in lib/string.c. Signed-off-by: Andreas Schwab Signed-off-by: Tony Luck commit 5ecfbae093f0c37311e89b29bfc0c9d586eace87 Author: Oleg Nesterov Date: Wed Feb 15 22:50:10 2006 +0300 [PATCH] fix zap_thread's ptrace related problems 1. The tracee can go from ptrace_stop() to do_signal_stop() after __ptrace_unlink(p). 2. It is unsafe to __ptrace_unlink(p) while p->parent may wait for tasklist_lock in ptrace_detach(). Signed-off-by: Oleg Nesterov Cc: Roland McGrath Cc: Ingo Molnar Cc: Christoph Hellwig Cc: Eric W. Biederman Signed-off-by: Linus Torvalds commit dadac81b1b86196fcc48fb87620403c4a7174f06 Author: Oleg Nesterov Date: Wed Feb 15 22:13:26 2006 +0300 [PATCH] fix kill_proc_info() vs fork() theoretical race copy_process: attach_pid(p, PIDTYPE_PID, p->pid); attach_pid(p, PIDTYPE_TGID, p->tgid); What if kill_proc_info(p->pid) happens in between? copy_process() holds current->sighand.siglock, so we are safe in CLONE_THREAD case, because current->sighand == p->sighand. Otherwise, p->sighand is unlocked, the new process is already visible to the find_task_by_pid(), but have a copy of parent's 'struct pid' in ->pids[PIDTYPE_TGID]. This means that __group_complete_signal() may hang while doing do ... while (next_thread() != p) We can solve this problem if we reverse these 2 attach_pid()s: attach_pid() does wmb() group_send_sig_info() calls spin_lock(), which provides a read barrier. // Yes ? I don't think we can hit this race in practice, but still. Signed-off-by: Oleg Nesterov Cc: Roland McGrath Cc: Ingo Molnar Signed-off-by: Linus Torvalds commit 3f17da699431ec48540beabc55c54d4b5e66c8e7 Author: Oleg Nesterov Date: Wed Feb 15 22:13:24 2006 +0300 [PATCH] fix kill_proc_info() vs CLONE_THREAD race There is a window after copy_process() unlocks ->sighand.siglock and before it adds the new thread to the thread list. In that window __group_complete_signal(SIGKILL) will not see the new thread yet, so this thread will start running while the whole thread group was supposed to exit. I beleive we have another good reason to place attach_pid(PID/TGID) under ->sighand.siglock. We can do the same for release_task()->__unhash_process() de_thread()->switch_exec_pids() After that we don't need tasklist_lock to iterate over the thread list, and we can simplify things, see for example do_sigaction() or sys_times(). Signed-off-by: Oleg Nesterov Cc: Roland McGrath Cc: Ingo Molnar Signed-off-by: Linus Torvalds commit ba09cf2bcf9b74d852dcb5ea957ac6af2bc0e057 Author: Herbert Poetzl Date: Wed Feb 15 10:13:02 2006 +0000 [ARM] remove duplicate #includes Signed-off-by: Herbert P?tzl Signed-off-by: Russell King commit dc7bf130b8552a218e2f3ea0b58268e469f335da Author: Ralf Baechle Date: Wed Feb 15 09:59:47 2006 +0000 [SERIAL] Fix typo in comment Signed-off-by: Ralf Baechle Signed-off-by: Russell King commit a5f1e4edb3cdd90733893b8aec38fac5553db60a Author: Arthur Othieno Date: Wed Feb 15 09:52:46 2006 +0000 [SERIAL] Documentation/jsm.txt is a no show. In kernel bugzilla #5176 (http://bugzilla.kernel.org/show_bug.cgi?id=5176) Harry R\374ter points out Documentation/jsm.txt is missing. No one at Digi seems to care, so just remove the stale reference. Signed-off-by: Arthur Othieno Signed-off-by: Russell King commit 78872ccb68335b14f0d1ac7338ecfcbf1cba1df4 Author: Adrian Drzewiecki Date: Wed Feb 15 01:47:48 2006 -0800 [BRIDGE]: Fix deadlock in br_stp_disable_bridge Looks like somebody forgot to use the _bh spin_lock variant. We ran into a deadlock where br->hello_timer expired while br_stp_disable_br() walked br->port_list. Signed-off-by: Adrian Drzewiecki Signed-off-by: Stephen Hemminger Signed-off-by: David S. Miller commit ee68cea2c26b7a8222f9020f54d22c6067011e8b Author: Patrick McHardy Date: Wed Feb 15 01:34:23 2006 -0800 [NETFILTER]: Fix xfrm lookup after SNAT To find out if a packet needs to be handled by IPsec after SNAT, packets are currently rerouted in POST_ROUTING and a new xfrm lookup is done. This breaks SNAT of non-unicast packets to non-local addresses because the packet is routed as incoming packet and no neighbour entry is bound to the dst_entry. In general, it seems to be a bad idea to replace the dst_entry after the packet was already sent to the output routine because its state might not match what's expected. This patch changes the xfrm lookup in POST_ROUTING to re-use the original dst_entry without routing the packet again. This means no policy routing can be used for transport mode transforms (which keep the original route) when packets are SNATed to match the policy, but it looks like the best we can do for now. Signed-off-by: Patrick McHardy Signed-off-by: Herbert Xu Signed-off-by: David S. Miller commit 02860ab6cd2c71dbe42fa70a65a97823c213635b Author: Arthur Othieno Date: Wed Feb 15 00:49:48 2006 -0500 Input: kill remnants of 98kbd{,-io} and 98spkr 98kbd{,-io} and 98spkr all went out with PC98 subarch. Remove stale Makefile entries that remained. Signed-off-by: Arthur Othieno Signed-off-by: Andrew Morton Signed-off-by: Dmitry Torokhov commit d93f70b2d758e79ee4ac9d6d982e3f532453911f Author: David Brownell Date: Wed Feb 15 00:49:35 2006 -0500 Input: ads7846 - assorted updates This updates the ads7846 touchscreen driver: - to allow faster clocking (this driver doesn't push sample rates); - bugfixes the conversion of spi_transfer to lists; - some dma-unsafe command buffers are fixed. Signed-off-by: David Brownell Signed-off-by: Dmitry Torokhov commit a90f7e98b7df3309ebc0e389076990456db20989 Author: Dmitry Torokhov Date: Wed Feb 15 00:49:22 2006 -0500 Input: ads7846 - convert to to dynamic input_dev allocation Signed-off-by: Dmitry Torokhov commit b8044c74bcd64bd1a9d2e8cec58fdcd40f16f5a4 Author: Dmitry Torokhov Date: Wed Feb 15 00:49:09 2006 -0500 Input: trackpoint - enable devices connected to external port Signed-off-by: Dmitry Torokhov commit 50f6dde0ad05ee4ee8450feb731b15b716115c4d Author: Meelis Roos Date: Wed Feb 15 00:48:58 2006 -0500 Input: logips2pp - add new signature (99) Add Logitech mouse type 99 (Premium Optical Wheel Mouse, model M-BT58, plain 3 buttons + wheel) to cure the following message: logips2pp: Detected unknown logitech mouse model 99 Signed-off-by: Meelis Roos Signed-off-by: Andrew Morton Signed-off-by: Dmitry Torokhov commit a09d31ff762a3671f2ae41b3bca50a100c5e4da6 Author: Alessandro Zummo Date: Wed Feb 15 00:48:40 2006 -0500 Input: ixp4xx-beeper - fix compile error Signed-off-by: Alessandro Zummo Signed-off-by: Dmitry Torokhov commit 93544cc6486bea12e127ed58ca33477bb6ceafe6 Author: Steve French Date: Tue Feb 14 22:30:52 2006 -0600 [PATCH] CIFS: fix cifs_user_read oops when null SMB response on forcedirectio mount This patch fixes an oops reported by Adrian Bunk in cifs_user_read when a null read response is returned on a forcedirectio mount. Signed-off-by: Dave Kleikamp Signed-off-by: Steve French Signed-off-by: Linus Torvalds commit 10ee39fe3ff618d274e1cd0f6abbc2917b736bfd Author: Christian Trefzer Date: Tue Feb 14 13:53:26 2006 -0800 [PATCH] neofb: avoid resetting display config on unblank Fix issues with the NeoMagic framebuffer driver. It nicely complements my previous fix already in linus' tree. The only thing missing now is that the external CRT will not be activated at neofb init when external-only is selected, either by register read or module/kernel parameter. Testing was done on a Dell Latitude CPi-A/NM2200 chip. Previous behaviour: - before booting linux, set the preferred display config X via FN+F8 - boot linux, neofb stores the register values in a private variable - change the display config to Y via keystroke - leave the machine in peace until display is blanked - touching any key will result in display config X being restored - booting up, the BIOS will acknowledge config Y, though... Current behaviour: At the time of unblanking, config Y is honoured because we now read back register contents instead of just overwriting them with outdated values. Signed-off by: Christian Trefzer Cc: "Antonino A. Daplas" Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit e2fbf1ace5cfefdd192f29fd4a027422f567c62d Author: Thomas Meyer Date: Tue Feb 14 13:53:21 2006 -0800 [PATCH] x86: gitignore some autogenerated files for i386 Add some more gitignore files for i386 architecture. This files are created during the build process of a i386 kernel. Signed-off-by: Thomas Meyer Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit 581141cb4b10ebd865dcb7b80f5e712e2def5408 Author: Albert D. Cahalan Date: Tue Feb 14 13:53:20 2006 -0800 [PATCH] x86: document sysenter path This path isn't obvious. It looks as if the kernel will be taking three args from the user stack, but it only takes one from there. Signed-off-by: Albert Cahalan Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit 28baebae73c3ea8b75c7cae225a7db817ab825a9 Author: David Howells Date: Tue Feb 14 13:53:20 2006 -0800 [PATCH] FRV: Use virtual interrupt disablement Make the FRV arch use virtual interrupt disablement because accesses to the processor status register (PSR) are relatively slow and because we will soon have the need to deal with multiple interrupt controls at the same time (separate h/w and inter-core interrupts). The way this is done is to dedicate one of the four integer condition code registers (ICC2) to maintaining a virtual interrupt disablement state whilst inside the kernel. This uses the ICC2.Z flag (Zero) to indicate whether the interrupts are virtually disabled and the ICC2.C flag (Carry) to indicate whether the interrupts are physically disabled. ICC2.Z is set to indicate interrupts are virtually disabled. ICC2.C is set to indicate interrupts are physically enabled. Under normal running conditions Z==0 and C==1. Disabling interrupts with local_irq_disable() doesn't then actually physically disable interrupts - it merely sets ICC2.Z to 1. Should an interrupt then happen, the exception prologue will note ICC2.Z is set and branch out of line using one instruction (an unlikely BEQ). Here it will physically disable interrupts and clear ICC2.C. When it comes time to enable interrupts (local_irq_enable()), this simply clears the ICC2.Z flag and invokes a trap #2 if both Z and C flags are clear (the HI integer condition). This can be done with the TIHI conditional trap instruction. The trap then physically reenables interrupts and sets ICC2.C again. Upon returning the interrupt will be taken as interrupts will then be enabled. Note that whilst processing the trap, the whole exceptions system is disabled, and so an interrupt can't happen till it returns. If no pending interrupt had happened, ICC2.C would still be set, the HI condition would not be fulfilled, and no trap will happen. Saving interrupts (local_irq_save) is simply a matter of pulling the ICC2.Z flag out of the CCR register, shifting it down and masking it off. This gives a result of 0 if interrupts were enabled and 1 if they weren't. Restoring interrupts (local_irq_restore) is then a matter of taking the saved value mentioned previously and XOR'ing it against 1. If it was one, the result will be zero, and if it was zero the result will be non-zero. This result is then used to affect the ICC2.Z flag directly (it is a condition code flag after all). An XOR instruction does not affect the Carry flag, and so that bit of state is unchanged. The two flags can then be sampled to see if they're both zero using the trap (TIHI) as for the unconditional reenablement (local_irq_enable). This patch also: (1) Modifies the debugging stub (break.S) to handle single-stepping crossing into the trap #2 handler and into virtually disabled interrupts. (2) Removes superseded fixup pointers from the second instructions in the trap tables (there's no a separate fixup table for this). (3) Declares the trap #3 vector for use in .org directives in the trap table. (4) Moves irq_enter() and irq_exit() in do_IRQ() to avoid problems with virtual interrupt handling, and removes the duplicate code that has now been folded into irq_exit() (softirq and preemption handling). (5) Tells the compiler in the arch Makefile that ICC2 is now reserved. (6) Documents the in-kernel ABI, including the virtual interrupts. (7) Renames the old irq management functions to different names. Signed-off-by: David Howells Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit 68f624fc8b9fa50de9cc0ebd612ef7b7b9fa32d0 Author: David Howells Date: Tue Feb 14 13:53:18 2006 -0800 [PATCH] FRV: Miscellaneous fixes Make various alterations and fixes to the FRV arch: (1) Resyncs the FRV system call collection with the i386 arch. (2) Discards __iounmap() as it's not used. (3) Fixes the use of the SWAP/SWAPI instruction to get the arguments the right way around in atomic.h, and also to get the asm constraints correct. (4) Moves copy_to/from_user_page() to asm/cacheflush.h to be consistent with other archs. Signed-off-by: David Howells Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit 06027bdd278a32a84b273e41db68a5db8ffd2bb6 Author: Ingo Molnar Date: Tue Feb 14 13:53:15 2006 -0800 [PATCH] hrtimer: round up relative start time on low-res arches CONFIG_TIME_LOW_RES is a temporary way for architectures to signal that they simply return xtime in do_gettimeoffset(). In this corner-case we want to round up by resolution when starting a relative timer, to avoid short timeouts. This will go away with the GTOD framework. Signed-off-by: Ingo Molnar Cc: Roman Zippel Cc: Thomas Gleixner Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit e35a6619e7be59aa38249346327c89207663bb37 Author: Heiko Carstens Date: Tue Feb 14 13:53:14 2006 -0800 [PATCH] s390: fix __delay implementation Fix __delay implementation. Called with an argument "1" or "0" it would loop nearly forever (since (1/2)-1 = 0xffffffff). Signed-off-by: Heiko Carstens Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit 5a1342f77304da8dc698e0ecf09925438764d80f Author: Adrian Bunk Date: Tue Feb 14 13:53:10 2006 -0800 [PATCH] fix a typo in the CPU_H8300H dependencies Jean-Luc Leger found this obvious typo. Signed-off-by: Adrian Bunk Cc: Yoshinori Sato Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit d6077cb80cde4506720f9165eba99ee07438513f Author: Chen, Kenneth W Date: Tue Feb 14 13:53:10 2006 -0800 [PATCH] sched: revert "filter affine wakeups" Revert commit d7102e95b7b9c00277562c29aad421d2d521c5f6: [PATCH] sched: filter affine wakeups Apparently caused more than 10% performance regression for aim7 benchmark. The setup in use is 16-cpu HP rx8620, 64Gb of memory and 12 MSA1000s with 144 disks. Each disk is 72Gb with a single ext3 filesystem (courtesy of HP, who supplied benchmark results). The problem is, for aim7, the wake-up pattern is random, but it still needs load balancing action in the wake-up path to achieve best performance. With the above commit, lack of load balancing hurts that workload. However, for workloads like database transaction processing, the requirement is exactly opposite. In the wake up path, best performance is achieved with absolutely zero load balancing. We simply wake up the process on the CPU that it was previously run. Worst performance is obtained when we do load balancing at wake up. There isn't an easy way to auto detect the workload characteristics. Ingo's earlier patch that detects idle CPU and decide whether to load balance or not doesn't perform with aim7 either since all CPUs are busy (it causes even bigger perf. regression). Revert commit d7102e95b7b9c00277562c29aad421d2d521c5f6, which causes more than 10% performance regression with aim7. Signed-off-by: Ken Chen Acked-by: Ingo Molnar Cc: Nick Piggin Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit f822566165dd46ff5de9bf895cfa6c51f53bb0c4 Author: Michael S. Tsirkin Date: Tue Feb 14 13:53:08 2006 -0800 [PATCH] madvise MADV_DONTFORK/MADV_DOFORK Currently, copy-on-write may change the physical address of a page even if the user requested that the page is pinned in memory (either by mlock or by get_user_pages). This happens if the process forks meanwhile, and the parent writes to that page. As a result, the page is orphaned: in case of get_user_pages, the application will never see any data hardware DMA's into this page after the COW. In case of mlock'd memory, the parent is not getting the realtime/security benefits of mlock. In particular, this affects the Infiniband modules which do DMA from and into user pages all the time. This patch adds madvise options to control whether memory range is inherited across fork. Useful e.g. for when hardware is doing DMA from/into these pages. Could also be useful to an application wanting to speed up its forks by cutting large areas out of consideration. Signed-off-by: Michael S. Tsirkin Acked-by: Hugh Dickins Cc: Michael Kerrisk Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit 8861da31e3b3e3df7b05e7b157230de3d486e53b Author: Jim Keniston Date: Tue Feb 14 13:53:06 2006 -0800 [PATCH] kprobes: Update Documentation/kprobes.txt Update Documentation/kprobes.txt to reflect Kprobes enhancements and other recent developments. Acked-by: Ananth Mavinakayanahalli Signed-off-by: Jim Keniston Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit 61b9a26ae6d308ade964db122e0e89299586422c Author: Karsten Keil Date: Tue Feb 14 13:53:06 2006 -0800 [PATCH] Fix NULL pointer dereference in isdn_tty_at_cout The changes in the tty related code introduced wrong parenthesis in a if condition in the isdn_tty_at_cout function. This caused access to index -1 in the dev->drv[] array. This patch change it back to the correct condition from the previous versions. Signed-off-by: Karsten Keil Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit 8b09fb34513225d87d511c7e8f29c0fd3cf860e0 Author: James Bottomley Date: Tue Feb 14 13:53:05 2006 -0800 [PATCH] fix x86 topology export in sysfs for subarchitectures The correct way to export hyperthreading based functions is to predicate them on CONFIG_X86_HT. Without this, the topology exporting patch breaks the build on all non-PC x86 subarchitectures. Signed-off-by: James Bottomley Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit 5ac5f9d1ce8492163dbde5d357dc5d03becf7e36 Author: Trond Myklebust Date: Tue Feb 14 13:53:04 2006 -0800 [PATCH] NLM: Fix the NLM_GRANTED callback checks If 2 threads attached to the same process are blocking on different locks on different files (maybe even on different servers) but have the same lock arguments (i.e. same offset+length - actually quite common, since most processes try to lock the entire file) then the first GRANTED call that wakes one up will also wake the other. Currently when the NLM_GRANTED callback comes in, lockd walks the list of blocked locks in search of a match to the lock that the NLM server has granted. Although it checks the lock pid, start and end, it fails to check the filehandle and the server address. By checking the filehandle and server IP address, we ensure that this only happens if the locks truly are referencing the same file. Signed-off-by: Trond Myklebust Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit 7c8903f6373f9abecf060bad53ca36bc4ac037f2 Author: Mark Fasheh Date: Tue Feb 14 13:53:03 2006 -0800 [PATCH] jbd: revert checkpoint list changes This patch reverts commit f93ea411b73594f7d144855fd34278bcf34a9afc: [PATCH] jbd: split checkpoint lists This broke journal_flush() for OCFS2, which is its method of being sure that metadata is sent to disk for another node. And two related commits 8d3c7fce2d20ecc3264c8d8c91ae3beacdeaed1b and 43c3e6f5abdf6acac9b90c86bf03f995bf7d3d92 with the subjects: [PATCH] jbd: log_do_checkpoint fix [PATCH] jbd: remove_transaction fix These seem to be incremental bugfixes on the original patch and as such are no longer needed. Signed-off-by: Mark Fasheh Cc: Jan Kara Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit be5efffb762fa4a7b9a7a45ebf34b13e3bf5a2d8 Author: Bjorn Helgaas Date: Tue Feb 14 13:53:02 2006 -0800 [PATCH] HPET: handle multiple ACPI EXTENDED_IRQ resources When the _CRS for a single HPET contains multiple EXTENDED_IRQ resources, we overwrote hdp->hd_nirqs every time we found one. So the driver worked when all the IRQs were described in a single EXTENDED_IRQ resource, but failed when multiple resources were used. (Strictly speaking, I think the latter is actually more correct, but both styles have been used.) Someday we should remove all the ACPI stuff from hpet.c and use PNP driver registration instead. But currently PNP_MAX_IRQ is 2, and HPETs often have more IRQs. Hint, hint, Adam :-) Signed-off-by: Bjorn Helgaas Acked-by: Bob Picco Cc: Venkatesh Pallipadi Cc: Len Brown Cc: Adam Belay Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit da965822abd18a17d7cffe1d511f48951c82dfb6 Author: Paul Fulghum Date: Tue Feb 14 13:53:00 2006 -0800 [PATCH] tty reference count fix Fix hole where tty structure can be released when reference count is non zero. Existing code can sleep without tty_sem protection between deciding to release the tty structure (setting local variables tty_closing and otty_closing) and setting TTY_CLOSING to prevent further opens. An open can occur during this interval causing release_dev() to free the tty structure while it is still referenced. This should fix bugzilla.kernel.org [Bug 6041] New: Unable to handle kernel paging request In Bug 6041, tty_open() oopes on accessing the tty structure it has successfully claimed. Bug was on SMP machine with the same tty being opened and closed by multiple processes, and DEBUG_PAGEALLOC enabled. Signed-off-by: Paul Fulghum Cc: Alan Cox Cc: Jesper Juhl Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit 16bf134840da3920ded1290973c56ec214636f12 Author: Hugh Dickins Date: Tue Feb 14 13:52:59 2006 -0800 [PATCH] compound page: no access_process_vm check The PageCompound check before access_process_vm's set_page_dirty_lock is no longer necessary, so remove it. But leave the PageCompound checks in bio_set_pages_dirty, dio_bio_complete and nfs_free_user_pages: at least some of those were introduced as a little optimization on hugetlb pages. Signed-off-by: Hugh Dickins Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit d98c7a09843621f1b145ca5ae8ed03ff04085edb Author: Hugh Dickins Date: Tue Feb 14 13:52:59 2006 -0800 [PATCH] compound page: default destructor Somehow I imagined that calling a NULL destructor would free a compound page rather than oopsing. No, we must supply a default destructor, __free_pages_ok using the order noted by prep_compound_page. hugetlb can still replace this as before with its own free_huge_page pointer. The case that needs this is not common: rarely does put_compound_page's put_page_testzero bring the count down to 0. But if get_user_pages is applied to some part of a compound page, without immediate release (e.g. AIO or Infiniband), then it's possible for its put_page to come after the containing vma has been unmapped and the driver done its free_pages. That's just the kind of case compound pages are supposed to be guarding against (but Nick points out, nor did PageReserved handle this right). Signed-off-by: Hugh Dickins Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit 41d78ba55037468e6c86c53e3076d1a74841de39 Author: Hugh Dickins Date: Tue Feb 14 13:52:58 2006 -0800 [PATCH] compound page: use page[1].lru If a compound page has its own put_page_testzero destructor (the only current example is free_huge_page), that is noted in page[1].mapping of the compound page. But that's rather a poor place to keep it: functions which call set_page_dirty_lock after get_user_pages (e.g. Infiniband's __ib_umem_release) ought to be checking first, otherwise set_page_dirty is liable to crash on what's not the address of a struct address_space. And now I'm about to make that worse: it turns out that every compound page needs a destructor, so we can no longer rely on hugetlb pages going their own special way, to avoid further problems of page->mapping reuse. For example, not many people know that: on 50% of i386 -Os builds, the first tail page of a compound page purports to be PageAnon (when its destructor has an odd address), which surprises page_add_file_rmap. Keep the compound page destructor in page[1].lru.next instead. And to free up the common pairing of mapping and index, also move compound page order from index to lru.prev. Slab reuses page->lru too: but if we ever need slab to use compound pages, it can easily stack its use above this. (akpm: decoded version of the above: the tail pages of a compound page now have ->mapping==NULL, so there's no need for the set_page_dirty[_lock]() caller to check that they're not compund pages before doing the dirty). Signed-off-by: Hugh Dickins Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit 7277232374680595cdbc774fd246b206f56db015 Author: Peter Osterlund Date: Tue Feb 14 13:52:56 2006 -0800 [PATCH] pktcdvd: Reduce stack usage Reduce stack usage in the pkt_start_write() function. Even though it's not currently a real problem, the pages and offsets arrays can be eliminated, which saves approximately 1000 bytes of stack space. Signed-off-by: Peter Osterlund Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit 948423e5ccc33bc257384ad4b339214c577bc926 Author: Peter Osterlund Date: Tue Feb 14 13:52:56 2006 -0800 [PATCH] pktcdvd: Don't unlock the door if the disc is in use Unlocking the door when the disc is in use is obviously not good, because then it's possible to eject the disc at the wrong time and cause severe disc data corruption. Signed-off-by: Peter Osterlund Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit 01fd9fda2ce462b44bafdac2fe6aacacf23531f2 Author: Peter Osterlund Date: Tue Feb 14 13:52:55 2006 -0800 [PATCH] pktcdvd: Allow non-writable media to be mounted If opening for write fails, the open method should return -EROFS. This makes "mount" try again with a read-only mount, instead of just giving up. Signed-off-by: Peter Osterlund Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit 61a34937982cace51853b5dc88f86380e31998c0 Author: Peter Osterlund Date: Tue Feb 14 13:52:54 2006 -0800 [PATCH] pktcdvd: Don't spam the kernel log when nothing is wrong Change some messages that don't indicate an error so that they are only printed when debugging is enabled. Signed-off-by: Peter Osterlund Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit a6b14fa6fdc01ab3519c2729624f808677539b59 Author: Ashok Raj Date: Tue Feb 14 15:01:12 2006 -0800 [IA64] Count disabled cpus as potential hot-pluggable CPUs Have a facility to account for potentially hot-pluggable CPUs. ACPI doesnt give a determinstic method to find hot-pluggable CPUs. Hence we use 2 methods to assist. - BIOS can mark potentially hot-pluggable CPUs as disabled in the MADT tables. - User can specify the number of hot-pluggable CPUs via parameter additional_cpus=X The option is enabled only if ACPI_CONFIG_HOTPLUG_CPU=y which enables the physical hotplug option. Without which user can still use logical onlining and offlining of CPUs by enabling CONFIG_HOTPLUG_CPU=y Adds more bits to cpu_possible_map for potentially hot-pluggable cpus. Signed-off-by: Ashok Raj Signed-off-by: Tony Luck commit 69aa234b918c0d9bc4a20cd6d4453aaa3418f457 Author: Ashok Raj Date: Tue Feb 14 15:01:11 2006 -0800 [IA64] Dont set NR_CPUS for cpu_possible_map when CPU hotplug is enabled. Do not set cpu_possible_map for NR_CPUS when ACPI_CONFIG_HOTPLUG_CPU is set. Signed-off-by: Ashok Raj Signed-off-by: Tony Luck commit 4cbf8767902c578481ff3df366c77d24fe68fd26 Author: Atsushi Nemoto Date: Tue Feb 14 22:40:45 2006 +0900 [MIPS] Fix typo in _sys32_rt_sigreturn and _sysn32_rt_sigreturn. Signed-off-by: Atsushi Nemoto Signed-off-by: Ralf Baechle commit 9cf8ff96447f995d5ea18ec9f25dc8dae26501a2 Author: Maciej W. Rozycki Date: Mon Feb 13 09:15:49 2006 +0000 [MIPS] Fix CPU type bitmasks for MIPS III, IV and V. Signed-off-by: Maciej W. Rozycki Signed-off-by: Ralf Baechle commit 387a154d0db113690ce85185a003e39e7c87009e Author: Thomas Koeller Date: Fri Feb 10 17:36:27 2006 +0100 [MIPS] RM9000: Fix buggy I-cache workaround. Signed-off-by: Thomas Koeller Signed-off-by: Ralf Baechle commit 74a96d943ac96ce607a841a74ff0f84eeb0c3343 Author: Ralf Baechle Date: Fri Feb 10 16:03:47 2006 +0000 [MIPS] MT: Propagate config7 into VPE. Signed-off-by: Ralf Baechle commit fdc9bb16d3e16f674e52aa69306df5732d7f951b Author: Ralf Baechle Date: Fri Feb 10 14:25:16 2006 +0000 [MIPS] MT: Fix c0 back-to-back hazard. Signed-off-by: Ralf Baechle commit fbb6b3a4ac0ccf12a97c98881d9d873d6dc26fe5 Author: Ralf Baechle Date: Fri Feb 10 14:13:08 2006 +0000 [MIPS] Get rid of kludgery needed to keep stdargs of old compilers working. Signed-off-by: Ralf Baechle commit 3218357c94af92478ef39163163a81e654385320 Author: Ralf Baechle Date: Fri Feb 10 01:31:24 2006 +0000 [MIPS] More uaccess.h fixes with gcc >= 4.0.1. From Richard Sandiford : This patch caused a miscompilation of the restore_gp_regs() block in restore_sigcontext(). This was in a 32-bit kernel compiled with GCC CVS head. restore_gp_regs() copies 64-bit user fields into 32-bit variables, and in this combination, the new __get_user_asm_ll32() clobbers too many registers. It says: /* * Get a long long 64 using 32 bit registers. */ { \ __asm__ __volatile__( \ "1: lw %1, (%3) \n" \ "2: lw %D1, 4(%3) \n" \ " move %0, $0 \n" \ "3: .section .fixup,\"ax\" \n" \ "4: li %0, %4 \n" \ " move %1, $0 \n" \ " move %D1, $0 \n" \ " j 3b \n" \ " .previous \n" \ " .section __ex_table,\"a\" \n" \ " " __UA_ADDR " 1b, 4b \n" \ " " __UA_ADDR " 2b, 4b \n" \ " .previous \n" \ : "=r" (__gu_err), "=&r" (val) \ : "0" (0), "r" (addr), "i" (-EFAULT)); \ } and this requires val (%1) to be a 64-bit value. In the case I saw, gcc was using $3 for the 32-bit val, and wasn't expecting $4 to be clobbered. Signed-off-by: Ralf Baechle commit 41700e73995d6c814932cb55e12525bd34be1ca5 Author: Atsushi Nemoto Date: Fri Feb 10 00:39:06 2006 +0900 [MIPS] Add protected_blast_icache_range, blast_icache_range, etc. Add blast_xxx_range(), protected_blast_xxx_range() etc. for common use. They are built by __BUILD_BLAST_CACHE_RANGE(). Use protected_cache_op() macro for various protected_ routines. Output code should be logically same. Signed-off-by: Atsushi Nemoto Signed-off-by: Ralf Baechle commit 63077519899721120b61d663a68adced068a459d Author: Atsushi Nemoto Date: Wed Feb 8 01:48:03 2006 +0900 [MIPS] Rewrite get_wchan and its helper functions using kallsyms_lookup. Implement get_wchan() and frame_info_init() using kallsyms_lookup(). This fixes problem with static sched/lock functions and mfinfo[] maintenance issue. If CONFIG_KALLSYMS was disabled, get_wchan() just returns thread_saved_pc() value. Also unwind stackframe based on "addiu sp,-imm" analysis instead of frame pointer. This fixes problem with functions compiled without -fomit-frame-pointer. Signed-off-by: Atsushi Nemoto Signed-off-by: Ralf Baechle commit 1bdfd0d9632f0254a4fc01d17c9933ae6107dec4 Author: Ralf Baechle Date: Thu Feb 9 12:26:35 2006 +0000 [MIPS] Remove commented out function prom_build_cpu_map. Signed-off-by: Ralf Baechle commit 359bbd42a5a205234d5943571fc7bf946967ee59 Author: Ralf Baechle Date: Thu Feb 9 12:13:28 2006 +0000 [MIPS] Fold non-__mips64 case into CONFIG_32BIT case. Signed-off-by: Ralf Baechle commit a3c9dc38313d05e4254c100e86af205cf33e8cd3 Author: Ralf Baechle Date: Tue Feb 14 19:13:23 2006 +0000 [MIPS] Update docs to reflect the latest status of the Alchemy IDE driver. Signed-off-by: Ralf Baechle commit f32ec77b421ee15bf5a42082b60679e997c07993 Author: Ralf Baechle Date: Mon Nov 28 13:10:54 2005 +0000 [MIPS] RM200: Give RM200 it's own timex.h. So we can get rid of config.h and the #ifdef crapola in the generic timex.h. Signed-off-by: Ralf Baechle commit 5552c28f6937d2a2b873d06c6d09b96204722dd0 Author: Alan Cox Date: Tue Feb 14 17:50:54 2006 +0000 [PATCH] Fix locking error in esp Noted by Al Viro. Also remove unused tmp_buf Signed-off-by: Alan Cox Signed-off-by: Linus Torvalds commit 65110b2168950a19cc78b5027ed18cb811fbdae8 Author: James Bottomley Date: Tue Feb 14 10:48:46 2006 -0600 [SCSI] fix wrong context bugs in SCSI There's a bug in releasing scsi_device where the release function actually frees the block queue. However, the block queue release calls flush_work(), which requires process context (the scsi_device structure may release from irq context). Update the release function to invoke via the execute_in_process_context() API. Also clean up the scsi_target structure releasing via this API. Signed-off-by: James Bottomley commit faead26d7a06605add627f29aee73ba654ce11f9 Author: James Bottomley Date: Tue Feb 14 10:42:07 2006 -0600 [PATCH] add scsi_execute_in_process_context() API We have several points in the SCSI stack (primarily for our device functions) where we need to guarantee process context, but (given the place where the last reference was released) we cannot guarantee this. This API gets around the issue by executing the function directly if the caller has process context, but scheduling a workqueue to execute in process context if the caller doesn't have it. Unfortunately, it requires memory allocation in interrupt context, but it's better than what we have previously. The true solution will require a bit of re-engineering, so isn't appropriate for 2.6.16. Signed-off-by: James Bottomley commit 303794400992b907b7cac0d91788603636c7e0fe Author: Gerald Britton Date: Tue Feb 14 10:19:04 2006 -0500 [PATCH] x86: fix oprofile kernel callgraph regression Fix x86 oprofile regression introduced by: commit c34d1b4d165c67b966bca4aba026443d7ff161eb [PATCH] mm: kill check_user_page_readable That commit reorganized tests for the userspace stack walking moving all those tests into dump_backtrace(), however, dump_backtrace() was used for both userspace and kernel stalk walking. The result is typically no recorded callgraph information for kernel samples. Revive the original function as dump_kernel_backtrace() and rename the other to dump_user_backtrace() to avoid future confusion. Signed-off-by: Gerald Britton Apology-from: Hugh Dickins Signed-off-by: Linus Torvalds commit 41d9c98fe76298cebc5907bcebfb2db28017a277 Author: Jean Delvare Date: Wed Feb 8 20:38:29 2006 +0100 [PATCH] i2c: Drop outdated probe/remove code in i2c-isa Probe and remove methods are now defined at bus level. No more need to redefine them at driver level in i2c-isa. This lets us get rid of these annoying messages: Driver 'it87-isa' needs updating - please use bus_type methods Thanks to Nicolas Mailhot for reporting the problem and testing the fix. Signed-off-by: Jean Delvare Signed-off-by: Greg Kroah-Hartman commit be79c383254cd3eb50953d8c0a7cacdbf6db31c0 Author: Jean Delvare Date: Tue Feb 7 17:53:32 2006 +0100 [PATCH] it87: Fix oops on removal Fix an oops on it87 module removal when no supported hardware was found. Signed-off-by: Jean Delvare Signed-off-by: Greg Kroah-Hartman commit a40f0b0f2466483fad94e62177272d6a5711e50a Author: Jean Delvare Date: Sun Feb 5 23:17:34 2006 +0100 [PATCH] w83627hf: Document the reset module parameter Document the reset module parameter which was recently added to the w83627hf driver. Signed-off-by: Jean Delvare Signed-off-by: Greg Kroah-Hartman commit c7f5d7edd8b3fa4204389efc4c9081cc90a811d2 Author: Jean Delvare Date: Sun Feb 5 23:13:48 2006 +0100 [PATCH] w83781d: Use real-time status registers Use the real-time status registers of the Winbond W83782D, W83783S and W83627HF chips, instead of the interrupt status registers. Interrupts cannot be trusted at least for voltage inputs, as they are two-times triggers (as opposed to comparator mode, which we want.) The w83627hf driver was fixed in a similar way some times ago. Signed-off-by: Jean Delvare Signed-off-by: Greg Kroah-Hartman commit e3efa5a7392e07471b5d0ef7e7cd7ab862f70284 Author: Jean Delvare Date: Sun Feb 5 23:11:16 2006 +0100 [PATCH] vt8231: Fix sysfs temperature interface The VT8231 low temperature limits are actually hysteresis temperatures to the high limits. Signed-off-by: Jean Delvare Cc: Roger Lucas Signed-off-by: Greg Kroah-Hartman commit 16f05be7be0bf121491d83bd97337fe179b3b323 Author: Phil Dibowitz Date: Mon Feb 13 15:59:42 2006 -0800 [PATCH] USB: unusual-devs bugfix The following patch looks good to me. It adds an unusual_devs entry as well as fixing an ordering bug. Please apply. From: Bohdan Linda Signed-off-by: Phil Dibowitz Signed-off-by: Greg Kroah-Hartman commit 982db2a127b29c9e1f5896d2ba691e84446cc858 Author: Alan Stern Date: Mon Feb 13 10:16:04 2006 -0500 [PATCH] USB: unusual_devs.h entry: iAUDIO M5 Another unusual_devs.h entry (as652). Signed-off-by: Alan Stern Signed-off-by: Greg Kroah-Hartman commit 1d614a4b0d2613d83f7bf0978e213ba29aebc44f Author: Alan Stern Date: Mon Feb 13 10:15:22 2006 -0500 [PATCH] USB: unusual_devs.h entry: TrekStor i.Beat A new unusual_devs.h entry (as651). Signed-off-by: Alan Stern Signed-off-by: Greg Kroah-Hartman commit ba3e93ad3c6e511f68c1b3e46954feff6cdd5a62 Author: Alan Stern Date: Mon Jan 30 10:19:43 2006 -0500 [PATCH] usb-storage: unusual_devs entry Here is a new entry for unusual_devs.h (as630). Signed-off-by: Alan Stern Signed-off-by: Greg Kroah-Hartman commit a2149bce2535047371a1309f032f0320b05db791 Author: Alan Stern Date: Thu Feb 2 09:52:45 2006 -0500 [PATCH] usb-storage: new unusual_devs entry This patch (as631) for unusual_devs.h fixes bugzilla entry 5913. Signed-off-by: Alan Stern Signed-off-by: Phil Dibowitz Signed-off-by: Greg Kroah-Hartman commit a0c53f1dca10acc93462339cbd0bf24b10d60a13 Author: David Brownell Date: Mon Feb 6 12:15:15 2006 -0800 [PATCH] USB: sl811_cs needs platform_device conversion too The switchover to "platform_driver" from "device_driver" missed one rather essential usage, which broke the sl811_cs driver ... this resolves the omission. Signed-off-by: David Brownell Signed-off-by: Greg Kroah-Hartman commit c6c27721a42b991965bb792d5c196b8331d008d5 Author: Christian Lindner Date: Wed Feb 1 14:10:52 2006 +0100 [PATCH] USB: PL2303: Leadtek 9531 GPS-Mouse The patch adds the USB ID (0413:2101) for the Leadtek GPS-Mouse 9531 to the driver pl2303. Signed-off-by: Christian Lindner Signed-off-by: Greg Kroah-Hartman commit 343a65cadb3a6a102f08513d9c64eb7e317478f0 Author: Michael Hund Date: Thu Feb 2 09:37:02 2006 +0100 [PATCH] USB: change ldusb's experimental state Signed-off-by: Michael Hund Signed-off-by: Greg Kroah-Hartman commit ba3e66e94b9fb8c2a370a90729e068314845549d Author: Michael Hund Date: Thu Feb 2 09:36:43 2006 +0100 [PATCH] USB: add new device ids to ldusb Signed-off-by: Michael Hund Signed-off-by: Greg Kroah-Hartman commit a38408cd8d6bc0e5d16e609d4b1fdf9ba2e099ce Author: David Brownell Date: Thu Feb 9 16:35:31 2006 -0500 [PATCH] USB: fix up the usb early handoff logic for EHCI Disable some dubious "early" USB handoff code that allegedly works around bugs on some systems (we don't know which ones) but rudely breaks some others. Also make the kernel warnings reporting BIOS handoff problems be more useful, reporting the register whose value displays the trouble. Signed-off-by: David Brownell Signed-off-by: Greg Kroah-Hartman commit 108dff7d2b721759b5e025ab18024967c1294792 Author: Kyle McMartin Date: Mon Feb 13 22:44:22 2006 -0500 [PATCH] sys_newfstatat -> sys_fstatat64 parisc defines ARCH_WANT_STAT64, so we want to use fstatat64. It does not appear that it needs to be ENTRY_COMP, because struct stat64 is the same on both 32-bit and 64-bit (unlike on other platforms which did define a compat_sys_fstatat64.) Signed-off-by: Grant Grundler Signed-off-by: Kyle McMartin Signed-off-by: Linus Torvalds commit b4d9eda028e8becbb5057b554e63eea12e496a88 Author: David S. Miller Date: Mon Feb 13 16:06:10 2006 -0800 [NET]: Revert skb_copy_datagram_iovec() recursion elimination. Revert the following changeset: bc8dfcb93970ad7139c976356bfc99d7e251deaf Recursive SKB frag lists are really possible and disallowing them breaks things. Noticed by: Jesse Brandeburg Signed-off-by: David S. Miller commit 00de651d14baabc5c1d2f32c49d9a984d8891c8e Author: Herbert Xu Date: Mon Feb 13 16:01:27 2006 -0800 [IPSEC]: Fix strange IPsec freeze. Problem discovered and initial patch by Olaf Kirch: there's a problem with IPsec that has been bugging some of our users for the last couple of kernel revs. Every now and then, IPsec will freeze the machine completely. This is with openswan user land, and with kernels up to and including 2.6.16-rc2. I managed to debug this a little, and what happens is that we end up looping in xfrm_lookup, and never get out. With a bit of debug printks added, I can this happening: ip_route_output_flow calls xfrm_lookup xfrm_find_bundle returns NULL (apparently we're in the middle of negotiating a new SA or something) We therefore call xfrm_tmpl_resolve. This returns EAGAIN We go to sleep, waiting for a policy update. Then we loop back to the top Apparently, the dst_orig that was passed into xfrm_lookup has been dropped from the routing table (obsolete=2) This leads to the endless loop, because we now create a new bundle, check the new bundle and find it's stale (stale_bundle -> xfrm_bundle_ok -> dst_check() return 0) People have been testing with the patch below, which seems to fix the problem partially. They still see connection hangs however (things only clear up when they start a new ping or new ssh). So the patch is obvsiouly not sufficient, and something else seems to go wrong. I'm grateful for any hints you may have... I suggest that we simply bail out always. If the dst decides to die on us later on, the packet will be dropped anyway. So there is no great urgency to retry here. Once we have the proper resolution queueing, we can then do the retry again. Signed-off-by: Herbert Xu Acked-by: Olaf Kirch Signed-off-by: David S. Miller commit 6d3e85ecf22a5e3610df47b9c3fb2fc32cfd35bf Author: Nicolas DICHTEL Date: Mon Feb 13 15:56:13 2006 -0800 [IPV6] Don't store dst_entry for RAW socket Signed-off-by: Nicolas DICHTEL Signed-off-by: David S. Miller commit 72fb630dad170084026bda6728b8d8f21ed48ff1 Author: Andrew Morton Date: Mon Feb 13 15:53:41 2006 -0800 [APPLETALK]: warning fix drivers/net/appletalk/cops.c: In function `cops_load': drivers/net/appletalk/cops.c:539: warning: assignment discards qualifiers from pointer target type drivers/net/appletalk/cops.c:547: warning: assignment discards qualifiers from pointer target type Signed-off-by: Andrew Morton Signed-off-by: David S. Miller commit e200bd8065e4db6297cd8db071a9188cf9aa6b56 Author: Jamal Hadi Salim Date: Mon Feb 13 15:51:24 2006 -0800 [NETLINK] genetlink: Fix bugs spotted by Andrew Morton. - panic() doesn't return. - Don't forget to unlock on genl_register_family() error path - genl_rcv_msg() is called via pointer so there's no point in declaring it `inline'. Notes: genl_ctrl_event() ignores the genlmsg_multicast() return value. lots of things ignore the genl_ctrl_event() return value. Signed-off-by: Jamal Hadi Salim Signed-off-by: Andrew Morton Signed-off-by: David S. Miller commit 178a3259f2508e786fb1bd6538365a167cee35c1 Author: Stephen Hemminger Date: Mon Feb 13 15:43:58 2006 -0800 [BRIDGE]: Better fix for netfilter missing symbol has_bridge_parent Horms patch was the best of the three fixes. Dave, already applied Harald's version, so this patch converts that to the better one. Signed-off-by: Stephen Hemminger Signed-off-by: David S. Miller commit a6c1cd572642478528165ac44db4d2daae125a21 Author: Harald Welte Date: Mon Feb 13 15:42:48 2006 -0800 [NETFILTER] Fix Kconfig menu level for x_tables The new x_tables related Kconfig options appear at the wrong menu level without this patch. Signed-off-by: Harald Welte Signed-off-by: David S. Miller commit 99e382afd297d91ab150ae46c28c4585f925818c Author: Dave Jones Date: Mon Feb 13 15:38:42 2006 -0800 [P8023]: Fix tainting of kernel. Missing license tag. I've assumed this is GPL. (It could also use a MODULE_AUTHOR) Signed-off-by: Dave Jones Signed-off-by: David S. Miller commit 77decfc716d460b3f7037bb19bd4eb12cd0dc996 Author: Dave Jones Date: Mon Feb 13 15:36:21 2006 -0800 [IPV4] ICMP: Invert default for invalid icmp msgs sysctl isic can trigger these msgs to be spewed at a very high rate. There's already a sysctl to turn them off. Given these messages aren't useful for most people, this patch disables them by default. Signed-off-by: Dave Jones Signed-off-by: David S. Miller commit bf3883c12fece9189ab4f7bb6e2690451db1366e Author: Dave Jones Date: Mon Feb 13 15:34:58 2006 -0800 [ATM]: Ratelimit atmsvc failure messages This seems to be trivial to trigger. Signed-off-by: Dave Jones Signed-off-by: David S. Miller commit 7a11c4d0635d9f6995736390b8c3346fe6f63d57 Author: Joe Perches Date: Mon Feb 13 15:34:11 2006 -0800 [IRDA]: Ratelimit messages. From: Joe Perches Based upon a patch by Dave Jones. Signed-off-by: Dave Jones Signed-off-by: David S. Miller commit 7d2babc4874825027848db04d11784070da4456d Author: Roland Dreier Date: Mon Feb 13 12:19:44 2006 -0800 IB/mthca: bump driver version and release date Signed-off-by: Roland Dreier commit 75c0141ca2fdae7c332d8f17412fbe0939dd005f Author: Dave Jones Date: Mon Feb 13 12:46:58 2006 -0500 [PATCH] Remove "RV370 5B60 [Radeon X300 (PCIE)]" from DRI list I get a machine check exception, triple fault, or NMI watchdog lockup when DRI gets enabled on this card. (And Mauro Tassinari reports hung kernels too in http://lkml.org/lkml/2006/1/26/97) [ Adrian Bunk also states that this is the only RV350 entry for an RV370 in our lists, which implies that it's just buggy ] Cc: Adrian Bunk Cc: Dave Jones Cc: Mauro Tassinari Cc: Dave Airlie Signed-off-by: Linus Torvalds commit 90947ef26fa689a3252aa8282a01f60648e70fdb Author: Jeff Mahoney Date: Mon Feb 13 11:12:36 2006 -0500 [PATCH] reiserfs: fix potential (unlikely) oops in reiserfs_get_acl This fixes a potential oops if there is an error reported by posix_acl_from_disk(). This is mostly theoretical due to the use of magics and checksums in xattrs, but is still possible. Signed-off-by: Jeff Mahoney Signed-off-by: Linus Torvalds commit 326a625748535c4cdb1c632b1dcb07030989a393 Author: Yoichi Yuasa Date: Mon Feb 13 18:07:30 2006 +0900 [PATCH] MIPS 32bit machines need fstatat64 support. As noted by Jan Dittmer Signed-off-by: Yoichi Yuasa Signed-off-by: Linus Torvalds commit 9225806386e398eeba46958a7befa017bda73f58 Author: Marcel Holtmann Date: Mon Feb 13 11:40:07 2006 +0100 [Bluetooth] Fix firmware loading problem of BT3C driver Before the PCMCIA subsystem was fully integrated into the device and driver model, the BT3C driver had to workaround this when loading the firmware. This workaround is broken and makes the driver oops when loading the firmware. This patch removes this workaround and uses now the provided device structure from the PCMCIA subsystem. Signed-off-by: Marcel Holtmann commit 7b005bd34c895ebeefd1c62f90a329730b88946b Author: Marcel Holtmann Date: Mon Feb 13 11:40:03 2006 +0100 [Bluetooth] Fix NULL pointer dereferences of the HCI socket This patch fixes the two NULL pointer dereferences found by the sfuzz tool from Ilja van Sprundel. The first one was a call of getsockname() for an unbound socket and the second was calling accept() while this operation isn't implemented for the HCI socket interface. Signed-off-by: Marcel Holtmann commit 56f3a40a5e7586043260669cc794e56fa58339e1 Author: Marcel Holtmann Date: Mon Feb 13 11:39:57 2006 +0100 [Bluetooth] Reduce L2CAP MTU for RFCOMM connections This patch reduces the default L2CAP MTU for all RFCOMM connections from 1024 to 1013 to improve the interoperability with some broken RFCOMM implementations. To make this more flexible the L2CAP MTU becomes also a module parameter and so it can changed at runtime. Signed-off-by: Marcel Holtmann commit 40ad7a6afc53217ad95b5ae2221e42d7655e057b Author: David S. Miller Date: Sun Feb 12 23:30:11 2006 -0800 [SPARC]: sys_newfstatat --> sys_fstatat64 Signed-off-by: David S. Miller commit e2230eac17486e2ee07091d54d898eb40bcd0fdd Author: Matthew Wilcox Date: Sun Feb 12 09:28:19 2006 -0700 [SCSI] sym2: Mask off opcode from RBC pm->sg.size is set from the Residual Byte Count register. However, the upper byte of the RBC is the opcode of the instruction that was executing, so we need to mask it off. This fixes some spurious rejects of IGNORE WIDE RESIDUE messages. Signed-off-by: Matthew Wilcox Signed-off-by: James Bottomley commit 61c41823c50302ca6cd455c48a1395f944c61f8f Author: Andreas Herrmann Date: Sat Feb 11 01:43:55 2006 +0100 [SCSI] zfcp: fix: avoid race between fc_remote_port_add and scsi_add_device Flush workqueue of a scsi host after a remote port for that host is registered at the fc transport class. Otherwise immediate registration of a scsi device on that host is racy. Signed-off-by: Andreas Herrmann Signed-off-by: James Bottomley commit ed829ad607a9c334cea490d3a8c0f874153fb42d Author: Maxim Shchetynin Date: Sat Feb 11 01:42:58 2006 +0100 [SCSI] zfcp: fix logging during device reset Avoid access to old fsf_requests if device reset is logged. Signed-off-by: Maxim Shchetynin Signed-off-by: Andreas Herrmann Signed-off-by: James Bottomley commit 2f8f3ed5fc566700cf45d422f4cf1624bd123d93 Author: Andreas Herrmann Date: Sat Feb 11 01:41:50 2006 +0100 [SCSI] zfcp: fix adapter erp when link is unplugged Remove endless polling for replug of the local link. Just wait for link up notification. Signed-off-by: Andreas Herrmann Signed-off-by: James Bottomley commit c8024eb549f0c701e6d1c46c32e997f06f05d76d Author: Andreas Herrmann Date: Sat Feb 11 01:40:11 2006 +0100 [SCSI] zfcp: get rid of physical_wwpn and physical_s_id Remove all remainders of obsolete zfcp adapter attributes physical_wwpn and physical_s_id. Signed-off-by: Andreas Herrmann Signed-off-by: James Bottomley commit 3542adcb354fea4fca792d36b91cb44d0da147e5 Author: Ju, Seokmann Date: Thu Feb 9 12:32:59 2006 -0700 [SCSI] megaraid_legacy: kobject_register failure Attached patch fixes problem that cause kobject_register failure during loading. Kobject_register would fail when there are more than 1 module with same module name. This patch will change module name of megaraid_legacy from 'megaraid' to 'megaraid_legacy'. Signed-Off-by: Seokmann Ju Signed-off-by: James Bottomley commit 4733804c9f62fbc17ba69e8654a5fdf465f5bc41 Author: Brian King Date: Wed Feb 8 20:57:42 2006 -0600 [SCSI] ipr: Fix adapter initialization failure Since scsi core is always sending scatterlists now, remove some code which was written with the bad assumption that a small transfer would not be sent down in a scatterlist. Without this fix, the ipr driver ends up sending garbage data to the adapter following a reset, causing it to fail the reset and take the adapter offline. Signed-off-by: Brian King Signed-off-by: James Bottomley commit 20b83382d1c5d4d1a73fc5671261db5239d1dbb3 Author: Roland Dreier Date: Sat Feb 11 12:22:12 2006 -0800 IPoIB: Yet another fix for send-only joins Even after the last fix, it's still possible for a send-only join to start before the join for the broadcast group has finished. This could cause us to create a multicast group using attributes from the broadcast group that haven't been initialized yet, so we would use garbage for the Q_Key, etc. Fix this by waiting until the broadcast group's attached flag is set before starting send-only joins. Signed-off-by: Roland Dreier commit f295c79b6766b25fe8c1aad88211c54d1caa7e0b Author: Roland Dreier Date: Fri Feb 10 18:02:44 2006 -0800 IB/mthca: Don't print debugging info until we have all values When debugging is enabled, the mthca_QUERY_DEV_LIM() firmware command function prints out some of the device limits that it queries. However the debugging prints happen before all of the fields are extracted from the firmware response, so some of the values that get printed are uninitialized junk. Move the prints to the end of the function to fix this. Signed-off-by: Roland Dreier commit 28b2425ac76b0f043f2efd34521f2a3c7ec8ccc5 Author: Kyle McMartin Date: Wed Feb 8 23:33:15 2006 -0500 [PARISC] Stub out pselect6/ppoll until TIF_RESTORE_SIGMASK is done Swap out pselect6/ppoll for ni_syscall for now. We also have to switch the macro to ENTRY_SAME since compat_sys_ni_syscall does not exist. Signed-off-by: Kyle McMartin commit 7ec14e49b72da20d7212c707f226271525aee4ae Author: Kyle McMartin Date: Mon Feb 6 10:10:15 2006 -0700 [PARISC] Convert sba_iommu.c to use seq_file Use seq_file interface for proc output in sba_iommu. Also clean up the bus root assignment, and give the proc files a more logical name. Tested on my J6000. Signed-off-by: Kyle McMartin commit f823bcae2b9f194cfc164b8cbb87d71695dec563 Author: Kyle McMartin Date: Sun Feb 5 20:37:53 2006 -0700 [PARISC] Convert ccio-dma.c to use seq_file Gut ccio-dma.c of the ugly proc append and snprintf cruft and just use seq_printf instead. Tested on a K-class. Signed-off-by: Kyle McMartin commit 7bcb974ef6a0ae903888272c92c66ea779388c01 Author: Michael S. Tsirkin Date: Tue Feb 7 16:39:26 2006 -0800 IPoIB: Fix another send-only join race Further, there's an additional issue that I saw in testing: ipoib_mcast_send may get called when priv->broadcast is NULL (e.g. if the device was downed and then upped internally because of a port event). If this happends and the send-only join request gets completed before priv->broadcast is set, we get an oops. Signed-off-by: Michael S. Tsirkin Signed-off-by: Roland Dreier commit 479a079663bd4c5f3d2714643b1b8c406aaba3e0 Author: Michael S. Tsirkin Date: Tue Feb 7 16:37:08 2006 -0800 IPoIB: Don't start send-only joins while multicast thread is stopped Fix the following race scenario: - Device is up. - Port event or set mcast list triggers ipoib_mcast_stop_thread, this cancels the query and waits on mcast "done" completion. - Completion is called and "done" is set. - Meanwhile, ipoib_mcast_send arrives and starts a new query, re-initializing "done". Fix this by adding a "multicast started" bit and checking it before starting a send-only join. Signed-off-by: Michael S. Tsirkin Signed-off-by: Roland Dreier commit 0d4be1240b2668b6a3ffadb15eb660baf52f8377 Author: andrew.vasquez@qlogic.com Date: Tue Feb 7 08:45:35 2006 -0800 [PATCH] qla2xxx: Correct lun assignment during IOCB submission. 4gb products require an IOCB's FCP-LUN to be formatted in wire-format prior to submission. Signed-off-by: Andrew Vasquez Signed-off-by: James Bottomley commit 247ec457ce108000987be517c83868f6361d9f76 Author: andrew.vasquez@qlogic.com Date: Tue Feb 7 08:45:40 2006 -0800 [PATCH] qla2xxx: Pass input-buffer length to Get-ID-List mailbox command. Recent ISP24xx firmwares require that mailbox register 8 be set to the maximum number of bytes to transfer during DMA copying of the list. We safely set this value to zero (infinite), since the call is *only* made in FCAL topologies. Signed-off-by: Andrew Vasquez Signed-off-by: James Bottomley commit f7757a5f0fa94a0ce4d6ea55f440845bb3faf712 Author: andrew.vasquez@qlogic.com Date: Tue Feb 7 08:45:30 2006 -0800 [PATCH] qla2xxx: Remove bogus debug-code. Commit 854165f4245c4a3b4a8cc363ba2050033151e196 inadvertently added some code meant only for testing -- the driver was ignoring the non-zero function numbers of a multi-port HBA. Signed-off-by: Andrew Vasquez Signed-off-by: James Bottomley commit 387f96b4d9391bf3ce6928fb9cd90c9c7df37291 Author: andrew.vasquez@qlogic.com Date: Tue Feb 7 08:45:45 2006 -0800 [PATCH] qla2xxx: Close window on race between rport removal and fcport transition. Fcport visibility is recognized during interrupt time, but, rport removal can only occur during a process (sleeping)-context. Return a DID_IMM_RETRY status for commands submitted within this window to insure I/Os do not prematurely run-out of retries. Signed-off-by: Andrew Vasquez Signed-off-by: James Bottomley commit 62288f105b3cad0b8643526d2a41b5503d0a1476 Author: adam radford Date: Sun Feb 5 14:51:43 2006 -0800 [SCSI] 3ware 9000 driver >4GB memory fix The attached patch fixes a bug in the 3ware 9000 series driver: - Fix use_sg == 0 mapping on systems with 4GB or higher. This fixes REPORT_LUNS (0xa0) failing with 3ware 9000 controllers on systems with lots of ram, mentioned in bugzilla # 6009: http://bugzilla.kernel.org/show_bug.cgi?id=6009 Signed-off-by: Adam Radford Signed-off-by: James Bottomley commit 40cdc840dc337cb17d81bcf028b40834e78c1038 Author: Jenx Axboe Date: Sun Feb 5 16:36:23 2006 +0100 [SCSI] gdth: don't map zero-length requests Don't map zero-length requests in gdth, zome architectures don't like that in their dma mapping routines. [ I'm pretty sure Jens posted this before, but for some reason it got forgotten --hch ] Signed-off-by: James Bottomley commit f9876f0b67c3f0b04ee2167602df54e7ae139ad7 Author: Sumant Patro Date: Fri Feb 3 15:34:35 2006 -0800 [SCSI] megaraid_sas: support for 1078 type controller added This patch adds support for 1078 type controller (device id : 0x60). Signed-off-by: Sumant Patro Signed-off-by: James Bottomley commit 122da30223c06cee181044af6d32e88b256d10df Author: Joshua Giles Date: Fri Feb 3 15:34:17 2006 -0800 [SCSI] megaraid_sas: register 16 byte CDB capability This patch properly registers the 16 byte command length capability of the megaraid_sas controlled hardware with the scsi midlayer. All megaraid_sas hardware supports 16 byte CDB's. Signed-off-by: Joshua Giles Signed-off-by: Sumant Patro Signed-off-by: James Bottomley commit ea5a7a82f9d2d8a81f8fa541c34a12b43d390f61 Author: Moore, Eric Date: Thu Feb 2 17:20:01 2006 -0700 [SCSI] fusion - mptctl -adding asyn event notification support Adding aen support. Signed-off-by: Eric Moore Signed-off-by: James Bottomley commit 946cbf040adb9db05bb895a4b629537fd2d03b0e Author: Moore, Eric Date: Thu Feb 2 17:19:50 2006 -0700 [SCSI] fusion - mptctl -firmware download fix Fix's firmware download ioctl to work with SAS. Signed-off-by: Eric Moore Signed-off-by: James Bottomley commit 592f9c2fc9725b922ba8c4b1d67318ea4a301b59 Author: Moore, Eric Date: Thu Feb 2 17:19:47 2006 -0700 [SCSI] fusion - mptctl - backplane istwi fix Moving the toolbox call from mptbase.c, over to mptctl.c, and using the mptctl infastructure to issue the call. The existing code is hanging on certain HP platforms when this ioctl is issued, and this patch fix's that. Signed-off-by: Eric Moore Signed-off-by: James Bottomley commit 5f07e2499d629045f7f8a60a5b442792f08732cb Author: Moore, Eric Date: Thu Feb 2 17:19:44 2006 -0700 [SCSI] fusion - mptctl -sense width fix Bug fix for correctly setting sense width for the MPTCOMMAND ioctl. Signed-off-by: Eric Moore Signed-off-by: James Bottomley commit 5b5ef4f617f1706a23b0433d89a9c02ceb0980a5 Author: Moore, Eric Date: Thu Feb 2 17:19:40 2006 -0700 [SCSI] fusion - mptctl - Event Log Fix Use the hard coded value MPTCTL_EVENT_LOG_SIZE to fix bug where in certain cases, the ioc->eventLogSize was initialized. Signed-off-by: Eric Moore Signed-off-by: James Bottomley commit 86a7dcaae9c67a344e51190734b98684072d181c Author: Moore, Eric Date: Thu Feb 2 17:19:37 2006 -0700 [SCSI] fusion - mtctl - change to wait_event_timeout Change from using wait_event_interruptible_timeout to wait_event_timeout. Also delete white space and duplicate line of code. Signed-off-by: Eric Moore Signed-off-by: James Bottomley commit 9cc1cfbc67d77164f5b612fcf833460eca4d81e9 Author: Moore, Eric Date: Thu Feb 2 17:19:33 2006 -0700 [SCSI] fusion - mptctl - adding support for bus_type=SAS Add bus_type recognization in ioctl path for SAS. Signed-off-by: Eric Moore Signed-off-by: James Bottomley commit 096f7a2a094af3007937d6fd21560e28dca0994d Author: Moore, Eric Date: Thu Feb 2 17:19:30 2006 -0700 [SCSI] fusion - mptctl - MPTCOMMAND - adding function types. This adds support for new function types in the existing MPTCOMMAND ioctl. Signed-off-by: Eric Moore Signed-off-by: James Bottomley commit b5b81016538cf84a10c80438b7aa750dd375ba93 Author: Mike Christie Date: Wed Feb 1 21:07:14 2006 -0600 [SCSI] iscsi update: rm unused sessions list rm unused sessions list. This patch is last becuase I was not sure if this patchset was going to be applied over the kmalloc2kzalloc one by JesS. If it is then this patch will not apply and can be dropped for now. I will resend later when things setttle down. Signed-off-by: Mike Christie Signed-off-by: Alex Aizman Signed-off-by: Dmitry Yusupov Signed-off-by: James Bottomley commit 28e5554df63085be3b8bd2aee6ddbc479f0d136e Author: Mike Christie Date: Wed Feb 1 21:07:11 2006 -0600 [SCSI] iscsi update: use gfp_t Use gfp_t. I accidentally removed this in our last update. Signed-off-by: Mike Christie Signed-off-by: Alex Aizman Signed-off-by: Dmitry Yusupov Signed-off-by: James Bottomley commit b36ae07cb7757bd3eabd13c79844083dccac2f77 Author: Mike Christie Date: Wed Feb 1 21:07:09 2006 -0600 [SCSI] iscsi update: fix mgmt pool err path release >From ogerlitz@voltaire.com: mgmtpool shoild be frees in immdata_alloc_fail label. Signed-off-by: Mike Christie Signed-off-by: Alex Aizman Signed-off-by: Dmitry Yusupov Signed-off-by: James Bottomley commit 351f739e68e97a0316136a5bda145b952d99a989 Author: Mike Christie Date: Wed Feb 1 21:07:06 2006 -0600 [SCSI] iscsi update: set correct state at creation time >From erezz@voltaire.com: We are still in ISCSI_STATE_FREE state at create time. The addition of the first connection puts us in ISCSI_STATE_LOGGED_IN. Signed-off-by: Mike Christie Signed-off-by: Alex Aizman Signed-off-by: Dmitry Yusupov Signed-off-by: James Bottomley commit 1fd459e367657f595ddf192b9a46298e18d4fc13 Author: Mike Christie Date: Wed Feb 1 21:07:03 2006 -0600 [SCSI] iscsi update: rm conn lock >From erezz@voltaire.com: rm conn->lock since it is not used anymore. The dataqueue is protected by the session lock and xmitmutex. Signed-off-by: Mike Christie Signed-off-by: Alex Aizman Signed-off-by: Dmitry Yusupov Signed-off-by: James Bottomley commit ee7f8e405342722e42c15fe8e841a679f8951eea Author: Mike Christie Date: Wed Feb 1 21:07:01 2006 -0600 [SCSI] iscsi update: set deamon pid earlier >From michaelc@cs.wisc.edu: If the transport lookup fails we set the daemon pid too late. This can cause us deadlock since the netlink code will think we meant to call back into our iscsi_if_rx function. Signed-off-by: Mike Christie Signed-off-by: Alex Aizman Signed-off-by: Dmitry Yusupov Signed-off-by: James Bottomley commit 142e301fc818de9b116706835cd9fc864e73f203 Author: Mike Christie Date: Wed Feb 1 21:06:58 2006 -0600 [SCSI] iscsi update: setup pool before using >From andmike@us.ibm.com: Ensure that pool data is setup prior to calling mempool_create as it will call the the alloc function during create. Signed-off-by: Mike Anderson Signed-off-by: Mike Christie Signed-off-by: Alex Aizman Signed-off-by: Dmitry Yusupov Signed-off-by: James Bottomley commit 5b940adf5b341b12dbb94e7cbdb416b35f52017b Author: Mike Christie Date: Wed Feb 1 21:06:56 2006 -0600 [SCSI] iscsi update: pass correct skb to skb_trim >From da-x@monatomic.org: Wrong skb is passed to skb_trim in iscsi_if_get_stats. Signed-off-by: Mike Christie Signed-off-by: Alex Aizman Signed-off-by: Dmitry Yusupov Signed-off-by: James Bottomley commit 7b7232f3fb5ecd7c30cb52df368070cc5f5ca614 Author: Mike Christie Date: Wed Feb 1 21:06:49 2006 -0600 [SCSI] iscsi update: cleanup iscsi class interface From: michaelc@cs.wisc.edu fujita.tomonori@lab.ntt.co.jp da-x@monatomic.org and err path fixup from: ogerlitz@voltaire.com This patch cleans up that interface by having the lld and class pass a iscsi_cls_session or iscsi_cls_conn between each other when the function is used by HW and SW iscsi llds. This way the lld does not have to remember if it has to send a handle or pointer and a handle or pointer to connection, session or host. This also has the class verify the session handle that gets passed from userspace instead of using the pointer passed into the kernel directly. Signed-off-by: Mike Christie Signed-off-by: Alex Aizman Signed-off-by: Dmitry Yusupov Signed-off-by: James Bottomley commit bb08f92ebd75704e07d69bb9d8ee234d1a500b98 Author: Mark Haverkamp Date: Wed Feb 1 09:30:44 2006 -0800 [SCSI] aacraid: use no_uld_attach flag Received From Mark Salyzyn. In order to support user tools accessing the array components (SMART, Mode Page information, Cache page adjustments, WWN determination, Firmware updates etc), we take advantage of the no_uld_attach flag and deprecate the code that filters Inquiries to block the requests to array components. The quirk prevents the sd layer from attaching to the components. We also took the opportunity to balance the queue depths based on the total adapter queue depth to the array devices to reduce the chances of starvation. Signed-off-by: Mark Haverkamp Signed-off-by: James Bottomley commit bfb35aa85057da4336af56a7f26e08031f4e3468 Author: Mark Haverkamp Date: Wed Feb 1 09:30:55 2006 -0800 [SCSI] aacraid: Update global function names Received from Mark Salyzyn, Reduce the possibility of namespace collision. Prefix with aac_. Signed-off-by: Mark Haverkamp Signed-off-by: James Bottomley commit d8a571135aad527e5984c8094b7977c6914f2550 Author: Mark Haverkamp Date: Wed Feb 1 09:30:31 2006 -0800 [SCSI] aacraid: reduce device probe warnings Received from Mark Salyzyn. This patch sets up some device quirks surrounding arrays to inform the scsi layer that various mode pages are not supported. This reduces the severity of the complaints that show up in the logs as the array devices are enumerated. Signed-off-by: Mark Haverkamp Signed-off-by: James Bottomley commit 854165f4245c4a3b4a8cc363ba2050033151e196 Author: andrew.vasquez@qlogic.com Date: Tue Jan 31 16:05:17 2006 -0800 [SCSI] qla2xxx: Add support to retrieve/update HBA option-rom. Signed-off-by: Andrew Vasquez Signed-off-by: James Bottomley commit 1b3f63659bd353ae460c35f5793a9fd46cc95014 Author: andrew.vasquez@qlogic.com Date: Tue Jan 31 16:05:12 2006 -0800 [SCSI] qla2xxx: Return correct data-len during NVRAM retrieval. Signed-off-by: Andrew Vasquez Signed-off-by: James Bottomley commit f6df144cca19cc60dda6dcce65d236b70cc46494 Author: andrew.vasquez@qlogic.com Date: Tue Jan 31 16:05:07 2006 -0800 [SCSI] qla2xxx: Add beacon support via class-device attribute. Signed-off-by: Andrew Vasquez Signed-off-by: James Bottomley commit 392e2f651c8a83484116a407a9f121e534c22b5a Author: andrew.vasquez@qlogic.com Date: Tue Jan 31 16:05:02 2006 -0800 [SCSI] qla2xxx: Add host-statistics FC transport attributes. Signed-off-by: Andrew Vasquez Signed-off-by: James Bottomley commit 8d067623adf119081b7a2683cdc6ee90eb8a70b2 Author: andrew.vasquez@qlogic.com Date: Tue Jan 31 16:04:56 2006 -0800 [SCSI] qla2xxx: Add host port-type FC transport attribute. Signed-off-by: Andrew Vasquez Signed-off-by: James Bottomley commit 04414013bbda644b65537e73f1dacb2821b36811 Author: andrew.vasquez@qlogic.com Date: Tue Jan 31 16:04:51 2006 -0800 [SCSI] qla2xxx: Add port-speed FC transport attribute. Signed-off-by: Andrew Vasquez Signed-off-by: James Bottomley commit 8cf3f04f45694db0699f608c0e3fb550c607cc88 Author: Ralph Campbell Date: Fri Feb 3 14:28:48 2006 -0800 IB/mad: Handle DR SMPs with a LID routed part Fix handling of directed route SMPs with a beginning or ending LID routed part. Signed-off-by: Ralph Campbell Signed-off-by: Hal Rosenstock Signed-off-by: Roland Dreier commit 7d5e350fab47f1273bc8b52d5f133ed6e4baeb7f Author: Dave Jones Date: Thu Feb 2 17:03:42 2006 -0500 [CPUFREQ] Whitespace/CodingStyle cleanups Signed-off-by: Dave Jones commit a85f7bd310dbc9010309bfe70b6b02432a11ef59 Author: Thomas Renninger Date: Wed Feb 1 11:36:04 2006 +0100 [CPUFREQ] Check whether driver init did not initialize current freq Check whether driver init did not initialize current freq Signed-off-by: Thomas Renninger Signed-off-by: Dave Jones commit 9d2725bb815d915fc6c8531097d9e71b579a8763 Author: Thomas Renninger Date: Wed Feb 1 11:38:37 2006 +0100 [CPUFREQ] Check for not initialized freq on cpufreq changes Test for old_freq equals 0 to insure not to divide by 0: ______________________________________________ Check for not initialized freq on cpufreq changes Signed-off-by: Thomas Renninger Signed-off-by: Dave Jones commit e4472cb3706ceea42797ae1dc79d624026986694 Author: Dave Jones Date: Tue Jan 31 15:53:55 2006 -0800 [CPUFREQ] cpufreq_notify_transition cleanup. Introduce caching of cpufreq_cpu_data[freqs->cpu], which allows us to make the function a lot more readable, and as a nice side-effect, it now fits in < 80 column displays again. Signed-off-by: Dave Jones