1. 06 8月, 2006 1 次提交
  2. 04 8月, 2006 1 次提交
  3. 03 8月, 2006 2 次提交
  4. 01 8月, 2006 10 次提交
    • M
      [CPUFREQ] return error when failing to set minfreq · 9c9a43ed
      Mattia Dongili 提交于
      I just stumbled on this bug/feature, this is how to reproduce it:
      
      # echo 450000 > /sys/devices/system/cpu/cpu0/cpufreq/scaling_min_freq
      # echo 450000 > /sys/devices/system/cpu/cpu0/cpufreq/scaling_max_freq
      # echo powersave > /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor
      # cpufreq-info -p
      450000 450000 powersave
      # echo 1800000 > /sys/devices/system/cpu/cpu0/cpufreq/scaling_min_freq ; echo $?
      0
      # cpufreq-info -p
      450000 450000 powersave
      
      Here it is. The kernel refuses to set a min_freq higher than the
      max_freq but it allows a max_freq lower than min_freq (lowering min_freq
      also).
      
      This behaviour is pretty straightforward (but undocumented) and it
      doesn't return an error altough failing to accomplish the requested
      action (set min_freq).
      The problem (IMO) is basically that userspace is not allowed to set a
      full policy atomically while the kernel always does that thus it must
      enforce an ordering on operations.
      
      The attached patch returns -EINVAL if trying to increase frequencies
      starting from scaling_min_freq and documents the correct ordering of writes.
      Signed-off-by: NMattia Dongili <malattia@linux.it>
      Signed-off-by: Dominik Brodowski <linux at dominikbrodowski.net>
      Signed-off-by: NDave Jones <davej@redhat.com>
      
      --
      9c9a43ed
    • T
      [PATCH] documentation: Documentation/initrd.txt · 0a5eca65
      Thomas Horsley 提交于
      I spent a long time the other day trying to examine an initrd image on a
      fedora core 5 system because the initrd.txt file is apparently obsolete.
      Here is a patch which I hope will reduce future confusion for others.
      Signed-off-by: NThomas Horsley <tom.horsley@ccur.com>
      Signed-off-by: NAndrew Morton <akpm@osdl.org>
      Signed-off-by: NLinus Torvalds <torvalds@osdl.org>
      0a5eca65
    • R
      [PATCH] vDSO hash-style fix · 0b0bf7a3
      Roland McGrath 提交于
      The latest toolchains can produce a new ELF section in DSOs and
      dynamically-linked executables.  The new section ".gnu.hash" replaces
      ".hash", and allows for more efficient runtime symbol lookups by the
      dynamic linker.  The new ld option --hash-style={sysv|gnu|both} controls
      whether to produce the old ".hash", the new ".gnu.hash", or both.  In some
      new systems such as Fedora Core 6, gcc by default passes --hash-style=gnu
      to the linker, so that a standard invocation of "gcc -shared" results in
      producing a DSO with only ".gnu.hash".  The new ".gnu.hash" sections need
      to be dealt with the same way as ".hash" sections in all respects; only the
      dynamic linker cares about their contents.  To work with older dynamic
      linkers (i.e.  preexisting releases of glibc), a binary must have the old
      ".hash" section.  The --hash-style=both option produces binaries that a new
      dynamic linker can use more efficiently, but an old dynamic linker can
      still handle.
      
      The new section runs afoul of the custom linker scripts used to build vDSO
      images for the kernel.  On ia64, the failure mode for this is a boot-time
      panic because the vDSO's PT_IA_64_UNWIND segment winds up ill-formed.
      
      This patch addresses the problem in two ways.
      
      First, it mentions ".gnu.hash" in all the linker scripts alongside ".hash".
       This produces correct vDSO images with --hash-style=sysv (or old tools),
      with --hash-style=gnu, or with --hash-style=both.
      
      Second, it passes the --hash-style=sysv option when building the vDSO
      images, so that ".gnu.hash" is not actually produced.  This is the most
      conservative choice for compatibility with any old userland.  There is some
      concern that some ancient glibc builds (though not any known old production
      system) might choke on --hash-style=both binaries.  The optimizations
      provided by the new style of hash section do not really matter for a DSO
      with a tiny number of symbols, as the vDSO has.  If someone wants to use
      =gnu or =both for their vDSO builds and worry less about that
      compatibility, just change the option and the linker script changes will
      make any choice work fine.
      Signed-off-by: NRoland McGrath <roland@redhat.com>
      Cc: "Luck, Tony" <tony.luck@intel.com>
      Cc: Kyle McMartin <kyle@mcmartin.ca>
      Cc: Paul Mackerras <paulus@samba.org>
      Cc: Benjamin Herrenschmidt <benh@kernel.crashing.org>
      Cc: Jeff Dike <jdike@addtoit.com>
      Cc: Andi Kleen <ak@muc.de>
      Cc: Sam Ravnborg <sam@ravnborg.org>
      Signed-off-by: NAndrew Morton <akpm@osdl.org>
      Signed-off-by: NLinus Torvalds <torvalds@osdl.org>
      0b0bf7a3
    • P
      [PATCH] Typo in ub clause of devices.txt · 953a7f20
      Pete Zaitcev 提交于
      Change "Thrid" into "Third", and realign similarly to other entries.
      Signed-off-by: NPete Zaitcev <zaitcev@redhat.com>
      Cc: <device@lanana.org>
      Signed-off-by: NAndrew Morton <akpm@osdl.org>
      Signed-off-by: NLinus Torvalds <torvalds@osdl.org>
      953a7f20
    • R
      [PATCH] Doc/SubmittingPatches cleanups · bc7455fa
      Randy Dunlap 提交于
      A few cleanups to SubmittingPatches:
      - mention SubmitChecklist
      - remove mention of my simple patch script tools
      - remove last-updated line
      Signed-off-by: NRandy Dunlap <rdunlap@xenotime.net>
      Signed-off-by: NAndrew Morton <akpm@osdl.org>
      Signed-off-by: NLinus Torvalds <torvalds@osdl.org>
      bc7455fa
    • R
      [PATCH] Add DocBook documentation for workqueue functions · 0fcb78c2
      Rolf Eike Beer 提交于
      kernel/workqueue.c was omitted from generating kernel documentation.  This
      adds a new section "Workqueues and Kevents" and adds documentation for some
      of the functions.
      
      Some functions in this file already had DocBook-style comments, now they
      finally become visible.
      Signed-off-by: NRolf Eike Beer <eike-kernel@sf-tec.de>
      Cc: "Randy.Dunlap" <rdunlap@xenotime.net>
      Signed-off-by: NAndrew Morton <akpm@osdl.org>
      Signed-off-by: NLinus Torvalds <torvalds@osdl.org>
      0fcb78c2
    • R
      [PATCH] pci/search: cleanups, add to kernel-api.tmpl · d75763d2
      Randy Dunlap 提交于
      Clean up kernel-doc comments in drivers/pci/search.c (line sizes and typos).
      
      Enable that source file in DocBook/kernel-api.tmpl.
      Signed-off-by: NRandy Dunlap <rdunlap@xenotime.net>
      Signed-off-by: NAndrew Morton <akpm@osdl.org>
      Signed-off-by: NLinus Torvalds <torvalds@osdl.org>
      d75763d2
    • R
      [PATCH] fix kernel-api doc for kernel/resource.c · 2b54960b
      Randy Dunlap 提交于
      insert_resource() was unexported, so kernel-doc needs to be told to search
      kernel/resource.c for internal functions instead of exported functions so that
      it won't report an error.
      Signed-off-by: NRandy Dunlap <rdunlap@xenotime.net>
      Signed-off-by: NAndrew Morton <akpm@osdl.org>
      Signed-off-by: NLinus Torvalds <torvalds@osdl.org>
      2b54960b
    • C
      [PATCH] cpu hotplug: fix hotplug cpu documentation for proper usage · 7c7165c9
      Chandra Seetharaman 提交于
      Update hotplug cpu documentation to clearly state when to use
      register_cpu_notifier() and register_hotcpu_notifier.
      Signed-off-by: NChandra Seetharaman <sekharan@us.ibm.com>
      Signed-off-by: NAndrew Morton <akpm@osdl.org>
      Signed-off-by: NLinus Torvalds <torvalds@osdl.org>
      7c7165c9
    • S
      [PATCH] delay accounting: temporarily enable by default · 163ecdff
      Shailabh Nagar 提交于
      Enable delay accounting by default so that feature gets coverage testing
      without requiring special measures.
      
      Earlier, it was off by default and had to be enabled via a boot time param.
       This patch reverses the default behaviour to improve coverage testing.  It
      can be removed late in the kernel development cycle if its believed users
      shouldn't have to incur any cost if they don't want delay accounting.  Or
      it can be retained forever if the utility of the stats is deemed common
      enough to warrant keeping the feature on.
      Signed-off-by: NShailabh Nagar <nagar@watson.ibm.com>
      Signed-off-by: NAndrew Morton <akpm@osdl.org>
      Signed-off-by: NLinus Torvalds <torvalds@osdl.org>
      163ecdff
  5. 29 7月, 2006 1 次提交
  6. 25 7月, 2006 1 次提交
  7. 15 7月, 2006 8 次提交
  8. 14 7月, 2006 1 次提交
  9. 13 7月, 2006 6 次提交
  10. 11 7月, 2006 6 次提交
  11. 04 7月, 2006 3 次提交
    • H
      [IPVS]: Add sysctl documentation · 6ce1669f
      Horms 提交于
      * Derived from http://www.linuxvirtualserver.org/docs/sysctl.html, v1.4
        maintained by Wensong Zhang
      
      * Adjusted preample to match ip-sysctl.txt
      
      * Sorted options into alphabetical order
      
      * Added expire_quiescent_template
      
      * Removed timeout_* which are no longer present
      
      * Incoporated doc/debug-levels.txt from IPVS source tree into
        description of ipvs_debug
      
      * Minor spelling fixes
      
      * Further editing more than welcome
      Signed-Off-By: NHorms <horms@verge.net.au>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      6ce1669f
    • I
      [PATCH] lockdep: design docs · f3e97da3
      Ingo Molnar 提交于
      Lock validator design documentation.
      Signed-off-by: NIngo Molnar <mingo@elte.hu>
      Signed-off-by: NArjan van de Ven <arjan@linux.intel.com>
      Signed-off-by: NAndrew Morton <akpm@osdl.org>
      Signed-off-by: NLinus Torvalds <torvalds@osdl.org>
      f3e97da3
    • I
      [PATCH] lockdep: locking API self tests · cae2ed9a
      Ingo Molnar 提交于
      Introduce DEBUG_LOCKING_API_SELFTESTS, which uses the generic lock debugging
      code's silent-failure feature to run a matrix of testcases.  There are 210
      testcases currently:
      
        +-----------------------
        | Locking API testsuite:
        +------------------------------+------+------+------+------+------+------+
                                       | spin |wlock |rlock |mutex | wsem | rsem |
        -------------------------------+------+------+------+------+------+------+
                           A-A deadlock:  ok  |  ok  |  ok  |  ok  |  ok  |  ok  |
                       A-B-B-A deadlock:  ok  |  ok  |  ok  |  ok  |  ok  |  ok  |
                   A-B-B-C-C-A deadlock:  ok  |  ok  |  ok  |  ok  |  ok  |  ok  |
                   A-B-C-A-B-C deadlock:  ok  |  ok  |  ok  |  ok  |  ok  |  ok  |
               A-B-B-C-C-D-D-A deadlock:  ok  |  ok  |  ok  |  ok  |  ok  |  ok  |
               A-B-C-D-B-D-D-A deadlock:  ok  |  ok  |  ok  |  ok  |  ok  |  ok  |
               A-B-C-D-B-C-D-A deadlock:  ok  |  ok  |  ok  |  ok  |  ok  |  ok  |
                          double unlock:  ok  |  ok  |  ok  |  ok  |  ok  |  ok  |
                       bad unlock order:  ok  |  ok  |  ok  |  ok  |  ok  |  ok  |
        --------------------------------------+------+------+------+------+------+
                    recursive read-lock:             |  ok  |             |  ok  |
        --------------------------------------+------+------+------+------+------+
                      non-nested unlock:  ok  |  ok  |  ok  |  ok  |
        --------------------------------------+------+------+------+
           hard-irqs-on + irq-safe-A/12:  ok  |  ok  |  ok  |
           soft-irqs-on + irq-safe-A/12:  ok  |  ok  |  ok  |
           hard-irqs-on + irq-safe-A/21:  ok  |  ok  |  ok  |
           soft-irqs-on + irq-safe-A/21:  ok  |  ok  |  ok  |
             sirq-safe-A => hirqs-on/12:  ok  |  ok  |  ok  |
             sirq-safe-A => hirqs-on/21:  ok  |  ok  |  ok  |
               hard-safe-A + irqs-on/12:  ok  |  ok  |  ok  |
               soft-safe-A + irqs-on/12:  ok  |  ok  |  ok  |
               hard-safe-A + irqs-on/21:  ok  |  ok  |  ok  |
               soft-safe-A + irqs-on/21:  ok  |  ok  |  ok  |
          hard-safe-A + unsafe-B #1/123:  ok  |  ok  |  ok  |
          soft-safe-A + unsafe-B #1/123:  ok  |  ok  |  ok  |
          hard-safe-A + unsafe-B #1/132:  ok  |  ok  |  ok  |
          soft-safe-A + unsafe-B #1/132:  ok  |  ok  |  ok  |
          hard-safe-A + unsafe-B #1/213:  ok  |  ok  |  ok  |
          soft-safe-A + unsafe-B #1/213:  ok  |  ok  |  ok  |
          hard-safe-A + unsafe-B #1/231:  ok  |  ok  |  ok  |
          soft-safe-A + unsafe-B #1/231:  ok  |  ok  |  ok  |
          hard-safe-A + unsafe-B #1/312:  ok  |  ok  |  ok  |
          soft-safe-A + unsafe-B #1/312:  ok  |  ok  |  ok  |
          hard-safe-A + unsafe-B #1/321:  ok  |  ok  |  ok  |
          soft-safe-A + unsafe-B #1/321:  ok  |  ok  |  ok  |
          hard-safe-A + unsafe-B #2/123:  ok  |  ok  |  ok  |
          soft-safe-A + unsafe-B #2/123:  ok  |  ok  |  ok  |
          hard-safe-A + unsafe-B #2/132:  ok  |  ok  |  ok  |
          soft-safe-A + unsafe-B #2/132:  ok  |  ok  |  ok  |
          hard-safe-A + unsafe-B #2/213:  ok  |  ok  |  ok  |
          soft-safe-A + unsafe-B #2/213:  ok  |  ok  |  ok  |
          hard-safe-A + unsafe-B #2/231:  ok  |  ok  |  ok  |
          soft-safe-A + unsafe-B #2/231:  ok  |  ok  |  ok  |
          hard-safe-A + unsafe-B #2/312:  ok  |  ok  |  ok  |
          soft-safe-A + unsafe-B #2/312:  ok  |  ok  |  ok  |
          hard-safe-A + unsafe-B #2/321:  ok  |  ok  |  ok  |
          soft-safe-A + unsafe-B #2/321:  ok  |  ok  |  ok  |
            hard-irq lock-inversion/123:  ok  |  ok  |  ok  |
            soft-irq lock-inversion/123:  ok  |  ok  |  ok  |
            hard-irq lock-inversion/132:  ok  |  ok  |  ok  |
            soft-irq lock-inversion/132:  ok  |  ok  |  ok  |
            hard-irq lock-inversion/213:  ok  |  ok  |  ok  |
            soft-irq lock-inversion/213:  ok  |  ok  |  ok  |
            hard-irq lock-inversion/231:  ok  |  ok  |  ok  |
            soft-irq lock-inversion/231:  ok  |  ok  |  ok  |
            hard-irq lock-inversion/312:  ok  |  ok  |  ok  |
            soft-irq lock-inversion/312:  ok  |  ok  |  ok  |
            hard-irq lock-inversion/321:  ok  |  ok  |  ok  |
            soft-irq lock-inversion/321:  ok  |  ok  |  ok  |
            hard-irq read-recursion/123:  ok  |
            soft-irq read-recursion/123:  ok  |
            hard-irq read-recursion/132:  ok  |
            soft-irq read-recursion/132:  ok  |
            hard-irq read-recursion/213:  ok  |
            soft-irq read-recursion/213:  ok  |
            hard-irq read-recursion/231:  ok  |
            soft-irq read-recursion/231:  ok  |
            hard-irq read-recursion/312:  ok  |
            soft-irq read-recursion/312:  ok  |
            hard-irq read-recursion/321:  ok  |
            soft-irq read-recursion/321:  ok  |
        --------------------------------+-----+----------------
        Good, all 210 testcases passed! |
        --------------------------------+
      Signed-off-by: NIngo Molnar <mingo@elte.hu>
      Signed-off-by: NArjan van de Ven <arjan@linux.intel.com>
      Signed-off-by: NAndrew Morton <akpm@osdl.org>
      Signed-off-by: NLinus Torvalds <torvalds@osdl.org>
      cae2ed9a