]> xenbits.xensource.com Git - people/ssmith/netchannel2-pvops.git/log
people/ssmith/netchannel2-pvops.git
16 years agoMerge branch 'timers/ntp'
Ingo Molnar [Tue, 12 May 2009 08:39:16 +0000 (10:39 +0200)]
Merge branch 'timers/ntp'

16 years agontp: fix comment typos
john stultz [Tue, 12 May 2009 01:13:13 +0000 (18:13 -0700)]
ntp: fix comment typos

Bernhard Schiffner noticed I had a few comment typos in this patch,
(note: to save embarrassment, when making typos, avoid copying and
pasting them) so this patch corrects them.

[ Impact: cleanup ]

Reported-by: Bernhard Schiffner <bernhard@schiffner-limbach.de>
Signed-off-by: John Stultz <johnstul@us.ibm.com>
Cc: riel@redhat.com
Cc: akpm@linux-foundation.org
LKML-Reference: <1242090794.7214.131.camel@localhost.localdomain>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
16 years agoMerge branch 'auto-latest'
Ingo Molnar [Tue, 12 May 2009 08:24:47 +0000 (10:24 +0200)]
Merge branch 'auto-latest'

16 years agoMerge branch 'auto-perfcounters-next' into auto-latest
Ingo Molnar [Tue, 12 May 2009 07:26:58 +0000 (09:26 +0200)]
Merge branch 'auto-perfcounters-next' into auto-latest

Conflicts:
arch/x86/kernel/irqinit.c
arch/x86/kernel/irqinit_64.c
arch/x86/kernel/traps.c
arch/x86/mm/fault.c

16 years agoMerge branch 'auto-warnings-next' into auto-latest
Ingo Molnar [Tue, 12 May 2009 07:25:53 +0000 (09:25 +0200)]
Merge branch 'auto-warnings-next' into auto-latest

16 years agoMerge branch 'auto-iommu-next' into auto-latest
Ingo Molnar [Tue, 12 May 2009 07:25:51 +0000 (09:25 +0200)]
Merge branch 'auto-iommu-next' into auto-latest

16 years agoMerge branch 'auto-sparseirq-next' into auto-latest
Ingo Molnar [Tue, 12 May 2009 07:25:49 +0000 (09:25 +0200)]
Merge branch 'auto-sparseirq-next' into auto-latest

16 years agoMerge branch 'auto-oprofile-next' into auto-latest
Ingo Molnar [Tue, 12 May 2009 07:25:46 +0000 (09:25 +0200)]
Merge branch 'auto-oprofile-next' into auto-latest

16 years agomanual merge of auto-kmemcheck-next
Ingo Molnar [Tue, 12 May 2009 07:25:29 +0000 (09:25 +0200)]
manual merge of auto-kmemcheck-next

Signed-off-by: Ingo Molnar <mingo@elte.hu>
16 years agoMerge branch 'auto-safe-poison-pointers-next' into auto-latest
Ingo Molnar [Tue, 12 May 2009 07:25:24 +0000 (09:25 +0200)]
Merge branch 'auto-safe-poison-pointers-next' into auto-latest

16 years agoMerge branch 'auto-core-next' into auto-latest
Ingo Molnar [Tue, 12 May 2009 07:25:20 +0000 (09:25 +0200)]
Merge branch 'auto-core-next' into auto-latest

16 years agoMerge branch 'auto-genirq-next' into auto-latest
Ingo Molnar [Tue, 12 May 2009 07:25:18 +0000 (09:25 +0200)]
Merge branch 'auto-genirq-next' into auto-latest

16 years agoMerge branch 'auto-timers-next' into auto-latest
Ingo Molnar [Tue, 12 May 2009 07:25:17 +0000 (09:25 +0200)]
Merge branch 'auto-timers-next' into auto-latest

16 years agoMerge branch 'auto-tracing-next' into auto-latest
Ingo Molnar [Tue, 12 May 2009 07:25:15 +0000 (09:25 +0200)]
Merge branch 'auto-tracing-next' into auto-latest

16 years agoMerge branch 'auto-sched-next' into auto-latest
Ingo Molnar [Tue, 12 May 2009 07:25:14 +0000 (09:25 +0200)]
Merge branch 'auto-sched-next' into auto-latest

16 years agoMerge branch 'irq/numa' into auto-genirq-next
Ingo Molnar [Tue, 12 May 2009 07:24:30 +0000 (09:24 +0200)]
Merge branch 'irq/numa' into auto-genirq-next

16 years agoMerge branch 'irq/genirq' into auto-genirq-next
Ingo Molnar [Tue, 12 May 2009 07:24:28 +0000 (09:24 +0200)]
Merge branch 'irq/genirq' into auto-genirq-next

16 years agoMerge branch 'linus' into out-of-tree
Ingo Molnar [Tue, 12 May 2009 07:16:27 +0000 (09:16 +0200)]
Merge branch 'linus' into out-of-tree

16 years agoMerge branch 'kmemcheck' into auto-kmemcheck-next
Ingo Molnar [Tue, 12 May 2009 07:11:22 +0000 (09:11 +0200)]
Merge branch 'kmemcheck' into auto-kmemcheck-next

16 years agoMerge commit 'v2.6.30-rc5' into kmemcheck
Ingo Molnar [Tue, 12 May 2009 07:07:41 +0000 (09:07 +0200)]
Merge commit 'v2.6.30-rc5' into kmemcheck

Conflicts:
arch/x86/mm/init.c
kernel/sysctl.c

Merge reason: refresh the branch to .30-rc5 and resolve conflicts.

Signed-off-by: Ingo Molnar <mingo@elte.hu>
16 years agoMerge branch 'timers/core' into auto-timers-next
Ingo Molnar [Tue, 12 May 2009 07:05:46 +0000 (09:05 +0200)]
Merge branch 'timers/core' into auto-timers-next

16 years agoMerge branch 'timers/ntp' into auto-timers-next
Ingo Molnar [Tue, 12 May 2009 07:05:38 +0000 (09:05 +0200)]
Merge branch 'timers/ntp' into auto-timers-next

