1. 06 3月, 2008 1 次提交
    • S
      [CPUFREQ] fix section mismatch warnings · f6ebef30
      Sam Ravnborg 提交于
      Fix the following warnings:
      WARNING: vmlinux.o(.text+0xfe6711): Section mismatch in reference from the function cpufreq_unregister_driver() to the variable .cpuinit.data:cpufreq_cpu_notifier
      WARNING: vmlinux.o(.text+0xfe68af): Section mismatch in reference from the function cpufreq_register_driver() to the variable .cpuinit.data:cpufreq_cpu_notifier
      WARNING: vmlinux.o(.exit.text+0xc4fa): Section mismatch in reference from the function cpufreq_stats_exit() to the variable .cpuinit.data:cpufreq_stat_cpu_notifier
      
      The warnings were casued by references to unregister_hotcpu_notifier()
      from normal functions or exit functions.
      This is flagged by modpost as a potential error because
      it does not know that for the non HOTPLUG_CPU
      scenario the unregister_hotcpu_notifier() is a nop.
      Silence the warning by replacing the __initdata
      annotation with a __refdata annotation.
      Signed-off-by: NSam Ravnborg <sam@ravnborg.org>
      Signed-off-by: NDave Jones <davej@codemonkey.org.uk>
      f6ebef30
  2. 18 12月, 2007 1 次提交
  3. 05 10月, 2007 1 次提交
  4. 12 7月, 2007 1 次提交
    • T
      sysfs: kill unnecessary attribute->owner · 7b595756
      Tejun Heo 提交于
      sysfs is now completely out of driver/module lifetime game.  After
      deletion, a sysfs node doesn't access anything outside sysfs proper,
      so there's no reason to hold onto the attribute owners.  Note that
      often the wrong modules were accounted for as owners leading to
      accessing removed modules.
      
      This patch kills now unnecessary attribute->owner.  Note that with
      this change, userland holding a sysfs node does not prevent the
      backing module from being unloaded.
      
      For more info regarding lifetime rule cleanup, please read the
      following message.
      
        http://article.gmane.org/gmane.linux.kernel/510293
      
      (tweaked by Greg to not delete the field just yet, to make it easier to
      merge things properly.)
      Signed-off-by: NTejun Heo <htejun@gmail.com>
      Cc: Cornelia Huck <cornelia.huck@de.ibm.com>
      Cc: Andrew Morton <akpm@linux-foundation.org>
      Signed-off-by: NGreg Kroah-Hartman <gregkh@suse.de>
      7b595756
  5. 10 5月, 2007 1 次提交
    • R
      Add suspend-related notifications for CPU hotplug · 8bb78442
      Rafael J. Wysocki 提交于
      Since nonboot CPUs are now disabled after tasks and devices have been
      frozen and the CPU hotplug infrastructure is used for this purpose, we need
      special CPU hotplug notifications that will help the CPU-hotplug-aware
      subsystems distinguish normal CPU hotplug events from CPU hotplug events
      related to a system-wide suspend or resume operation in progress.  This
      patch introduces such notifications and causes them to be used during
      suspend and resume transitions.  It also changes all of the
      CPU-hotplug-aware subsystems to take these notifications into consideration
      (for now they are handled in the same way as the corresponding "normal"
      ones).
      
      [oleg@tv-sign.ru: cleanups]
      Signed-off-by: NRafael J. Wysocki <rjw@sisk.pl>
      Cc: Gautham R Shenoy <ego@in.ibm.com>
      Cc: Pavel Machek <pavel@ucw.cz>
      Signed-off-by: NOleg Nesterov <oleg@tv-sign.ru>
      Signed-off-by: NAndrew Morton <akpm@linux-foundation.org>
      Signed-off-by: NLinus Torvalds <torvalds@linux-foundation.org>
      8bb78442
  6. 11 2月, 2007 1 次提交
  7. 23 12月, 2006 1 次提交
  8. 07 11月, 2006 1 次提交
  9. 23 9月, 2006 1 次提交
    • D
      [CPUFREQ] Fix some more CPU hotplug locking. · ddad65df
      Dave Jones 提交于
      Lukewarm IQ detected in hotplug locking
      BUG: warning at kernel/cpu.c:38/lock_cpu_hotplug()
      [<b0134a42>] lock_cpu_hotplug+0x42/0x65
      [<b02f8af1>] cpufreq_update_policy+0x25/0xad
      [<b0358756>] kprobe_flush_task+0x18/0x40
      [<b0355aab>] schedule+0x63f/0x68b
      [<b01377c2>] __link_module+0x0/0x1f
      [<b0119e7d>] __cond_resched+0x16/0x34
      [<b03560bf>] cond_resched+0x26/0x31
      [<b0355b0e>] wait_for_completion+0x17/0xb1
      [<f965c547>] cpufreq_stat_cpu_callback+0x13/0x20 [cpufreq_stats]
      [<f9670074>] cpufreq_stats_init+0x74/0x8b [cpufreq_stats]
      [<b0137872>] sys_init_module+0x91/0x174
      [<b0102c81>] sysenter_past_esp+0x56/0x79
      
      As there are other places that call cpufreq_update_policy without
      the hotplug lock, it seems better to keep the hotplug locking
      at the lower level for the time being until this is revamped.
      Signed-off-by: NDave Jones <davej@redhat.com>
      ddad65df
  10. 01 7月, 2006 1 次提交
  11. 28 6月, 2006 1 次提交
  12. 31 5月, 2006 1 次提交
  13. 12 3月, 2006 1 次提交
    • S
      [PATCH] cpufreq: fix section mismatch warnings · bb1a813d
      Sam Ravnborg 提交于
      cpufreq are the only remaining bit to be solved for me to have a modpost
      clean build for sparc64 - so I took one more look at it.
      changelog entry:
      
      Fix section mismatch warnings in cpufreq:
      WARNING: drivers/cpufreq/cpufreq_stats.o - Section mismatch: reference to .init.text: from .data between 'cpufreq_stat_cpu_notifier' (at offset 0xa8) and 'notifier_policy_block'
      WARNING: drivers/cpufreq/cpufreq_stats.o - Section mismatch: reference to .init.text: from .exit.text after 'cleanup_module' (at offset 0x30)
      
      The culprint is the function: cpufreq_stat_cpu_callback
      It is marked __cpuinit which get's redefined to __init in case
      HOTPLUG_CPU is not enabled as per. init.h:
      
      #ifdef CONFIG_HOTPLUG_CPU
      #define __cpuinit
      #else
      #define __cpuinit       __init
      #endif
      
      $> grep HOTPLUG .config
      CONFIG_HOTPLUG=y
      
      But cpufreq_stat_cpu_callback() is used in:
      __exit cpufreq_stats_exit()
      static struct notifier_block cpufreq_stat_cpu_notifier
      
      cpufreq_stat_cpu_notifier is again used in:
      __init cpufreq_stats_init()
      __exit cpufreq_stats_exit()
      
      So in both cases used from both __init and __exit context.
      Only solution seems to drop __cpuinit tag.
      Signed-off-by: NSam Ravnborg <sam@ravnborg.org>
      Signed-off-by: NDave Jones <davej@redhat.com>
      bb1a813d
  14. 28 2月, 2006 1 次提交
  15. 02 11月, 2005 1 次提交
  16. 31 10月, 2005 1 次提交
    • A
      [PATCH] create and destroy cpufreq sysfs entries based on cpu notifiers · c32b6b8e
      Ashok Raj 提交于
      cpufreq entries in sysfs should only be populated when CPU is online state.
       When we either boot with maxcpus=x and then boot the other cpus by echoing
      to sysfs online file, these entries should be created and destroyed when
      CPU_DEAD is notified.  Same treatement as cache entries under sysfs.
      
      We place the processor in the lowest frequency, so hw managed P-State
      transitions can still work on the other threads to save power.
      
      Primary goal was to just make these directories appear/disapper dynamically.
      
      There is one in this patch i had to do, which i really dont like myself but
      probably best if someone handling the cpufreq infrastructure could give
      this code right treatment if this is not acceptable.  I guess its probably
      good for the first cut.
      
      - Converting lock_cpu_hotplug()/unlock_cpu_hotplug() to disable/enable preempt.
        The locking was smack in the middle of the notification path, when the
        hotplug is already holding the lock. I tried another solution to avoid this
        so avoid taking locks if we know we are from notification path. The solution
        was getting very ugly and i decided this was probably good for this iteration
        until someone who understands cpufreq could do a better job than me.
      
      (akpm: export cpucontrol to GPL modules: drivers/cpufreq/cpufreq_stats.c now
      does lock_cpu_hotplug())
      Signed-off-by: NAshok Raj <ashok.raj@intel.com>
      Signed-off-by: NVenkatesh Pallipadi <venkatesh.pallipadi@intel.com>
      Cc: Dave Jones <davej@codemonkey.org.uk>
      Cc: Zwane Mwaikambo <zwane@holomorphy.com>
      Cc: Greg KH <greg@kroah.com>
      Signed-off-by: NAndrew Morton <akpm@osdl.org>
      Signed-off-by: NLinus Torvalds <torvalds@osdl.org>
      c32b6b8e
  17. 28 10月, 2005 1 次提交
    • D
      [CPUFREQ] Check return value of cpufreq_cpu_get in cpufreq_stats · bc7b26fd
      Dave Jones 提交于
      This fixes an issue found in drivers/cpufreq/cpufreq_stats.c by Coverity.
      
      Error reported:
      CID: 2642
      Checker: NULL_RETURNS (help)
      File: /export2/p4-coverity/mc2/linux26/drivers/cpufreq/cpufreq_stats.c
      Function: cpufreq_stats_create_table
      Description: Dereferencing NULL value "data"
      
      Patch description:
       The return of cpufreq_cpu_get can be NULL, check return code and return
       -EINVAL if it is NULL.
      
      Signed-off-by: Jayachandran C. <c.jayachandran at gmail.com>
      Signed-off-by: NDave Jones <davej@redhat.com>
      bc7b26fd
  18. 21 10月, 2005 1 次提交
  19. 01 6月, 2005 1 次提交
  20. 17 4月, 2005 1 次提交
    • L
      Linux-2.6.12-rc2 · 1da177e4
      Linus Torvalds 提交于
      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