1. 30 May, 2019 1 commit
  2. 11 Dec, 2018 1 commit
  3. 25 Jul, 2017 1 commit
    • Viresh Kumar's avatar
      cpufreq: Add CPUFREQ_NO_AUTO_DYNAMIC_SWITCHING cpufreq driver flag · fe829ed8
      Viresh Kumar authored
      The policy->transition_latency field is used for multiple purposes
      today and its not straight forward at all. This is how it is used:
      
      A. Set the correct transition_latency value.
      
      B. Set it to CPUFREQ_ETERNAL because:
         1. We don't want automatic dynamic switching (with
            ondemand/conservative) to happen at all.
         2. We don't know the transition latency.
      
      This patch handles the B.1. case in a more readable way. A new flag for
      the cpufreq drivers is added to disallow use of cpufreq governors which
      have dynamic_switching flag set.
      
      All the current cpufreq drivers which are setting transition_latency
      unconditionally to CPUFREQ_ETERNAL are updated to use it. They don't
      need to set transition_latency anymore.
      
      There shouldn't be any functional change after this patch.
      Signed-off-by: default avatarViresh Kumar <viresh.kumar@linaro.org>
      Reviewed-by: default avatarDominik Brodowski <linux@dominikbrodowski.net>
      Signed-off-by: default avatarRafael J. Wysocki <rafael.j.wysocki@intel.com>
      fe829ed8
  4. 08 Apr, 2016 2 commits
  5. 15 Jun, 2015 1 commit
  6. 16 May, 2014 1 commit
  7. 26 Mar, 2014 1 commit
  8. 15 Oct, 2013 2 commits
  9. 10 Aug, 2013 1 commit
  10. 02 Apr, 2013 2 commits
  11. 27 Jan, 2012 1 commit
    • Andi Kleen's avatar
      cpufreq: Add support for x86 cpuinfo auto loading v4 · fa8031ae
      Andi Kleen authored
      This marks all the x86 cpuinfo tables to the CPU specific device drivers,
      to allow auto loading by udev. This should simplify the distribution
      startup scripts for this greatly.
      
      I didn't add MODULE_DEVICE_IDs to the centrino and p4-clockmod drivers,
      because those probably shouldn't be auto loaded and the acpi driver
      be used instead (not fully sure on that, would appreciate feedback)
      
      The old nforce drivers autoload based on the PCI ID.
      
      ACPI cpufreq is autoloaded in another patch.
      
      v3: Autoload gx based on PCI IDs only. Remove cpu check (Dave Jones)
      v4: Use newly introduce HW_PSTATE feature for powernow-k8 loading
      
      Cc: Dave Jones <davej@redhat.com>
      Cc: Kay Sievers <kay.sievers@vrfy.org>
      Signed-off-by: default avatarAndi Kleen <ak@linux.intel.com>
      Signed-off-by: default avatarThomas Renninger <trenn@suse.de>
      Acked-by: default avatarH. Peter Anvin <hpa@zytor.com>
      Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@suse.de>
      fa8031ae
  12. 19 May, 2011 1 commit
  13. 04 May, 2011 1 commit
    • Dominik Brodowski's avatar
      [CPUFREQ] use dynamic debug instead of custom infrastructure · 2d06d8c4
      Dominik Brodowski authored
      With dynamic debug having gained the capability to report debug messages
      also during the boot process, it offers a far superior interface for
      debug messages than the custom cpufreq infrastructure. As a first step,
      remove the old cpufreq_debug_printk() function and replace it with a call
      to the generic pr_debug() function.
      
      How can dynamic debug be used on cpufreq? You need a kernel which has
      CONFIG_DYNAMIC_DEBUG enabled.
      
      To enabled debugging during runtime, mount debugfs and
      
      $ echo -n 'module cpufreq +p' > /sys/kernel/debug/dynamic_debug/control
      
      for debugging the complete "cpufreq" module. To achieve the same goal during
      boot, append
      
      	ddebug_query="module cpufreq +p"
      
      as a boot parameter to the kernel of your choice.
      
      For more detailled instructions, please see
      Documentation/dynamic-debug-howto.txt
      Signed-off-by: default avatarDominik Brodowski <linux@dominikbrodowski.net>
      Signed-off-by: default avatarDave Jones <davej@redhat.com>
      2d06d8c4
  14. 22 Oct, 2010 1 commit
    • Julia Lawall's avatar
      [CPUFREQ] arch/x86/kernel/cpu/cpufreq: Fix unsigned return type · b2a33c17
      Julia Lawall authored
      In each case, the function has an unsigned return type, but returns a
      negative constant to indicate an error condition.  Each function is only
      called once.  For nforce2_detect_chipset, the result is only compared to 0,
      and for longrun_determine_freqs, the result is stored in a variable of type
      (signed) int.  Thus, for both functions, unsigned can be dropped from the
      return type.
      
      A sematic match that finds this problem is as follows:
      (http://coccinelle.lip6.fr/)
      
      // <smpl>
      @exists@
      identifier f;
      constant C;
      @@
      
       unsigned f(...)
       { <+...
      *  return -C;
       ...+> }
      // </smpl>
      Signed-off-by: default avatarJulia Lawall <julia@diku.dk>
      Signed-off-by: default avatarDave Jones <davej@redhat.com>
      b2a33c17
  15. 25 Feb, 2009 3 commits
  16. 18 Jun, 2008 1 commit
    • Paolo Ciarrocchi's avatar
      x86: coding style fixes to x86/kernel/cpu/cpufreq/cpufreq-nforce2.c · 219835f1
      Paolo Ciarrocchi authored
      Before:
      total: 22 errors, 8 warnings, 440 lines checked
      
      After:
      total: 0 errors, 8 warnings, 442 lines checked
      
      paolo@paolo-desktop:~/linux.trees.git$ md5sum /tmp/cpufreq-nforce2.o.*
      3d4330a5d188fe904446e5948a618b48  /tmp/cpufreq-nforce2.o.after
      1477e6b0dcd6f59b1fb6b4490042eca6  /tmp/cpufreq-nforce2.o.before
      ^^^ I guess this is because I fixed a few "do not initialise statics to 0 or NULL"
      
      paolo@paolo-desktop:~/linux.trees.git$ size /tmp/cpufreq-nforce2.o.*
         text    data     bss     dec     hex filename
         1923      72      16    2011     7db /tmp/cpufreq-nforce2.o.after
         1923      72      16    2011     7db /tmp/cpufreq-nforce2.o.before
      Signed-off-by: default avatarPaolo Ciarrocchi <paolo.ciarrocchi@gmail.com>
      Signed-off-by: default avatarIngo Molnar <mingo@elte.hu>
      219835f1
  17. 19 Oct, 2007 1 commit
  18. 11 Oct, 2007 1 commit
  19. 04 Oct, 2007 1 commit
  20. 11 Jul, 2007 1 commit
    • Auke Kok's avatar
      PCI: Change all drivers to use pci_device->revision · 44c10138
      Auke Kok authored
      Instead of all drivers reading pci config space to get the revision
      ID, they can now use the pci_device->revision member.
      
      This exposes some issues where drivers where reading a word or a dword
      for the revision number, and adding useless error-handling around the
      read. Some drivers even just read it for no purpose of all.
      
      In devices where the revision ID is being copied over and used in what
      appears to be the equivalent of hotpath, I have left the copy code
      and the cached copy as not to influence the driver's performance.
      
      Compile tested with make all{yes,mod}config on x86_64 and i386.
      Signed-off-by: default avatarAuke Kok <auke-jan.h.kok@intel.com>
      Acked-by: default avatarDave Jones <davej@redhat.com>
      Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@suse.de>
      44c10138
  21. 26 Feb, 2007 1 commit
  22. 23 Feb, 2007 1 commit
  23. 05 Jun, 2006 1 commit
  24. 04 Jun, 2006 1 commit
  25. 30 May, 2006 1 commit
  26. 28 Feb, 2006 1 commit
  27. 01 Dec, 2005 1 commit
  28. 16 Apr, 2005 1 commit
    • Linus Torvalds's avatar
      Linux-2.6.12-rc2 · 1da177e4
      Linus Torvalds authored
      Initial git repository build. I'm not bothering with the full history,
      even though we have it. We can create a separate "historical" git
      archive of that later if we want to, and in the meantime it's about
      3.2GB when imported into git - space that would just make the early
      git days unnecessarily complicated, when we don't have a lot of good
      infrastructure for it.
      
      Let it rip!
      1da177e4