16 years agoMerge branch 'timers/clocksource' into auto-timers-next
Ingo Molnar [Tue, 12 May 2009 07:05:31 +0000 (09:05 +0200)]
Merge branch 'timers/clocksource' into auto-timers-next

16 years agoMerge branch 'timers/clockevents' into auto-timers-next
Ingo Molnar [Tue, 12 May 2009 07:05:30 +0000 (09:05 +0200)]
Merge branch 'timers/clockevents' into auto-timers-next

16 years agoMerge branch 'sched/docs' into auto-sched-next
Ingo Molnar [Tue, 12 May 2009 07:05:25 +0000 (09:05 +0200)]
Merge branch 'sched/docs' into auto-sched-next

16 years agoMerge branch 'core/rcu' into auto-sched-next
Ingo Molnar [Tue, 12 May 2009 07:05:05 +0000 (09:05 +0200)]
Merge branch 'core/rcu' into auto-sched-next

16 years agoMerge branch 'sched/core' into auto-sched-next
Ingo Molnar [Tue, 12 May 2009 07:05:04 +0000 (09:05 +0200)]
Merge branch 'sched/core' into auto-sched-next

16 years agoMerge branch 'sched/urgent' into auto-sched-next
Ingo Molnar [Tue, 12 May 2009 07:05:03 +0000 (09:05 +0200)]
Merge branch 'sched/urgent' into auto-sched-next

16 years agoMerge branch 'perfcounters/core' into auto-perfcounters-next
Ingo Molnar [Tue, 12 May 2009 07:04:55 +0000 (09:04 +0200)]
Merge branch 'perfcounters/core' into auto-perfcounters-next

16 years agoMerge branch 'oprofile' into auto-oprofile-next
Ingo Molnar [Tue, 12 May 2009 07:04:44 +0000 (09:04 +0200)]
Merge branch 'oprofile' into auto-oprofile-next

16 years agoMerge branch 'core/iommu' into auto-iommu-next
Ingo Molnar [Tue, 12 May 2009 07:04:37 +0000 (09:04 +0200)]
Merge branch 'core/iommu' into auto-iommu-next

16 years agoMerge branch 'core/rcu' into auto-core-next
Ingo Molnar [Tue, 12 May 2009 07:03:14 +0000 (09:03 +0200)]
Merge branch 'core/rcu' into auto-core-next

16 years agoMerge branch 'core/signal' into auto-core-next
Ingo Molnar [Tue, 12 May 2009 07:03:09 +0000 (09:03 +0200)]
Merge branch 'core/signal' into auto-core-next

16 years agoMerge branch 'core/futexes' into auto-core-next
Ingo Molnar [Tue, 12 May 2009 07:02:59 +0000 (09:02 +0200)]
Merge branch 'core/futexes' into auto-core-next

16 years agoMerge branch 'core/printk' into auto-core-next
Ingo Molnar [Tue, 12 May 2009 07:02:49 +0000 (09:02 +0200)]
Merge branch 'core/printk' into auto-core-next

16 years agoMerge branch 'core/percpu' into auto-core-next
Ingo Molnar [Tue, 12 May 2009 07:02:47 +0000 (09:02 +0200)]
Merge branch 'core/percpu' into auto-core-next

16 years agoMerge branch 'core/locking' into auto-core-next
Ingo Molnar [Tue, 12 May 2009 07:02:45 +0000 (09:02 +0200)]
Merge branch 'core/locking' into auto-core-next

16 years agoMerge branch 'tracing/mm' into auto-tracing-next
Ingo Molnar [Tue, 12 May 2009 07:02:11 +0000 (09:02 +0200)]
Merge branch 'tracing/mm' into auto-tracing-next

16 years agoMerge branch 'tracing/core' into auto-tracing-next
Ingo Molnar [Tue, 12 May 2009 07:01:48 +0000 (09:01 +0200)]
Merge branch 'tracing/core' into auto-tracing-next

16 years agoMerge branch 'x86/kbuild-phys' into auto-x86-next
Ingo Molnar [Tue, 12 May 2009 06:52:53 +0000 (08:52 +0200)]
Merge branch 'x86/kbuild-phys' into auto-x86-next

16 years agoMerge branch 'x86/kbuild' into auto-x86-next
Ingo Molnar [Tue, 12 May 2009 06:52:51 +0000 (08:52 +0200)]
Merge branch 'x86/kbuild' into auto-x86-next

16 years agoMerge branch 'x86/asm' into auto-x86-next
Ingo Molnar [Tue, 12 May 2009 06:52:43 +0000 (08:52 +0200)]
Merge branch 'x86/asm' into auto-x86-next

16 years agoMerge branch 'x86/cpufeature' into auto-x86-next
Ingo Molnar [Tue, 12 May 2009 06:52:36 +0000 (08:52 +0200)]
Merge branch 'x86/cpufeature' into auto-x86-next

16 years agoMerge branch 'x86/mm' into auto-x86-next
Ingo Molnar [Tue, 12 May 2009 06:52:35 +0000 (08:52 +0200)]
Merge branch 'x86/mm' into auto-x86-next

16 years agoMerge branch 'x86/fpu' into auto-x86-next
Ingo Molnar [Tue, 12 May 2009 06:51:44 +0000 (08:51 +0200)]
Merge branch 'x86/fpu' into auto-x86-next

16 years agoMerge branch 'x86/setup' into auto-x86-next
Ingo Molnar [Tue, 12 May 2009 06:50:46 +0000 (08:50 +0200)]
Merge branch 'x86/setup' into auto-x86-next

16 years agoMerge branch 'x86/xen' into auto-x86-next
Ingo Molnar [Tue, 12 May 2009 06:50:45 +0000 (08:50 +0200)]
Merge branch 'x86/xen' into auto-x86-next

16 years agoMerge branch 'x86/cpu' into auto-x86-next
Ingo Molnar [Tue, 12 May 2009 06:50:27 +0000 (08:50 +0200)]
Merge branch 'x86/cpu' into auto-x86-next

16 years agoMerge branch 'x86/cleanups' into auto-x86-next
Ingo Molnar [Tue, 12 May 2009 06:50:23 +0000 (08:50 +0200)]
Merge branch 'x86/cleanups' into auto-x86-next

