1. 28 4月, 2016 1 次提交
    • T
      cpupower: Add cpuidle parts into library · ac5a181d
      Thomas Renninger 提交于
      This more or less is a renaming and moving of functions and should not
      introduce any functional change.
      
      cpupower was built from cpufrequtils (which had a C library providing easy
      access to cpu frequency platform info). In the meantime it got enhanced
      by quite some neat cpuidle userspace tools.
      
      Now the cpu idle functions have been separated and added to the cpupower.so
      library.
      So beside an already existing public header file:
      cpufreq.h
      cpupower now also exports these cpu idle functions in:
      cpuidle.h
      
      Here again pasted for better review of the interfaces:
      
      ======================================
      int cpuidle_is_state_disabled(unsigned int cpu,
                                             unsigned int idlestate);
      int cpuidle_state_disable(unsigned int cpu, unsigned int idlestate,
                                         unsigned int disable);
      unsigned long cpuidle_state_latency(unsigned int cpu,
                                                      unsigned int idlestate);
      unsigned long cpuidle_state_usage(unsigned int cpu,
                                              unsigned int idlestate);
      unsigned long long cpuidle_state_time(unsigned int cpu,
                                                      unsigned int idlestate);
      char *cpuidle_state_name(unsigned int cpu,
                                      unsigned int idlestate);
      char *cpuidle_state_desc(unsigned int cpu,
                                      unsigned int idlestate);
      unsigned int cpuidle_state_count(unsigned int cpu);
      
      char *cpuidle_get_governor(void);
      char *cpuidle_get_driver(void);
      
      ======================================
      Signed-off-by: NThomas Renninger <trenn@suse.com>
      Signed-off-by: NRafael J. Wysocki <rafael.j.wysocki@intel.com>
      ac5a181d
  2. 03 12月, 2015 1 次提交
  3. 12 3月, 2015 1 次提交
    • J
      Revert "cpupower Makefile change to help run the tool without 'make install'" · b8ea351b
      Josh Boyer 提交于
      This reverts commit 5c1de006.
      
      While the original commit makes it easier to run cpupower from the
      local build directory, it also leaves the binary with a rather poor
      rpath of './' in it after it is installed on a system via 'make install'.
      
      This is considered bad practice and can cause cpupower to fail in
      rpmbuild with the following error:
      
      ERROR   0004: file '/usr/bin/cpupower' contains an insecure rpath './' in [./]
      error: Bad exit status from /var/tmp/rpm-tmp.A6u26r (%install)
          Bad exit status from /var/tmp/rpm-tmp.A6u26r (%install)
      
      Developers should be able to use LD_LIBRARY_PATH to achieve the same
      effect and not introduce rpath into the binary.
      Signed-off-by: NJosh Boyer <jwboyer@feoraproject.org>
      Signed-off-by: NRafael J. Wysocki <rafael.j.wysocki@intel.com>
      b8ea351b
  4. 30 1月, 2015 1 次提交
  5. 17 5月, 2014 2 次提交
  6. 01 5月, 2014 1 次提交
  7. 05 7月, 2013 2 次提交
  8. 28 11月, 2012 1 次提交
  9. 03 10月, 2012 1 次提交
    • J
      kbuild: Fix gcc -x syntax · b1e0d8b7
      Jean Delvare 提交于
      The correct syntax for gcc -x is "gcc -x assembler", not
      "gcc -xassembler". Even though the latter happens to work, the former
      is what is documented in the manual page and thus what gcc wrappers
      such as icecream do expect.
      
      This isn't a cosmetic change. The missing space prevents icecream from
      recognizing compilation tasks it can't handle, leading to silent kernel
      miscompilations.
      
      Besides me, credits go to Michael Matz and Dirk Mueller for
      investigating the miscompilation issue and tracking it down to this
      incorrect -x parameter syntax.
      Signed-off-by: NJean Delvare <jdelvare@suse.de>
      Acked-by: NIngo Molnar <mingo@kernel.org>
      Cc: stable@vger.kernel.org
      Cc: Bernhard Walle <bernhard@bwalle.de>
      Cc: Michal Marek <mmarek@suse.cz>
      Cc: Ralf Baechle <ralf@linux-mips.org>
      Signed-off-by: NMichal Marek <mmarek@suse.cz>
      b1e0d8b7
  10. 03 3月, 2012 4 次提交
  11. 19 8月, 2011 2 次提交
  12. 16 8月, 2011 1 次提交
  13. 30 7月, 2011 7 次提交