1. 17 3月, 2011 2 次提交
  2. 10 3月, 2011 1 次提交
  3. 02 3月, 2011 3 次提交
  4. 30 12月, 2010 2 次提交
  5. 22 10月, 2010 2 次提交
    • R
      [CPUFREQ]: x86, cpufreq: Mark longrun_get_policy with __cpuinit. · a69a0612
      Rakib Mullick 提交于
      This patch fixes the following warning. The function
      longrun_cpu_init() is marked with __cpuinit which calls
      longrun_get_policy() which is a __init function. So make
      longrun_get_policy with __cpuinit.
      
      WARNING: arch/x86/kernel/cpu/cpufreq/longrun.o(.cpuinit.text+0x4c5):
      Section mismatch in reference from the function longrun_cpu_init() to
      the function .init.text:longrun_get_policy()
      The function __cpuinit longrun_cpu_init() references
      a function __init longrun_get_policy().
      If longrun_get_policy is only used by longrun_cpu_init then
      annotate longrun_get_policy with a matching annotation.
      Signed-off-by: NRakib Mullick <rakib.mullick@gmail.com>
      Signed-off-by: NDave Jones <davej@redhat.com>
      a69a0612
    • J
      [CPUFREQ] arch/x86/kernel/cpu/cpufreq: Fix unsigned return type · b2a33c17
      Julia Lawall 提交于
      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: NJulia Lawall <julia@diku.dk>
      Signed-off-by: NDave Jones <davej@redhat.com>
      b2a33c17
  6. 12 10月, 2010 1 次提交
    • Z
      acpi-cpufreq: fix a memleak when unloading driver · dab5fff1
      Zhang Rui 提交于
      We didn't free per_cpu(acfreq_data, cpu)->freq_table
      when acpi_freq driver is unloaded.
      
      Resulting in the following messages in /sys/kernel/debug/kmemleak:
      
      unreferenced object 0xf6450e80 (size 64):
        comm "modprobe", pid 1066, jiffies 4294677317 (age 19290.453s)
        hex dump (first 32 bytes):
          00 00 00 00 e8 a2 24 00 01 00 00 00 00 9f 24 00  ......$.......$.
          02 00 00 00 00 6a 18 00 03 00 00 00 00 35 0c 00  .....j.......5..
        backtrace:
          [<c123ba97>] kmemleak_alloc+0x27/0x50
          [<c109f96f>] __kmalloc+0xcf/0x110
          [<f9da97ee>] acpi_cpufreq_cpu_init+0x1ee/0x4e4 [acpi_cpufreq]
          [<c11cd8d2>] cpufreq_add_dev+0x142/0x3a0
          [<c11920b7>] sysdev_driver_register+0x97/0x110
          [<c11cce56>] cpufreq_register_driver+0x86/0x140
          [<f9dad080>] 0xf9dad080
          [<c1001130>] do_one_initcall+0x30/0x160
          [<c10626e9>] sys_init_module+0x99/0x1e0
          [<c1002d97>] sysenter_do_call+0x12/0x26
          [<ffffffff>] 0xffffffff
      
      https://bugzilla.kernel.org/show_bug.cgi?id=15807#c21Tested-by: NToralf Forster <toralf.foerster@gmx.de>
      Signed-off-by: NZhang Rui <rui.zhang@intel.com>
      Signed-off-by: NLen Brown <len.brown@intel.com>
      dab5fff1
  7. 01 10月, 2010 2 次提交
  8. 13 8月, 2010 2 次提交
  9. 04 8月, 2010 14 次提交
  10. 27 7月, 2010 4 次提交
  11. 22 7月, 2010 1 次提交
    • T
      x86 cpufreq, perf: Make trace_power_frequency cpufreq driver independent · 4c21adf2
      Thomas Renninger 提交于
      and fix the broken case if a core's frequency depends on others.
      
      trace_power_frequency was only implemented in a rather ungeneric
      way in acpi-cpufreq driver's target() function only.
      
      -> Move the call to trace_power_frequency to
         cpufreq.c:cpufreq_notify_transition() where CPUFREQ_POSTCHANGE
         notifier is triggered.
         This will support power frequency tracing by all cpufreq
         drivers.
      
      trace_power_frequency did not trace frequency changes correctly
      when the userspace governor was used or when CPU cores'
      frequency depend on each other.
      
      -> Moving this into the CPUFREQ_POSTCHANGE notifier and pass the cpu
         which gets switched automatically fixes this.
      
      Robert Schoene provided some important fixes on top of my
      initial quick shot version which are integrated in this patch:
      - Forgot some changes in power_end trace (TP_printk/variable names)
      - Variable dummy in power_end must now be cpu_id
      - Use static 64 bit variable instead of unsigned int for cpu_id
      
      [akpm@linux-foundation.org: build fix]
      Signed-off-by: NThomas Renninger <trenn@suse.de>
      Cc: davej@codemonkey.org.uk
      Signed-off-by: NIngo Molnar <mingo@elte.hu>
      Cc: Dave Jones <davej@codemonkey.org.uk>
      Acked-by: NArjan van de Ven <arjan@infradead.org>
      Cc: Robert Schoene <robert.schoene@tu-dresden.de>
      Tested-by: NRobert Schoene <robert.schoene@tu-dresden.de>
      Signed-off-by: NAndrew Morton <akpm@linux-foundation.org>
      4c21adf2
  12. 19 7月, 2010 1 次提交
  13. 26 5月, 2010 1 次提交
  14. 03 5月, 2010 1 次提交
  15. 10 4月, 2010 3 次提交