16 years agoMerge branch 'x86/apic' into auto-x86-next
Ingo Molnar [Tue, 12 May 2009 06:50:17 +0000 (08:50 +0200)]
Merge branch 'x86/apic' into auto-x86-next

16 years agoMerge branch 'x86/urgent' into auto-x86-next
Ingo Molnar [Tue, 12 May 2009 06:50:12 +0000 (08:50 +0200)]
Merge branch 'x86/urgent' into auto-x86-next

16 years agox86, 32-bit: fix kernel_trap_sp()
Masami Hiramatsu [Mon, 11 May 2009 21:03:00 +0000 (17:03 -0400)]
x86, 32-bit: fix kernel_trap_sp()

Use &regs->sp instead of regs for getting the top of stack in kernel mode.
(on x86-64, regs->sp always points the top of stack)

[ Impact: Oprofile decodes only stack for backtracing on i386 ]

Signed-off-by: Masami Hiramatsu <mhiramat@redhat.com>
[ v2: rename the API to kernel_stack_pointer(), move variable inside ]
Acked-by: Linus Torvalds <torvalds@linux-foundation.org>
Cc: systemtap@sources.redhat.com
Cc: Harvey Harrison <harvey.harrison@gmail.com>
Cc: Jan Blunck <jblunck@suse.de>
Cc: Christoph Hellwig <hch@infradead.org>
LKML-Reference: <20090511210300.17332.67549.stgit@localhost.localdomain>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
16 years agosched: Don't export sched_mc_power_savings on multi-socket single core system
Vaidyanathan Srinivasan [Mon, 11 May 2009 14:39:14 +0000 (20:09 +0530)]
sched: Don't export sched_mc_power_savings on multi-socket single core system

Fix to prevent sched_mc_power_saving from being exported through sysfs
for multi-scoket single core system. Max cores should be always greater than
one (1). My earlier patch that introduced fix for not exporting
'sched_mc_power_saving' on laptops  broke it on multi-socket single core
system. This fix addresses issue on both laptop and multi-socket single
core system.
Below are the Test results:

1. Single socket - multi-core
       Before Patch: Does not export 'sched_mc_power_saving'
       After Patch: Does not export 'sched_mc_power_saving'
       Result: Pass

2. Multi Socket - single core
      Before Patch: exports 'sched_mc_power_saving'
      After Patch: Does not export 'sched_mc_power_saving'
      Result: Pass

3. Multi Socket - Multi core
      Before Patch: exports 'sched_mc_power_saving'
      After Patch: exports 'sched_mc_power_saving'

[ Impact: make the sched_mc_power_saving control available more consistently ]

Signed-off-by: Mahesh Salgaonkar <mahesh@linux.vnet.ibm.com>
Cc: Suresh B Siddha <suresh.b.siddha@intel.com>
Cc: Venkatesh Pallipadi <venkatesh.pallipadi@intel.com>
Cc: Peter Zijlstra <a.p.zijlstra@chello.nl>
LKML-Reference: <20090511143914.GB4853@dirshya.in.ibm.com>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
16 years agox86: fix percpu_{to,from}_op()
Jan Beulich [Mon, 11 May 2009 15:49:28 +0000 (16:49 +0100)]
x86: fix percpu_{to,from}_op()

- the byte operand constraints were wrong for 32-bit
- the to-op's input operands weren't properly parenthesized

[ Impact: fix possible miscompilation or build failure ]

Signed-off-by: Jan Beulich <jbeulich@novell.com>
Signed-off-by: H. Peter Anvin <hpa@zytor.com>
16 years agox86, 64-bit: ifdef out struct thread_struct::ip
Alexey Dobriyan [Sun, 3 May 2009 23:30:15 +0000 (03:30 +0400)]
x86, 64-bit: ifdef out struct thread_struct::ip

struct thread_struct::ip isn't used on x86_64, struct pt_regs::ip is used
instead.

kgdb should be reading 0 always, but I can't check it.

[ Impact: (potentially) reduce thread_struct size on 64-bit ]

Signed-off-by: Alexey Dobriyan <adobriyan@gmail.com>
Cc: containers@lists.linux-foundation.org
LKML-Reference: <20090503233015.GJ16631@x200.localdomain>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
16 years agox86, 32-bit: ifdef out struct thread_struct::fs
Alexey Dobriyan [Sun, 3 May 2009 23:29:52 +0000 (03:29 +0400)]
x86, 32-bit: ifdef out struct thread_struct::fs

After commit 464d1a78fbf8cf6c7fd970e7b3e2db50a320ce28 aka
"[PATCH] i386: Convert i386 PDA code to use %fs"
%fs saved during context switch moved from thread_struct to pt_regs
and value on thread_struct became unused.

[ Impact: reduce thread_struct size on 32-bit ]

Signed-off-by: Alexey Dobriyan <adobriyan@gmail.com>
Cc: containers@lists.linux-foundation.org
LKML-Reference: <20090503232952.GI16631@x200.localdomain>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
16 years agox86: apic: Fixmap apic address even if apic disabled
Cyrill Gorcunov [Mon, 11 May 2009 13:41:40 +0000 (17:41 +0400)]
x86: apic: Fixmap apic address even if apic disabled

In case if apic were disabled by boot option
we still need read_apic operation. So fixmap
a fake apic area if needed.

[ Impact: fix boot crash ]

Signed-off-by: Cyrill Gorcunov <gorcunov@openvz.org>
Cc: yinghai@kernel.org
Cc: eswierk@aristanetworks.com
LKML-Reference: <20090511134140.GH4624@lenovo>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
16 years agoMerge commit 'v2.6.30-rc5' into core/iommu
Ingo Molnar [Mon, 11 May 2009 12:44:27 +0000 (14:44 +0200)]
Merge commit 'v2.6.30-rc5' into core/iommu

Merge reason: core/iommu was on an .30-rc1 base,
              update it to .30-rc5 to refresh.

