1. 10 Jul, 2007 21 commits
  2. 09 Jul, 2007 2 commits
    • Ingo Molnar's avatar
      sched: x86, track TSC-unstable events · bb29ab26
      Ingo Molnar authored
      track TSC-unstable events and propagate it to the scheduler code.
      Also allow sched_clock() to be used when the TSC is unstable,
      the rq_clock() wrapper creates a reliable clock out of it.
      Signed-off-by: default avatarIngo Molnar <mingo@elte.hu>
    • Ingo Molnar's avatar
      sched: zap the migration init / cache-hot balancing code · 0437e109
      Ingo Molnar authored
      the SMP load-balancer uses the boot-time migration-cost estimation
      code to attempt to improve the quality of balancing. The reason for
      this code is that the discrete priority queues do not preserve
      the order of scheduling accurately, so the load-balancer skips
      tasks that were running on a CPU 'recently'.
      this code is fundamental fragile: the boot-time migration cost detector
      doesnt really work on systems that had large L3 caches, it caused boot
      delays on large systems and the whole cache-hot concept made the
      balancing code pretty undeterministic as well.
      (and hey, i wrote most of it, so i can say it out loud that it sucks ;-)
      under CFS the same purpose of cache affinity can be achieved without
      any special cache-hot special-case: tasks are sorted in the 'timeline'
      tree and the SMP balancer picks tasks from the left side of the
      tree, thus the most cache-cold task is balanced automatically.
      Signed-off-by: default avatarIngo Molnar <mingo@elte.hu>
  3. 07 Jul, 2007 1 commit
  4. 06 Jul, 2007 9 commits
    • Andres Salomon's avatar
      GEODE: reboot fixup for geode machines with CS5536 boards · 95069f89
      Andres Salomon authored
      Writing to MSR 0x51400017 forces a hard reset on CS5536-based machines,
      this has the reboot fixup do just that if such a board is detected.
      Acked-by: default avatarJordan Crouse <jordan.crouse@amd.com>
      Signed-off-by: default avatarAndres Salomon <dilinger@debian.org>
      Cc: Alan Cox <alan@lxorguk.ukuu.org.uk>
      Cc: Andi Kleen <ak@suse.de>
      Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
      Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
    • Vivek Goyal's avatar
      i386: es7000 build breakage fix · 071922c0
      Vivek Goyal authored
      o Commit 1833d6bc
       broke the build if
        compiled with CONFIG_ES7000=y and CONFIG_X86_GENERICARCH=n
      arch/i386/kernel/built-in.o(.init.text+0x4fa9): In function `acpi_parse_madt':
      : undefined reference to `acpi_madt_oem_check'
      arch/i386/kernel/built-in.o(.init.text+0x7406): In function `smp_read_mpc':
      : undefined reference to `mps_oem_check'
      arch/i386/kernel/built-in.o(.init.text+0x8990): In function
      : undefined reference to `enable_apic_mode'
      make: *** [.tmp_vmlinux1] Error 1
      o Fix the build issue. Provided the definitions of missing functions.
      o Don't have ES7000 machine. Only compile tested.
      Cc: Len Brown <lenb@kernel.org>
      Cc: Natalie Protasevich <protasnb@gmail.com>
      Cc: Roland Dreier <rolandd@cisco.com>
      Cc: Andi Kleen <ak@suse.de>
      Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
      Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
    • Loic Prylli's avatar
      MTRR: Fix race causing set_mtrr to go into infinite loop · d25c1ba2
      Loic Prylli authored
      Processors synchronization in set_mtrr requires the .gate field to be set
      after .count field is properly initialized.  Without an explicit barrier,
      the compiler was reordering those memory stores.  That was sometimes
      causing a processor (in ipi_handler) to see the .gate change and decrement
      .count before the latter is set by set_mtrr() (which then hangs in a
      infinite loop with irqs disabled).
      Signed-off-by: default avatarLoic Prylli <loic@myri.com>
      Cc: Andi Kleen <ak@suse.de>
      Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
      Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
    • Jason Wessel's avatar
      i386: fix regression, endless loop in ptrace singlestep over an int80 · 1e2e99f0
      Jason Wessel authored
      The commit 635cf99a
       introduced a
      regression.  Executing a ptrace single step after certain int80
      accesses will infinitely loop and never advance the PC.
      The TIF_SINGLESTEP check should be done on the return from the syscall
      and not before it.
      I loops on each single step on the pop right after the int80 which writes out
      to the console.  At that point you can issue as many single steps as you want
      and it will not advance any further.
      The test case is below:
      /* Test whether singlestep through an int80 syscall works.
      #define _GNU_SOURCE
      #include <stdio.h>
      #include <unistd.h>
      #include <fcntl.h>
      #include <sys/ptrace.h>
      #include <sys/wait.h>
      #include <sys/mman.h>
      #include <asm/user.h>
      #include <string.h>
      static int child, status;
      static struct user_regs_struct regs;
      static void do_child()
      	char str[80] = "child: int80 test\n";
      	ptrace(PTRACE_TRACEME, 0, 0, 0);
      	kill(getpid(), SIGUSR1);
      	asm ("int $0x80" : : "a" (20)); /* getpid */
      static void do_parent()
      	unsigned long eip, expected = 0;
      	waitpid(child, &status, 0);
      	if (WIFEXITED(status) || WIFSIGNALED(status))
      	if (WIFSTOPPED(status)) {
      		ptrace(PTRACE_GETREGS, child, 0, &regs);
      		eip = regs.eip;
      		if (expected)
      			fprintf(stderr, "child stop @ %08lx, expected %08lx %s\n",
      					eip, expected,
      					eip == expected ? "" : " <== ERROR");
      		if (*(unsigned short *)eip == 0x80cd) {
      			fprintf(stderr, "int 0x80 at %08x\n", (unsigned int)eip);
      			expected = eip + 2;
      		} else
      			expected = 0;
      		ptrace(PTRACE_SINGLESTEP, child, NULL, NULL);
      	goto again;
      int main(int argc, char * const argv[])
      	child = fork();
      	if (child)
      	return 0;
      Signed-off-by: default avatarJason Wessel <jason.wessel@windriver.com>
      Cc: Jeremy Fitzhardinge <jeremy@goop.org>
      Cc: <stable@kernel.org>
      Cc: Chuck Ebbert <76306.1226@compuserve.com>
      Acked-by: default avatarAndi Kleen <ak@suse.de>
      Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
      Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
    • Ralf Baechle's avatar
      [MIPS] Fix scheduling latency issue on 24K, 34K and 74K cores · 4b3e975e
      Ralf Baechle authored
      The idle loop goes to sleep using the WAIT instruction if !need_resched().
      This has is suffering from from a race condition that if if just after
      need_resched has returned 0 an interrupt might set TIF_NEED_RESCHED but
      we've just completed the test so go to sleep anyway.  This would be
      trivial to fix by just disabling interrupts during that sequence as in:
              if (!need_resched())
      but the processor architecture leaves it undefined if a processor calling
      WAIT with interrupts disabled will ever restart its pipeline and indeed
      some processors have made use of the freedom provided by the architecture
      definition.  This has been resolved and the Config7.WII bit indicates that
      the use of WAIT is safe on 24K, 24KE and 34K cores.  It also is safe on
      74K starting revision 2.1.0 so enable the use of WAIT with interrupts
      disabled for 74K based on a c0_prid of at least that.
      Signed-off-by: default avatarRalf Baechle <ralf@linux-mips.org>
    • Ralf Baechle's avatar
      [MIPS] SMTC: Fix cut'n'paste bug in Kconfig.debug · 9349075a
      Ralf Baechle authored
      This effectivly turned the SMTC_IDLE_HOOK_DEBUG debug option into a no-op.
      Signed-off-by: default avatarRalf Baechle <ralf@linux-mips.org>
    • Ralf Baechle's avatar
      [MIPS] Change libgcc-style functions from lib-y to obj-y · f7c27781
      Ralf Baechle authored
      Reported by Eugene Surovegin <ebs@ebshome.net>.
      If only modules were users of these functions they did not get linked into
      the kernel proper, so later module loads would fail as well.
      Signed-off-by: default avatarRalf Baechle <ralf@linux-mips.org>
    • Chris Dearman's avatar
    • Ralf Baechle's avatar
      [MIPS] AP/SP: Avoid triggering the 34K E125 performance issue · 6fb88ce0
      Ralf Baechle authored
      C0_status doesn't need to be initialized at this point anyway; the register
      will be initialized later.
      Signed-off-by: default avatarRalf Baechle <ralf@linux-mips.org>
  5. 05 Jul, 2007 1 commit
  6. 04 Jul, 2007 2 commits
  7. 03 Jul, 2007 3 commits
  8. 02 Jul, 2007 1 commit