Patches contributed by Eötvös Lorand University


commit 94d8f785dd1f021c1971df73e6437f000c0d9449
Author: Ingo Molnar <mingo@elte.hu>
Date:   Mon Mar 1 09:43:52 2010 -0500

    dell-laptop: Fix build error by making buffer_mutex static
    
    The following build bug (x86, allyesconfig):
    
      arch/x86/oprofile/built-in.o:(.data+0x250): multiple definition of `buffer_mutex'
    
    Was triggered in -tip testing, caused by this upstream commit:
    
      116ee77: dell-laptop: Use buffer with 32-bit physical address
    
    There's multiple buffer_mutex's in the kernel. Make this new one
    static.
    
    Signed-off-by: Ingo Molnar <mingo@elte.hu>

diff --git a/drivers/platform/x86/dell-laptop.c b/drivers/platform/x86/dell-laptop.c
index b7f4d2705916..29d96a4f5769 100644
--- a/drivers/platform/x86/dell-laptop.c
+++ b/drivers/platform/x86/dell-laptop.c
@@ -132,8 +132,8 @@ static struct dmi_system_id __devinitdata dell_blacklist[] = {
 };
 
 static struct calling_interface_buffer *buffer;
-struct page *bufferpage;
-DEFINE_MUTEX(buffer_mutex);
+static struct page *bufferpage;
+static DEFINE_MUTEX(buffer_mutex);
 
 static int hwswitch_state;
 

commit e2f4699ac15fe36de1288505bc6e6e5a8603ab1b
Merge: 1883c79a57a5 30ff056c42c6
Author: Ingo Molnar <mingo@elte.hu>
Date:   Mon Mar 1 09:28:53 2010 +0100

    Merge branch 'linus' into core/rcu
    
    Merge reason: Backmerge latest upstream to queue up dependent fix in the
                  scheduler.
    
    Signed-off-by: Ingo Molnar <mingo@elte.hu>

commit c99c30feadf664ccd8590b96259cb9f3954bd246
Author: Ingo Molnar <mingo@elte.hu>
Date:   Sun Feb 28 20:49:00 2010 +0100

    nmi_watchdog: Turn it off by default
    
    It was nice to enable it by default for testing - but before we
    push it upstream we want it to be off - so that people can
    opt-in gradually.
    
    Cc: Don Zickus <dzickus@redhat.com>
    Cc: peterz@infradead.org
    Cc: gorcunov@gmail.com
    Cc: aris@redhat.com
    LKML-Reference: <1266880143-24943-1-git-send-email-dzickus@redhat.com>
    Signed-off-by: Ingo Molnar <mingo@elte.hu>

diff --git a/lib/Kconfig.debug b/lib/Kconfig.debug
index 01a4d85ee746..e2e73cc17a91 100644
--- a/lib/Kconfig.debug
+++ b/lib/Kconfig.debug
@@ -173,7 +173,6 @@ config DETECT_SOFTLOCKUP
 config NMI_WATCHDOG
 	bool "Detect Hard Lockups with an NMI Watchdog"
 	depends on DEBUG_KERNEL && PERF_EVENTS && PERF_EVENTS_NMI
-	default y
 	help
 	  Say Y here to enable the kernel to use the NMI as a watchdog
 	  to detect hard lockups.  This is useful when a cpu hangs for no

commit 21c2fd9970cc8e457058f84016450a2e9876125e
Author: Ingo Molnar <mingo@elte.hu>
Date:   Fri Feb 26 11:17:16 2010 +0100

    x86: apic: Fix mismerge, add arch_probe_nr_irqs() again
    
    Merge commit aef55d4922 mis-merged io_apic.c so we lost the
    arch_probe_nr_irqs() method.
    
    This caused subtle boot breakages (udev confusion likely
    due to missing drivers) with certain configs.
    
    Cc: H. Peter Anvin <hpa@zytor.com>
    Cc: Yinghai Lu <yinghai@kernel.org>
    LKML-Reference: <20100207210250.GB8256@jenkins.home.ifup.org>
    Signed-off-by: Ingo Molnar <mingo@elte.hu>

diff --git a/arch/x86/kernel/apic/io_apic.c b/arch/x86/kernel/apic/io_apic.c
index 979589881c80..72ac2a332993 100644
--- a/arch/x86/kernel/apic/io_apic.c
+++ b/arch/x86/kernel/apic/io_apic.c
@@ -3876,6 +3876,28 @@ void __init probe_nr_irqs_gsi(void)
 	printk(KERN_DEBUG "nr_irqs_gsi: %d\n", nr_irqs_gsi);
 }
 
+#ifdef CONFIG_SPARSE_IRQ
+int __init arch_probe_nr_irqs(void)
+{
+	int nr;
+
+	if (nr_irqs > (NR_VECTORS * nr_cpu_ids))
+		nr_irqs = NR_VECTORS * nr_cpu_ids;
+
+	nr = nr_irqs_gsi + 8 * nr_cpu_ids;
+#if defined(CONFIG_PCI_MSI) || defined(CONFIG_HT_IRQ)
+	/*
+	 * for MSI and HT dyn irq
+	 */
+	nr += nr_irqs_gsi * 16;
+#endif
+	if (nr < nr_irqs)
+		nr_irqs = nr;
+
+	return 0;
+}
+#endif
+
 static int __io_apic_set_pci_routing(struct device *dev, int irq,
 				struct io_apic_irq_attr *irq_attr)
 {

commit 480917427b0b6ff39de55ffc81391055472e6c26
Merge: 6fb83029db16 f1c7f517a5dc
Author: Ingo Molnar <mingo@elte.hu>
Date:   Sat Feb 27 10:41:16 2010 +0100

    Merge branch 'tip/tracing/core' of git://git.kernel.org/pub/scm/linux/kernel/git/rostedt/linux-2.6-trace into tracing/core

commit 6fb83029db161141d68cf019760a893d03d0682b
Merge: 281b3714e911 e01292b1fd68
Author: Ingo Molnar <mingo@elte.hu>
Date:   Sat Feb 27 10:06:10 2010 +0100

    Merge branch 'tracing/core' of git://git.kernel.org/pub/scm/linux/kernel/git/frederic/random-tracing into tracing/core

commit 281b3714e91162b66add1cfac404cf7b81e3e2f2
Merge: 64b9fb5704a4 7b60997f7386
Author: Ingo Molnar <mingo@elte.hu>
Date:   Fri Feb 26 09:20:17 2010 +0100

    Merge branch 'tip/tracing/core' of git://git.kernel.org/pub/scm/linux/kernel/git/rostedt/linux-2.6-trace into tracing/core

commit 64b9fb5704a479d98a59f2a1d45d3331a8f847f8
Merge: 83f0d53993b2 60b341b778cc
Author: Ingo Molnar <mingo@elte.hu>
Date:   Fri Feb 26 09:18:32 2010 +0100

    Merge commit 'v2.6.33' into tracing/core
    
    Conflicts:
            scripts/recordmcount.pl
    
    Merge reason: Merge up to v2.6.33.
    
    Signed-off-by: Ingo Molnar <mingo@elte.hu>

commit c50cc75271759373bd89a036eec4d4269b291616
Author: Ingo Molnar <mingo@elte.hu>
Date:   Thu Feb 25 12:02:13 2010 +0100

    sched, cgroups: Fix module export
    
    I have exported it in d11c563 - but cgroups.c did not have module.h included ...
    
    Cc: Paul E. McKenney <paulmck@linux.vnet.ibm.com>
    Cc: laijs@cn.fujitsu.com
    Cc: dipankar@in.ibm.com
    Cc: mathieu.desnoyers@polymtl.ca
    Cc: josh@joshtriplett.org
    Cc: dvhltc@us.ibm.com
    Cc: niv@us.ibm.com
    Cc: peterz@infradead.org
    Cc: rostedt@goodmis.org
    Cc: Valdis.Kletnieks@vt.edu
    Cc: dhowells@redhat.com
    LKML-Reference: <1266887105-1528-6-git-send-email-paulmck@linux.vnet.ibm.com>
    Signed-off-by: Ingo Molnar <mingo@elte.hu>

diff --git a/kernel/cgroup.c b/kernel/cgroup.c
index b1a0f5a528fe..4fd90e129772 100644
--- a/kernel/cgroup.c
+++ b/kernel/cgroup.c
@@ -23,6 +23,7 @@
  */
 
 #include <linux/cgroup.h>
+#include <linux/module.h>
 #include <linux/ctype.h>
 #include <linux/errno.h>
 #include <linux/fs.h>

commit 996de8c6fe95c5a9fc524241cc8f142ef0605d3d
Merge: 017c42613812 60b341b778cc
Author: Ingo Molnar <mingo@elte.hu>
Date:   Thu Feb 25 09:40:22 2010 +0100

    Merge commit 'v2.6.33' into core/rcu
    
    Merge reason: Update from -rc4 to -final.
    
    Signed-off-by: Ingo Molnar <mingo@elte.hu>