Signed-off-by: Ingo Molnar <mingo@elte.hu>
16 years agox86: display extended apic registers with print_local_APIC and cpu_debug code
Andreas Herrmann [Fri, 8 May 2009 16:23:50 +0000 (18:23 +0200)]
x86: display extended apic registers with print_local_APIC and cpu_debug code

Both print_local_APIC (used when apic=debug kernel param is set) and
cpu_debug code missed support for some extended APIC registers that
I'd like to see.

This adds support to show:

 - extended APIC feature register
 - extended APIC control register
 - extended LVT registers

[ Impact: print more debug info ]

Signed-off-by: Andreas Herrmann <andreas.herrmann3@amd.com>
Cc: Jaswinder Singh Rajput <jaswinder@kernel.org>
Cc: Cyrill Gorcunov <gorcunov@openvz.org>
LKML-Reference: <20090508162350.GO29045@alberich.amd.com>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
16 years agox86: Provide _sdata in the vmlinux.lds.S file
Catalin Marinas [Mon, 11 May 2009 12:22:00 +0000 (13:22 +0100)]
x86: Provide _sdata in the vmlinux.lds.S file

_sdata is a common symbol defined by many architectures and made
available to the kernel via asm-generic/sections.h. Kmemleak uses this
symbol when scanning the data sections.

[ Impact: add new global symbol ]

Signed-off-by: Catalin Marinas <catalin.marinas@arm.com>
LKML-Reference: <20090511122105.26556.96593.stgit@pc1117.cambridge.arm.com>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
16 years agoMerge commit 'v2.6.30-rc5' into x86/kbuild
Ingo Molnar [Mon, 11 May 2009 12:27:56 +0000 (14:27 +0200)]
Merge commit 'v2.6.30-rc5' into x86/kbuild

Merge reason: x86/kbuild was based on .30-rc1, refresh it with -rc5
              fixes before queueing up more changes

Signed-off-by: Ingo Molnar <mingo@elte.hu>
16 years agoblktrace: from-sector redundant in trace_block_remap, cleanup
Li Zefan [Mon, 11 May 2009 07:06:46 +0000 (15:06 +0800)]
blktrace: from-sector redundant in trace_block_remap, cleanup

The last argument of block_remap prober is the original sector
before remap, so it should be 'from', not 'to'.

[ Impact: clean up ]

Signed-off-by: Li Zefan <lizf@cn.fujitsu.com>
Cc: "Alan D. Brunelle" <Alan.Brunelle@hp.com>
Cc: Jens Axboe <jens.axboe@oracle.com>
Cc: Arnaldo Carvalho de Melo <acme@redhat.com>
Cc: KOSAKI Motohiro <kosaki.motohiro@jp.fujitsu.com>
LKML-Reference: <4A07CE86.5090301@cn.fujitsu.com>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
16 years agoMerge commit 'v2.6.30-rc5' into sched/core
Ingo Molnar [Mon, 11 May 2009 10:59:32 +0000 (12:59 +0200)]
Merge commit 'v2.6.30-rc5' into sched/core

Merge reason: sched/core was on .30-rc1 before, update to latest fixes

Signed-off-by: Ingo Molnar <mingo@elte.hu>
16 years agoblktrace: pdu_buf of pc events should be unsigned
Li Zefan [Mon, 11 May 2009 06:33:23 +0000 (14:33 +0800)]
blktrace: pdu_buf of pc events should be unsigned

I got this:
  8,0    1   305.417782332  2037  I   R 32 (ffffff9e 10 00 ...) [bash]

It should be:
  8,0    1   305.417782332  2037  I   R 32 (9e 10 00 ...) [bash]

[ Impact: fix output of pc events ]

Signed-off-by: Li Zefan <lizf@cn.fujitsu.com>
Cc: Jens Axboe <jens.axboe@oracle.com>
Cc: Arnaldo Carvalho de Melo <acme@redhat.com>
Cc: Steven Rostedt <rostedt@goodmis.org>
Cc: Frederic Weisbecker <fweisbec@gmail.com>
LKML-Reference: <4A07C6B3.9080802@cn.fujitsu.com>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
16 years agoperf_counter: call atomic64_set for counter->count
Paul Mackerras [Mon, 11 May 2009 05:50:21 +0000 (15:50 +1000)]
perf_counter: call atomic64_set for counter->count

A compile warning triggered because we are calling
atomic_set(&counter->count). But since counter->count
is an atomic64_t, we have to use atomic64_set.

So the count can be set short, resulting in the reset ioctl
only resetting the low word.

[ Impact: clear counter properly during the reset ioctl ]

Signed-off-by: Paul Mackerras <paulus@samba.org>
Cc: Peter Zijlstra <a.p.zijlstra@chello.nl>
Cc: Corey Ashford <cjashfor@linux.vnet.ibm.com>
LKML-Reference: <18951.48285.270311.981806@drongo.ozlabs.ibm.com>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
16 years agoperf_counter: don't count scheduler ticks as context switches
Paul Mackerras [Mon, 11 May 2009 05:46:10 +0000 (15:46 +1000)]
perf_counter: don't count scheduler ticks as context switches

The context-switch software counter gives inflated values at present
because each scheduler tick and each process-wide counter
enable/disable prctl gets counted as a context switch.

This happens because perf_counter_task_tick, perf_counter_task_disable
and perf_counter_task_enable all call perf_counter_task_sched_out,
which calls perf_swcounter_event to record a context switch event.

This fixes it by introducing a variant of perf_counter_task_sched_out
with two underscores in front for internal use within the perf_counter
code, and makes perf_counter_task_{tick,disable,enable} call it.  This
variant doesn't record a context switch event, and takes a struct
perf_counter_context *.  This adds the new variant rather than
changing the behaviour or interface of perf_counter_task_sched_out
because that is called from other code.

[ Impact: fix inflated context-switch event counts ]

Signed-off-by: Paul Mackerras <paulus@samba.org>
Cc: Peter Zijlstra <a.p.zijlstra@chello.nl>
Cc: Corey Ashford <cjashfor@linux.vnet.ibm.com>
LKML-Reference: <18951.48034.485580.498953@drongo.ozlabs.ibm.com>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
16 years agoperf_counter: Put whole group on when enabling group leader
Paul Mackerras [Mon, 11 May 2009 02:08:02 +0000 (12:08 +1000)]
perf_counter: Put whole group on when enabling group leader

