30 Jan, 2008
2 commits
-
The fields found in lguest_arch are not really per-guest,
but per-cpu (gdt, idt, etc). So this patch turns lguest_arch
into lg_cpu_arch.It makes sense to have a per-guest per-arch struct, but this
can be addressed later, when the need arrives.Signed-off-by: Glauber de Oliveira Costa
Signed-off-by: Rusty Russell -
Reboot Implemented
(Prevent fd leak, fix style and fix documentation --RR)
Signed-off-by: Balaji Rao
Signed-off-by: Rusty Russell
29 Jan, 2008
1 commit
-
Remove the deprecated __attribute_used__.
[Introduce __section in a few places to silence checkpatch /sam]
Signed-off-by: Adrian Bunk
Signed-off-by: Sam Ravnborg
26 Jan, 2008
1 commit
-
Use HR-timers (when available) to deliver an accurate preemption tick.
The regular scheduler tick that runs at 1/HZ can be too coarse when nice
level are used. The fairness system will still keep the cpu utilisation 'fair'
by then delaying the task that got an excessive amount of CPU time but try to
minimize this by delivering preemption points spot-on.The average frequency of this extra interrupt is sched_latency / nr_latency.
Which need not be higher than 1/HZ, its just that the distribution within the
sched_latency period is important.Signed-off-by: Peter Zijlstra
Signed-off-by: Ingo Molnar
15 Jan, 2008
1 commit
-
Since the msr.h header uses types like __u32, it should pull in linux/types.h.
[ mingo@elte.hu: affects user-space that includes this header. We dont
actually like user-space including raw kernel headers but it's a
longstanding practice and it's easy for the kernel to be nice about
this. ]Signed-off-by: Mike Frysinger
Signed-off-by: Thomas Gleixner
Signed-off-by: Ingo Molnar
02 Jan, 2008
2 commits
-
Use __asm__ and __volatile__ in code that is exported to userspace. Wrap
kernel functions with __KERNEL__ so they get scrubbed.No code changed:
text data bss dec hex filename
9681036 1698924 3407872 14787832 e1a4f8 vmlinux.before
9681036 1698924 3407872 14787832 e1a4f8 vmlinux.afterSigned-off-by: Mike Frysinger
Signed-off-by: Ingo Molnar
Signed-off-by: Thomas Gleixner -
Since asm-x86/byteorder.h is exported to userspace, use __asm__ rather than
asm in its code.Signed-Off-By: Mike Frysinger
Signed-off-by: Ingo Molnar
Signed-off-by: Thomas Gleixner
19 Dec, 2007
2 commits
-
The patch introducing this left out 64-bit x86 despite it also having
extra entries.this solves Xen guest troubles.
Signed-off-by: Jan Beulich
Signed-off-by: Ingo Molnar
Signed-off-by: Thomas Gleixner -
jprobe for x86-64 may cause kernel page fault when the jprobe_return()
is called from incorrect function.- Use jprobe_saved_regs instead getting it from stack.
(Especially on x86-64, it may get incorrect data, because
pt_regs can not be get by using container_of(rsp))
- Change the type of stack pointer to unsigned long *.Signed-off-by: Masami Hiramatsu
Signed-off-by: Ingo Molnar
Signed-off-by: Thomas Gleixner
04 Dec, 2007
1 commit
-
If HPET was enabled by pci quirks, we use i8253 as initial clockevent
because pci quirks doesn't run until pci is initialized.The above means the kernel (or something) is assuming HPET legacy
replacement is disabled and can use i8253 at boot.If we used kexec, it isn't true. So, this patch disables HPET legacy
replacement for kexec in machine_shutdown().Signed-off-by: OGAWA Hirofumi
Acked-by: Venkatesh Pallipadi
Signed-off-by: Ingo Molnar
Signed-off-by: Thomas Gleixner
27 Nov, 2007
2 commits
-
ACPI processor idle code references local_apic_timer_c2_ok, which
is not available when LOCAL_APIC is disabled.Define local_apic_timer_c2_ok as a constant, when LOCAL_APIC=n
Signed-off-by: Thomas Gleixner
Signed-off-by: Ingo Molnar -
AMD Opteron processors before CG revision don't like C-states > 1.
This solves the long standing bugzilla #5303 and probably some more
on affected machines:http://bugzilla.kernel.org/show_bug.cgi?id=5303
[ tglx@linutronix.de: reworked the patch so it does not wreck ia64 ]
Signed-off-by: Thomas Gleixner
Signed-off-by: Ingo Molnar
17 Nov, 2007
3 commits
-
Attempt to fix http://bugzilla.kernel.org/show_bug.cgi?id=8378
Hiroto Shibuya wrote to tell me that he has a VIA EPIA-EK10000 which
suffers from the reboot problem when no keyboard is attached. My first
patch works for him:http://git.kernel.org/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commit;h=59f4e7d572980a521b7bdba74ab71b21f5995538
But the latest patch does not work for him :
http://git.kernel.org/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commit;h=8b93789808756bcc1e5c90c99f1b1ef52f839a51
We found that it was necessary to also set the "disable keyboard" flag in
the command byte, as the first patch was doing. The second patch tries to
minimally modify the command byte, but it is not enough.Please consider this simple one-line patch to help people with low end VIA
motherboards reboot when no keyboard is attached. Hiroto Shibuya has
verified that this works for him (as I no longer have an afflicted
machine).Additional discussion:
Note that original patch from Truxton DOES
disable keyboard and this has been in main tree since 2.6.14, thus it must have
quite a bit of air time already.http://git.kernel.org/?p=linux/kernel/git/stable/linux-2.6.14.y.git;a=commit;h=59f4e7d572980a521b7bdba74ab71b21f5995538
Note that he only mention "System flag" in the description and comment, but
in the code, "disable keyboard" flag is set.outb(0x14, 0x60); /* set "System flag" */
In 2.6.23, he made a change to read the current byte and then mask the flags,
but along this change, he only set the "System flag" and dropped the setting
of "disable keyboard" flag.http://git.kernel.org/?p=linux/kernel/git/stable/linux-2.6.23.y.git;a=commit;h=8b93789808756bcc1e5c90c99f1b1ef52f839a51
outb(cmd | 0x04, 0x60); /* set "System flag" */
So my request is to restore the setting of disable keyboard flag which has been
there since 2.6.14 but disappeared in 2.6.23.Cc: Lee Garrett
Cc: "Hiroto Shibuya"
Cc: Natalie Protasevich
Cc: Dmitry Torokhov
Cc: Ingo Molnar
Cc: "H. Peter Anvin"
Cc: Aristeu Rozanski
Cc:
Signed-off-by: Andrew Morton
Signed-off-by: Thomas Gleixner -
Fix header file name for Voyager build.
In file included from arch/x86/kernel/setup_32.c:61:
include/asm-x86/mach-voyager/setup_arch.h:2:26: error: asm/setup_32.h: No such file or directory
make[1]: *** [arch/x86/kernel/setup_32.o] Error 1Signed-off-by: Randy Dunlap
Signed-off-by: Thomas Gleixner -
es7000_check_dst() contains a memcpy from 0, which probably should have been
a memset. Remove it and check the retunr value from acpi_get_table_header.Noticed by: Joe Perches
Signed-off-by: Thomas Gleixner
15 Nov, 2007
1 commit
-
x86 32-bit isn't saving the stack pointer to pt_regs->esp when an
interrupt occurs.Signed-off-by: Jan Blunck
Tested-by: Robert Fitzsimons
Cc: Andi Kleen
Cc: Ingo Molnar
Cc: Thomas Gleixner
Cc: Philippe Elie
Signed-off-by: Andrew Morton
Signed-off-by: Linus Torvalds
13 Nov, 2007
1 commit
-
restore sigcontext is taking a DNA exception while restoring FP context
from the user stack, during the sigreturn. Appended patch fixes it by
doing clts() if the app doesn't touch FP during the signal handler
execution. This will stop generating a DNA, during the fxrstor in the
sigreturn.This improves 64-bit lat_sig numbers by ~30% on my core2 platform.
Signed-off-by: Suresh Siddha
Signed-off-by: Linus Torvalds
10 Nov, 2007
1 commit
-
Use struct boot_params instead of PARAM + 0xoffsets.
Fixes one of many Voyager build problems.arch/x86/kernel/setup_32.c:543: error: 'PARAM' undeclared (first use in this function)
Signed-off-by: Randy Dunlap
Cc: James Bottomley
Signed-off-by: Andrew Morton
Signed-off-by: Ingo Molnar
Signed-off-by: Thomas Gleixner
05 Nov, 2007
1 commit
-
async_hcall() can become static.
Signed-off-by: Adrian Bunk
Signed-off-by: Rusty Russell
04 Nov, 2007
1 commit
-
…git/peterz/linux-2.6-lockdep
* 'v2.6.24-rc1-lockdep' of git://git.kernel.org/pub/scm/linux/kernel/git/peterz/linux-2.6-lockdep:
lockdep: fix a typo in the __lock_acquire comment
sched: fix unconditional irq lock
lockdep: fixup irq tracing
30 Oct, 2007
3 commits
-
This patch renames the 4 symbols iommu_hole_init(), iommu_aperture,
iommu_aperture_allowed, iommu_aperture_disabled. All these symbols are only
used for the GART implementation of IOMMUs.It adds and additional gart_ prefix to them.
Signed-off-by: Joerg Roedel
Signed-off-by: Ingo Molnar
Signed-off-by: Thomas Gleixner -
This patch renames the IOMMU config option to GART_IOMMU because in fact it
means the GART and not general support for an IOMMU on x86.Signed-off-by: Joerg Roedel
Acked-by: Muli Ben-Yehuda
Signed-off-by: Ingo Molnar
Signed-off-by: Thomas Gleixner -
This patch renames the include file asm-x86/iommu.h to asm-x86/gart.h to make
clear to which IOMMU implementation it belongs. The patch also adds "GART" to
the Kconfig line.Signed-off-by: Joerg Roedel
Acked-by: Muli Ben-Yehuda
Signed-off-by: Ingo Molnar
Signed-off-by: Thomas Gleixner
28 Oct, 2007
1 commit
-
This reverts commit 6442eea937ef797d4b66733f49c82e2fdc2aca6f.
The patch breaks smp_ops and needs to be reverted. The solution to
allow modular build of KVM is to export smp_ops instead.Pointed-out-by: James Bottomley
tglx, so write out 100 times "voyager is a useful architecture" ...
yes, SirSigned-off-by: Thomas Gleixner
Signed-off-by: Ingo Molnar
26 Oct, 2007
2 commits
-
Coding style cleanups:
- change __inline__ to inline;
- drop space in "* addr" parameters;
- drop space between func. name and '('The "volatile" keywords are correct according to email from one
Linus Torvalds.[Several other arches need some of this also.]
Signed-off-by: Randy Dunlap
Signed-off-by: Linus Torvalds -
Use duplicated inline functions for test_and_set_bit_lock() on x86
instead of #define macros, thus avoiding a bad example. This allows
kernel-doc to run cleanly instead of terminating with an error:Error(linux-2.6.24-rc1//include/asm-x86/bitops_32.h:188): cannot understand prototype: 'test_and_set_bit_lock test_and_set_bit '
Signed-off-by: Randy Dunlap
Signed-off-by: Linus Torvalds
25 Oct, 2007
2 commits
-
Ensure we fixup the IRQ state before we hit any locking code.
Signed-off-by: Peter Zijlstra
Signed-off-by: Ingo Molnar -
Went through the documentation doing typo and content fixes. This
patch contains only comment and whitespace changes.Signed-off-by: Rusty Russell
24 Oct, 2007
12 commits
-
Make usable by the boot code.
Clean up vestiges of the old command-line protocol from setup.h and
head_32.S (it is still supported from the boot loader point of
view, since it is converted to the new command-line protocol by the
boot code.)Signed-off-by: H. Peter Anvin
Signed-off-by: Thomas Gleixner -
During hibernation and suspend on x86_64 save CPU registers in the saved_context
structure rather than in a handful of separate variables.Signed-off-by: Rafael J. Wysocki
Signed-off-by: Ingo Molnar
Signed-off-by: Thomas Gleixner -
Signed-off-by: Ingo Molnar
Signed-off-by: Thomas Gleixner -
Signed-off-by: Ingo Molnar
Signed-off-by: Thomas Gleixner -
Signed-off-by: Brian Gerst
-
Signed-off-by: Ingo Molnar
Signed-off-by: Thomas Gleixner -
Signed-off-by: Ingo Molnar
Signed-off-by: Thomas Gleixner -
Signed-off-by: Ingo Molnar
Signed-off-by: Thomas Gleixner -
Signed-off-by: Ingo Molnar
Signed-off-by: Thomas Gleixner -
Signed-off-by: Ingo Molnar
Signed-off-by: Thomas Gleixner -
Signed-off-by: Ingo Molnar
Signed-off-by: Thomas Gleixner -
Signed-off-by: Ingo Molnar
Signed-off-by: Thomas Gleixner