Currently, if you have a group where the leader is disabled and there
are siblings that are enabled, and then you enable the leader, we only
put the leader on the PMU, and not its enabled siblings.  This is
incorrect, since the enabled group members should be all on or all off
at any given point.

This fixes it by adding a call to group_sched_in in
__perf_counter_enable in the case where we're enabling a group leader.

To avoid the need for a forward declaration this also moves
group_sched_in up before __perf_counter_enable.  The actual content of
group_sched_in is unchanged by this patch.

[ Impact: fix bug in counter enable code ]

Signed-off-by: Paul Mackerras <paulus@samba.org>
Cc: Peter Zijlstra <a.p.zijlstra@chello.nl>
Cc: Corey Ashford <cjashfor@linux.vnet.ibm.com>
LKML-Reference: <18951.34946.451546.691693@drongo.ozlabs.ibm.com>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
16 years agoperf_counter, x86: clean up throttling printk
Mike Galbraith [Sun, 10 May 2009 08:53:05 +0000 (10:53 +0200)]
perf_counter, x86: clean up throttling printk

s/PERFMON/perfcounters for perfcounter interrupt throttling warning.

'perfmon' is the CPU feature name that is Intel-only, while we do
throttling in a generic way.

[ Impact: cleanup ]

Signed-off-by: Mike Galbraith <efault@gmx.de>
Cc: Robert Richter <robert.richter@amd.com>
Cc: Peter Zijlstra <a.p.zijlstra@chello.nl>
Cc: Paul Mackerras <paulus@samba.org>
LKML-Reference: <new-submission>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
16 years agoMerge branch 'fixes' of git://git.kernel.org/pub/scm/linux/kernel/git/rric/oprofile...
Ingo Molnar [Mon, 11 May 2009 09:58:31 +0000 (11:58 +0200)]
Merge branch 'fixes' of git://git.kernel.org/pub/scm/linux/kernel/git/rric/oprofile into oprofile

16 years agox86: use sparse_memory_present_with_active_regions() on UMA
Pekka Enberg [Thu, 7 May 2009 12:35:42 +0000 (15:35 +0300)]
x86: use sparse_memory_present_with_active_regions() on UMA

There's no need to use call memory_present() manually on UMA because
initmem_init() sets up early_node_map by calling
e820_register_active_regions().

[ Impact: cleanup ]

Signed-off-by: Pekka Enberg <penberg@cs.helsinki.fi>
LKML-Reference: <1241699742.17846.31.camel@penberg-laptop>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
16 years agox86: unify 64-bit UMA and NUMA paging_init()
Pekka Enberg [Thu, 7 May 2009 12:35:41 +0000 (15:35 +0300)]
x86: unify 64-bit UMA and NUMA paging_init()

64-bit UMA and NUMA versions of paging_init() are almost identical.
Therefore, merge the copy in mm/numa_64.c to mm/init_64.c to remove
duplicate code.

[ Impact: cleanup ]

Signed-off-by: Pekka Enberg <penberg@cs.helsinki.fi>
LKML-Reference: <1241699741.17846.30.camel@penberg-laptop>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
16 years agox86: mtrr: Fix high_width computation when phys-addr is >= 44bit
Yinghai Lu [Thu, 7 May 2009 04:36:16 +0000 (21:36 -0700)]
x86: mtrr: Fix high_width computation when phys-addr is >= 44bit

found one system where cpu address line is 44bits, mtrr printout
is not right:

 [    0.000000] MTRR variable ranges enabled:
 [    0.000000]   0 base 0   00000000 mask FF0 00000000 write-back
 [    0.000000]   1 base 10  00000000 mask FFF 80000000 write-back
 [    0.000000]   2 base 0   80000000 mask FFF 80000000 uncachable
 [    0.000000]   3 base 0   7F800000 mask FFF FF800000 uncachable

Li Zefan and Frederic pointed out the high_width could be -4 some how.

It turns out when phys_addr is 44bit, size_or_mask will be
ffffffff,00000000 so ffs(size_or_mask) will be 0.

Try to check low 32 bit, to get correct high_width.

Signed-off-by: Yinghai Lu <yinghai@kerne.org>
Also-analyzed-by: Frederic Weisbecker <fweisbec@gmail.com>
Also-analyzed-by: Li Zefan <lizf@cn.fujitsu.com>
Cc: Jeremy Fitzhardinge <jeremy@goop.org>
Cc: Zhaolei <zhaolei@cn.fujitsu.com>
Cc: Steven Rostedt <rostedt@goodmis.org>
Cc: Vegard Nossum <vegard.nossum@gmail.com>
Cc: Andrew Morton <akpm@linux-foundation.org>
LKML-Reference: <4A026540.8060504@kernel.org>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
16 years agox86: Allow 1MB of slack between the e820 map and SRAT, not 4GB
Yinghai Lu [Fri, 8 May 2009 07:37:34 +0000 (00:37 -0700)]
x86: Allow 1MB of slack between the e820 map and SRAT, not 4GB

It is expected that there might be slight differences between the e820
map and the SRAT table and the intention was that 1MB of slack be allowed.

The calculation comparing e820ram and pxmram assumes the units are bytes,
when they are in fact pages. This means 4GB of slack is being allowed,
not 1MB. This patch makes the correct comparison.

comment is from Mel.

[ Impact: don't accept buggy SRATs that could dump up to 4G of RAM ]

Signed-off-by: Yinghai Lu <yinghai@kernel.org>
Acked-by: Mel Gorman <mel@csn.ul.ie>
Cc: Andrew Morton <akpm@linux-foundation.org>
LKML-Reference: <4A03E13E.6050107@kernel.org>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
16 years agox86: Sanity check the e820 against the SRAT table using e820 map only
Yinghai Lu [Fri, 8 May 2009 07:36:44 +0000 (00:36 -0700)]
x86: Sanity check the e820 against the SRAT table using e820 map only

node_cover_memory() sanity checks the SRAT table by ensuring that all
PXMs cover the memory reported in the e820.

However, when calculating the size of the holes in the e820, it uses
the early_node_map[] which contains information taken from both SRAT
and e820. If the SRAT is missing an entry, then it is not detected
that the SRAT table is incorrect and missing entries.

This patch uses the e820 map to calculate the holes instead of
early_node_map[].

comment is from Mel.

[ Impact: reject incorrect SRAT tables ]

Signed-off-by: Yinghai Lu <yinghai@kernel.org>
Acked-by: Mel Gorman <mel@csn.ul.ie>
Cc: Andrew Morton <akpm@linux-foundation.org>
LKML-Reference: <4A03E10C.60906@kernel.org>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
16 years agox86: read apic ID in the !acpi_lapic case
Yinghai Lu [Sat, 2 May 2009 17:40:57 +0000 (10:40 -0700)]
x86: read apic ID in the !acpi_lapic case

Ed found that on 32-bit, boot_cpu_physical_apicid is not read right,
when the mptable is broken.

Interestingly, actually three paths use/set it:

 1. acpi: at that time that is already read from reg
 2. mptable: only read from mptable
 3. no madt, and no mptable, that use default apic id 0 for 64-bit, -1 for 32-bit

so we could read the apic id for the 2/3 path. We trust the hardware
register more than we trust a BIOS data structure (the mptable).

We can also avoid the double set_fixmap() when acpi_lapic
is used, and also need to move cpu_has_apic earlier and
call apic_disable().

Also when need to update the apic id, we'd better read and
set the apic version as well - so that quirks are applied precisely.

v2: make path 3 with 64bit, use -1 as apic id, so could read it later.
v3: fix whitespace problem pointed out by Ed Swierk

[ Impact: get correct apic id for bsp other than acpi path ]

Reported-by: Ed Swierk <eswierk@aristanetworks.com>
Signed-off-by: Yinghai Lu <yinghai@kernel.org>
Acked-by: Cyrill Gorcunov <gorcunov@openvz.org>
LKML-Reference: <49FC85A9.2070702@kernel.org>
[ v4: sanity-check in the ACPI case too ]
Signed-off-by: Ingo Molnar <mingo@elte.hu>
16 years agox86: clean up and and print out initial max_pfn_mapped
Yinghai Lu [Sun, 10 May 2009 06:47:42 +0000 (23:47 -0700)]
x86: clean up and and print out initial max_pfn_mapped

Do this so we can check the range that is mapped before
init_memory_mapping().

To be able to print out meaningful info, we first have to fix
64-bit to have max_pfn_mapped assigned before that call. This
also unifies the code-path a bit.

[ Impact: print more debug info, cleanup ]

Signed-off-by: Yinghai Lu <yinghai@kernel.org>
LKML-Reference: <49BF0978.40605@kernel.org>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
16 years agox86: clean up and fix setup_clear/force_cpu_cap handling
Yinghai Lu [Sun, 10 May 2009 06:47:42 +0000 (23:47 -0700)]
x86: clean up and fix setup_clear/force_cpu_cap handling

setup_force_cpu_cap() only have one user (Xen guest code),
but it should not reuse cleared_cpu_cpus, otherwise it
will have problems on SMP.

Need to have a separate cpu_cpus_set array too, for forced-on
flags, beyond the forced-off flags.

Also need to setup handling before all cpus caps are combined.

[ Impact: fix the forced-set CPU feature flag logic ]

Cc: H. Peter Anvin <hpa@linux.intel.com>
Cc: Jeremy Fitzhardinge <jeremy.fitzhardinge@citrix.com>
Cc: Rusty Russell <rusty@rustcorp.com.au>
Signed-off-by: Yinghai Lu <yinghai.lu@kernel.org>
LKML-Reference: <new-submission>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
16 years agox86: apic: Check rev 3 fadt correctly for physical_apic bit
Yinghai Lu [Sun, 10 May 2009 06:47:42 +0000 (23:47 -0700)]
x86: apic: Check rev 3 fadt correctly for physical_apic bit

Impact: fix fadt version checking

FADT2_REVISION_ID has value 3 aka rev 3 FADT. So need to use >= instead
of >, as other places in the code do.

[ Impact: extend scope of APIC boot quirk ]

Signed-off-by: Yinghai Lu <yinghai@kernel.org>
LKML-Reference: <new-submission>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
16 years agoMerge commit 'v2.6.30-rc5' into x86/apic
Ingo Molnar [Mon, 11 May 2009 07:33:06 +0000 (09:33 +0200)]
Merge commit 'v2.6.30-rc5' into x86/apic

Merge reason: this branch was on a .30-rc2 base - sync it up with
              all the latest fixes.

Signed-off-by: Ingo Molnar <mingo@elte.hu>
16 years agox86/pci: remove rounding quirk from e820_setup_gap()
Yinghai Lu [Wed, 6 May 2009 15:07:52 +0000 (08:07 -0700)]
x86/pci: remove rounding quirk from e820_setup_gap()

Now that the e820 code explicitly reserves 'potentially dangerous'
free physical memory address space to protect ACPI stolen RAM,
there's no need for the rounding quirk in the PCI allocator anymore.

Also, this quirk was open-ended iteration that could end up reserving
a lot of free space and potentially breaking drivers - such as the one
reported by Yannick Roehlly <yannick.roehlly@free.fr> where there's
a PCI device with a large memory resource.

So remove it.

[ Impact: make more of the PCI hole available for assigning pci devices ]

Reported-by: Yannick Roehlly <yannick.roehlly@free.fr>
Signed-off-by: Yinghai Lu <yinghai@kernel.org>
Acked-by: Jesse Barnes <jesse.barnes@intel.com>
Cc: Ivan Kokshaysky <ink@jurassic.park.msu.ru>
Cc: Linus Torvalds <torvalds@linux-foundation.org>
Cc: Andrew Morton <akpm@linux-foundation.org>
LKML-Reference: <4A01A7C8.5090701@kernel.org>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
16 years agox86, e820, pci: reserve extra free space near end of RAM
Linus Torvalds [Wed, 6 May 2009 15:06:44 +0000 (08:06 -0700)]
x86, e820, pci: reserve extra free space near end of RAM

The point is to take all RAM resources we have, and
_after_ we've added all the resources we've seen in
the E820 tree, we then _also_ try to add fake reserved
entries for any "round up to X" at the end of the RAM
resources.

[ Impact: improve PCI mem-resource allocation robustness, protect "stolen RAM" ]

Reported-by: Yannick Roehlly <yannick.roehlly@free.fr>
Acked-by: Jesse Barnes <jesse.barnes@intel.com>
Signed-off-by: Yinghai Lu <yinghai@kernel.org>
Cc: Ivan Kokshaysky <ink@jurassic.park.msu.ru>
Cc: Andrew Morton <akpm@linux-foundation.org>
Cc: yannick.roehlly@free.fr
LKML-Reference: <4A01A784.2050407@kernel.org>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
16 years agoMerge commit 'v2.6.30-rc5' into x86/mm
Ingo Molnar [Mon, 11 May 2009 07:33:06 +0000 (09:33 +0200)]
Merge commit 'v2.6.30-rc5' into x86/mm

Merge reason: this branch was on a .30-rc2 base - sync it up with
              all the latest fixes.

Signed-off-by: Ingo Molnar <mingo@elte.hu>
16 years agoMerge git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/staging-2.6
Linus Torvalds [Sun, 10 May 2009 17:49:53 +0000 (10:49 -0700)]
Merge git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/staging-2.6

* git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/staging-2.6:
  Staging: comedi: David doesn't want to get comedi patches
  Staging: rtl8187se: Fix compilation warnings and procfs directory leak
  Staging: rt2870: new device id
  Staging: w35und: unregister device from the ieee80211 stack upon ->disconnect()

16 years agoMerge git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/usb-2.6
Linus Torvalds [Sun, 10 May 2009 17:49:41 +0000 (10:49 -0700)]
Merge git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/usb-2.6

* git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/usb-2.6:
  usb-serial: ftdi_sio: fix reference counting of ftdi_private
  USB: unusual_devs: extend nokia 6288 bcd range
  USB: Gadget: fix UTF conversion in the usbstring library
  USB: Fix makefile so that CONFIG_WDM and CONFIG_TMC work.
  USB: ftdi_sio: add vendor/product id for the Marvell SheevaPlug
  USB: cxacru: Fix negative dB output

16 years agoMerge git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/driver-core-2.6
Linus Torvalds [Sun, 10 May 2009 17:49:31 +0000 (10:49 -0700)]
Merge git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/driver-core-2.6

* git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/driver-core-2.6:
  Revert driver core: move platform_data into platform_device
  Revert driver core: fix passing platform_data
  Remove old PRINTK_DEBUG config item
  Doc/sysfs-rules: Swap the order of the words so the sentence makes more sense
  Driver core: platform: fix kernel-doc warnings

16 years agoMerge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/viro/vfs-2.6
Linus Torvalds [Sun, 10 May 2009 17:49:08 +0000 (10:49 -0700)]
Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/viro/vfs-2.6

* 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/viro/vfs-2.6: (22 commits)
  Fix the race between capifs remount and node creation
  Fix races around the access to ->s_options
  switch ufs directories to ufs_sync_file()
  Switch open_exec() and sys_uselib() to do_open_filp()
  Make open_exec() and sys_uselib() use may_open(), instead of duplicating its parts
  Reduce path_lookup() abuses
  Make checkpatch.pl shut up on fs/inode.c
  NULL noise in fs/super.c:kill_bdev_super()
  romfs: cleanup romfs_fs.h
  ROMFS: romfs_dev_read() error ignored
  fs: dcache fix LRU ordering
  ocfs2: Use nd_set_link().
  Fix deadlock in ipathfs ->get_sb()
  Fix a leak in failure exit in 9p ->get_sb()
  Convert obvious places to deactivate_locked_super()
  New helper: deactivate_locked_super()
  reiserfs: remove privroot hiding in lookup
  reiserfs: dont associate security.* with xattr files
  reiserfs: fixup xattr_root caching
  Always lookup priv_root on reiserfs mount and keep it
  ...

16 years agoMerge git://git.kernel.org/pub/scm/linux/kernel/git/steve/gfs2-2.6-fixes
Linus Torvalds [Sun, 10 May 2009 17:47:18 +0000 (10:47 -0700)]
Merge git://git.kernel.org/pub/scm/linux/kernel/git/steve/gfs2-2.6-fixes

* git://git.kernel.org/pub/scm/linux/kernel/git/steve/gfs2-2.6-fixes:
  GFS2: Fix glock ref counting bug

16 years agoMerge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tiwai/sound-2.6
Linus Torvalds [Sun, 10 May 2009 17:47:07 +0000 (10:47 -0700)]
Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tiwai/sound-2.6

* 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tiwai/sound-2.6:
  ALSA: hda - Fix line-in on Mac Mini Core2 Duo
  ALSA: Release v1.0.20
  sound: via82xx: fix DXS volume range
  sound: serial-u16550: fix buffer overflow
  ASoC: Fix errors in WM8990

16 years agoMerge branch 'for_linus' of git://git.kernel.org/pub/scm/linux/kernel/git/mchehab...
Linus Torvalds [Sun, 10 May 2009 17:46:58 +0000 (10:46 -0700)]
Merge branch 'for_linus' of git://git.kernel.org/pub/scm/linux/kernel/git/mchehab/linux-2.6

* 'for_linus' of git://git.kernel.org/pub/scm/linux/kernel/git/mchehab/linux-2.6:
  V4L/DVB (11680): cafe_ccic: use = instead of == for setting a value at a var
  V4L/DVB (11679): cafe_ccic: fix sensor detection
  V4L/DVB (11675): ivtv/radio: fix V4L2_TUNER_MODE/V4L2_TUNER_SUB confusion
  V4L/DVB (11674): ivtv: fix incorrect bit tests
  V4L/DVB (11669): uvc: fix compile warning
  V4L/DVB (11668): ivtv: fix compiler warning.
  V4L/DVB (11664): cx23885: Frontend wasn't locking on HVR-1500
  V4L/DVB (11662): v4l2-ioctl: Clear buffer type specific trailing fields/padding
  V4L/DVB (11661): v4l2-ioctl: Check buffer types using g_fmt instead of try_fmt
  V4L/DVB (11660): zoran: fix bug when enumerating format -1
  V4L/DVB (11575): uvcvideo: fix uvc resume failed

16 years agoMerge git://git.kernel.org/pub/scm/linux/kernel/git/davem/net-2.6
Linus Torvalds [Sun, 10 May 2009 17:46:45 +0000 (10:46 -0700)]
Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/net-2.6

* git://git.kernel.org/pub/scm/linux/kernel/git/davem/net-2.6: (26 commits)
  bonding: fix panic if initialization fails
  IXP4xx: complete Ethernet netdev setup before calling register_netdev().
  IXP4xx: use "ENODEV" instead of "ENOSYS" in module initialization.
  ipvs: Fix IPv4 FWMARK virtual services
  ipv4: Make INET_LRO a bool instead of tristate.
  net: remove stale reference to fastroute from Kconfig help text
  net: update skb_recycle_check() for hardware timestamping changes
  bnx2: Fix panic in bnx2_poll_work().
  net-sched: fix bfifo default limit
  igb: resolve panic on shutdown when SR-IOV is enabled
  wimax: oops: wimax_dev_add() is the only one that can initialize the state
  wimax: fix oops if netlink fails to add attribute
  Bluetooth: Move dev_set_name() to a context that can sleep
  netfilter: ctnetlink: fix wrong message type in user updates
  netfilter: xt_cluster: fix use of cluster match with 32 nodes
  netfilter: ip6t_ipv6header: fix match on packets ending with NEXTHDR_NONE
  netfilter: add missing linux/types.h include to xt_LED.h
  mac80211: pid, fix memory corruption
  mac80211: minstrel, fix memory corruption
  cfg80211: fix comment on regulatory hint processing
  ...

16 years agoMerge branch 'fix/asoc' into for-linus
Takashi Iwai [Sun, 10 May 2009 10:06:59 +0000 (12:06 +0200)]
Merge branch 'fix/asoc' into for-linus

* fix/asoc:
  ASoC: Fix errors in WM8990

16 years agoMerge branch 'fix/hda' into for-linus
Takashi Iwai [Sun, 10 May 2009 10:06:55 +0000 (12:06 +0200)]
Merge branch 'fix/hda' into for-linus

* fix/hda:
  ALSA: hda - Fix line-in on Mac Mini Core2 Duo

16 years agoMerge branch 'topic/misc' into for-linus
Takashi Iwai [Sun, 10 May 2009 10:06:08 +0000 (12:06 +0200)]
Merge branch 'topic/misc' into for-linus

* topic/misc:
  ALSA: Release v1.0.20

16 years agoMerge branch 'fix/misc' into for-linus
Takashi Iwai [Sun, 10 May 2009 10:05:53 +0000 (12:05 +0200)]
Merge branch 'fix/misc' into for-linus

* fix/misc:
  sound: via82xx: fix DXS volume range
  sound: serial-u16550: fix buffer overflow

16 years agox86: Fix false positive section mismatch warnings in the apic code
Sam Ravnborg [Sat, 9 May 2009 09:35:10 +0000 (15:35 +0600)]
x86: Fix false positive section mismatch warnings in the apic code

[ Impact: reduce kernel image size a bit, annotate away warnings ]

Signed-off-by: Sam Ravnborg <sam@ravnborg.org>
[ modified and tested it ]
Signed-off-by: Rakib Mullick <rakib.mullick@gmail.com>
Cc: Marcin Slusarz <marcin.slusarz@gmail.com>
LKML-Reference: <b9df5fa10905090235s4bfd26a8o979f93809c9727ad@mail.gmail.com>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
16 years agoperf_counter tools: fix buffer overwrite problem for perf top command
Erdem Aktas [Sun, 10 May 2009 06:13:19 +0000 (02:13 -0400)]
perf_counter tools: fix buffer overwrite problem for perf top command

There is a buffer overwrite problem in builtin-top.c line 526, When I
tried to use ./perf top command, it was giving memory corruption
problem.

[ Impact: fix 'perf top' crash ]

LKML-Reference: <3fee128b0905092313x608e65e0l7b1116d86914114f@mail.gmail.com>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
16 years agoV4L/DVB (11680): cafe_ccic: use = instead of == for setting a value at a var
Mauro Carvalho Chehab [Tue, 5 May 2009 11:08:38 +0000 (08:08 -0300)]
V4L/DVB (11680): cafe_ccic: use = instead of == for setting a value at a var

/home/v4l/master/v4l/cafe_ccic.c: In function 'cafe_cam_init':
/home/v4l/master/v4l/cafe_ccic.c:778: warning: statement with no effect

Cc: Hans Verkuil <hverkuil@xs4all.nl>
Cc: saeed bishara <saeed.bishara@gmail.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
16 years agoV4L/DVB (11679): cafe_ccic: fix sensor detection
Hans Verkuil [Sun, 3 May 2009 07:58:04 +0000 (04:58 -0300)]
V4L/DVB (11679): cafe_ccic: fix sensor detection

Due to an uninitialized chip.ident field the chip identification failed.

Thanks-to: Saeed Bishara <saeed.bishara@gmail.com>
Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
16 years agoV4L/DVB (11675): ivtv/radio: fix V4L2_TUNER_MODE/V4L2_TUNER_SUB confusion
Hans Verkuil [Sat, 2 May 2009 14:52:35 +0000 (11:52 -0300)]
V4L/DVB (11675): ivtv/radio: fix V4L2_TUNER_MODE/V4L2_TUNER_SUB confusion

V4L2_TUNER_MODE_ was used in a few places where V4L2_TUNER_SUB_ should have
been used.

Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
16 years agoV4L/DVB (11674): ivtv: fix incorrect bit tests
Hans Verkuil [Sat, 2 May 2009 14:10:23 +0000 (11:10 -0300)]
V4L/DVB (11674): ivtv: fix incorrect bit tests

Found the coccinelle tool.

Thanks-to: Julia Lawall <julia@diku.dk>
Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>