1. 08 Apr, 2014 11 commits
  2. 07 Apr, 2014 26 commits
    • Linus Torvalds's avatar
      Merge tag 'cpu-hotplug-3.15-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/rafael/linux-pm · 467a9e16
      Linus Torvalds authored
      Pull CPU hotplug notifiers registration fixes from Rafael Wysocki:
       "The purpose of this single series of commits from Srivatsa S Bhat
        (with a small piece from Gautham R Shenoy) touching multiple
        subsystems that use CPU hotplug notifiers is to provide a way to
        register them that will not lead to deadlocks with CPU online/offline
        operations as described in the changelog of commit 93ae4f97 ("CPU
        hotplug: Provide lockless versions of callback registration
        functions").
      
        The first three commits in the series introduce the API and document
        it and the rest simply goes through the users of CPU hotplug notifiers
        and converts them to using the new method"
      
      * tag 'cpu-hotplug-3.15-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/rafael/linux-pm: (52 commits)
        net/iucv/iucv.c: Fix CPU hotplug callback registration
        net/core/flow.c: Fix CPU hotplug callback registration
        mm, zswap: Fix CPU hotplug callback registration
        mm, vmstat: Fix CPU hotplug callback registration
        profile: Fix CPU hotplug callback registration
        trace, ring-buffer: Fix CPU hotplug callback registration
        xen, balloon: Fix CPU hotplug callback registration
        hwmon, via-cputemp: Fix CPU hotplug callback registration
        hwmon, coretemp: Fix CPU hotplug callback registration
        thermal, x86-pkg-temp: Fix CPU hotplug callback registration
        octeon, watchdog: Fix CPU hotplug callback registration
        oprofile, nmi-timer: Fix CPU hotplug callback registration
        intel-idle: Fix CPU hotplug callback registration
        clocksource, dummy-timer: Fix CPU hotplug callback registration
        drivers/base/topology.c: Fix CPU hotplug callback registration
        acpi-cpufreq: Fix CPU hotplug callback registration
        zsmalloc: Fix CPU hotplug callback registration
        scsi, fcoe: Fix CPU hotplug callback registration
        scsi, bnx2fc: Fix CPU hotplug callback registration
        scsi, bnx2i: Fix CPU hotplug callback registration
        ...
      467a9e16
    • Arnd Bergmann's avatar
      sched: remove sleep_on() and friends · b8780c36
      Arnd Bergmann authored
      This is the final piece in the puzzle, as all patches to remove the
      last users of \(interruptible_\|\)sleep_on\(_timeout\|\) have made it
      into the 3.15 merge window. The work was long overdue, and this
      interface in particular should not have survived the BKL removal
      that was done a couple of years ago.
      
      Citing Jon Corbet from http://lwn.net/2001/0201/kernel.php3":
      
       "[...] it was suggested that the janitors look for and fix all code
        that calls sleep_on() [...] since (1) almost all such code is
        incorrect, and (2) Linus has agreed that those functions should
        be removed in the 2.5 development series".
      
      We haven't quite made it for 2.5, but maybe we can merge this for 3.15.
      Signed-off-by: default avatarArnd Bergmann <arnd@arndb.de>
      Cc: Peter Zijlstra <peterz@infradead.org>
      Cc: Ingo Molnar <mingo@kernel.org>
      Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
      b8780c36
    • Linus Torvalds's avatar
      Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/sage/ceph-client · 240cd6a8
      Linus Torvalds authored
      Pull Ceph updates from Sage Weil:
       "The biggest chunk is a series of patches from Ilya that add support
        for new Ceph osd and crush map features, including some new tunables,
        primary affinity, and the new encoding that is needed for erasure
        coding support.  This brings things into parity with the server side
        and the looming firefly release.  There is also support for allocation
        hints in RBD that help limit fragmentation on the server side.
      
        There is also a series of patches from Zheng fixing NFS reexport,
        directory fragmentation support, flock vs fnctl behavior, and some
        issues with clustered MDS.
      
        Finally, there are some miscellaneous fixes from Yunchuan Wen for
        fscache, Fabian Frederick for ACLs, and from me for fsync(dirfd)
        behavior"
      
      * 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/sage/ceph-client: (79 commits)
        ceph: skip invalid dentry during dcache readdir
        libceph: dump pool {read,write}_tier to debugfs
        libceph: output primary affinity values on osdmap updates
        ceph: flush cap release queue when trimming session caps
        ceph: don't grabs open file reference for aborted request
        ceph: drop extra open file reference in ceph_atomic_open()
        ceph: preallocate buffer for readdir reply
        libceph: enable PRIMARY_AFFINITY feature bit
        libceph: redo ceph_calc_pg_primary() in terms of ceph_calc_pg_acting()
        libceph: add support for osd primary affinity
        libceph: add support for primary_temp mappings
        libceph: return primary from ceph_calc_pg_acting()
        libceph: switch ceph_calc_pg_acting() to new helpers
        libceph: introduce apply_temps() helper
        libceph: introduce pg_to_raw_osds() and raw_to_up_osds() helpers
        libceph: ceph_can_shift_osds(pool) and pool type defines
        libceph: ceph_osd_{exists,is_up,is_down}(osd) definitions
        libceph: enable OSDMAP_ENC feature bit
        libceph: primary_affinity decode bits
        libceph: primary_affinity infrastructure
        ...
      240cd6a8
    • Linus Torvalds's avatar
      Merge tag 'for-f2fs-3.15' of git://git.kernel.org/pub/scm/linux/kernel/git/jaegeuk/f2fs · 30211125
      Linus Torvalds authored
      Pull f2fs updates from Jaegeuk Kim:
       "This patch-set includes the following major enhancement patches.
         - introduce large directory support
         - introduce f2fs_issue_flush to merge redundant flush commands
         - merge write IOs as much as possible aligned to the segment
         - add sysfs entries to tune the f2fs configuration
         - use radix_tree for the free_nid_list to reduce in-memory operations
         - remove costly bit operations in f2fs_find_entry
         - enhance the readahead flow for CP/NAT/SIT/SSA blocks
      
        The other bug fixes are as follows:
         - recover xattr node blocks correctly after sudden-power-cut
         - fix to calculate the maximum number of node ids
         - enhance to handle many error cases
      
        And, there are a bunch of cleanups"
      
      * tag 'for-f2fs-3.15' of git://git.kernel.org/pub/scm/linux/kernel/git/jaegeuk/f2fs: (62 commits)
        f2fs: fix wrong statistics of inline data
        f2fs: check the acl's validity before setting
        f2fs: introduce f2fs_issue_flush to avoid redundant flush issue
        f2fs: fix to cover io->bio with io_rwsem
        f2fs: fix error path when fail to read inline data
        f2fs: use list_for_each_entry{_safe} for simplyfying code
        f2fs: avoid free slab cache under spinlock
        f2fs: avoid unneeded lookup when xattr name length is too long
        f2fs: avoid unnecessary bio submit when wait page writeback
        f2fs: return -EIO when node id is not matched
        f2fs: avoid RECLAIM_FS-ON-W warning
        f2fs: skip unnecessary node writes during fsync
        f2fs: introduce fi->i_sem to protect fi's info
        f2fs: change reclaim rate in percentage
        f2fs: add missing documentation for dir_level
        f2fs: remove unnecessary threshold
        f2fs: throttle the memory footprint with a sysfs entry
        f2fs: avoid to drop nat entries due to the negative nr_shrink
        f2fs: call f2fs_wait_on_page_writeback instead of native function
        f2fs: introduce nr_pages_to_write for segment alignment
        ...
      30211125
    • Linus Torvalds's avatar
      Merge tag 'fbdev-omap-3.15' of git://git.kernel.org/pub/scm/linux/kernel/git/tomba/linux · 0af9fb63
      Linus Torvalds authored
      Pull OMAP fbdev changes from Tomi Valkeinen:
       "This is based on the already pulled fbdev-main changes, and this also
        merges .dts branch from Tony Lindgren (which has also been pulled), so
        that I was able to add the display related .dts changes.
      
        This contains OMAP related fbdev changes for 3.15.  The bulk of the
        patches are for adding Device Tree support for OMAP Display Subsystem:
      
         - SoCs: OMAP2/3/4
      
         - Boards: OMAP4 Panda, OMAP4 SDP, OMAP3 Beagle, OMAP3 Beagle-xM,
           OMAP3 IGEP0020, OMAP3 N900
      
         - Devices: TFP410 Encoder, tpd12s015 HDMI companion chip, Sony
           acx565akm panel, MIPI DSI Command mode panel and HDMI, DVI and
           Analog TV connectors"
      
      * tag 'fbdev-omap-3.15' of git://git.kernel.org/pub/scm/linux/kernel/git/tomba/linux: (45 commits)
        OMAPDSS: HDMI: fix interlace output
        OMAPDSS: add missing __init for dss_init_ports
        ARM: OMAP2+: remove pdata quirks for displays
        OMAPDSS: remove DT hacks for regulators
        Doc/DT: Add DT binding documentation for tpd12s015 encoder
        Doc/DT: Add DT binding documentation for TFP410 encoder
        Doc/DT: Add DT binding documentation for Sony acx565akm panel
        Doc/DT: Add DT binding documentation for MIPI DSI CM Panel
        Doc/DT: Add DT binding documentation for HDMI Connector
        Doc/DT: Add DT binding documentation for DVI Connector
        Doc/DT: Add DT binding documentation for Analog TV Connector
        ARM: omap3-n900.dts: add display information
        ARM: omap3-igep0020.dts: add display information
        ARM: omap3-beagle-xm.dts: add display information
        ARM: omap3-beagle.dts: add display information
        ARM: omap4-sdp.dts: add display information
        Doc/DT: Add DT binding documentation for OMAP DSS
        OMAPDSS: acx565akm: Add DT support
        OMAPDSS: connector-analog-tv: Add DT support
        OMAPDSS: hdmi-connector: Add DT support
        ...
      0af9fb63
    • Linus Torvalds's avatar
      Merge tag 'mfd-for-linus-3.15' of git://git.kernel.org/pub/scm/linux/kernel/git/lee/mfd · e5744abb
      Linus Torvalds authored
      Pull MFD updates from Lee Jones:
       "Changes to existing drivers:
         - Use of managed resources - omap, twl4030, ti_am335x_tscadc
         - Advanced error handling - omap
         - Rework clk management - omap
         - Device Tree (re-)work - tc3589x, pm8921, da9055, sec
         - IRC management overhaul and !BROKEN - pm8921
         - Convert to regmap - ssbi, pm8921
         - Use simple power-management ops - ucb1x00
         - Include file clean-up - adp5520, cs5535, janz, lpc_ich,
            - lpc_sch, max14577, mcp-sa11x0, pcf50633-adc, rc5t583,
            	rdc321x-southbridge, retu, smsc-ece1099, ti-ssp, ti_am335x_tscadc,
      	tps65912, vexpress-config, wm8350, ywm8350
         - Various bug fixes across the subsystem
            - NULL/invalid pointer dereference prevention
            - Resource leak mitigation,
            - Variable used initialised
            - Staticise various containers
            - Enforce return value checks
      
        New drivers/supported devices:
         - Add support for s2mps14 and s2mpa01 to sec
         - Add support for da9063 (v5) to da9063
         - Add support for atom-c2000 to gpio-ich
         - Add support for come-{mbt10,cbt6,chl6} to kempld
         - Add support for da9053 to da9052
         - Add support for itco-wdt (v3) and baytrail to lpc_ich
         - Add new drivers for tps65218, rtsx_usb, bcm590xx
      
        (Re-)moved drivers:
         - twl4030 ==> drivers/iio
         - ti-ssp  ==> /dev/null"
      
      * tag 'mfd-for-linus-3.15' of git://git.kernel.org/pub/scm/linux/kernel/git/lee/mfd: (103 commits)
        mfd: wm5110: Correct default for HEADPHONE_DETECT_1
        mfd: arizona: Correct small errors in the DT binding documentation
        mfd: arizona: Mark DSP clocking register as volatile
        mfd: devicetree: bindings: Add pm8xxx RTC description
        mfd: kempld-core: Fix potential hang-up during boot
        mfd: sec-core: Fix uninitialized 'regmap_rtc' on S2MPA01
        mfd: tps65910: Fix regmap_irq_chip_data leak on mfd_add_devices fail
        mfd: tps65910: Fix possible invalid pointer dereference on regmap_add_irq_chip fail
        mfd: sec-core: Fix I2C dummy device resource leak on probe failure
        mfd: sec-core: Add of_compatible strings for clock MFD cells
        mfd: Remove obsolete ti-ssp driver
        Documentation: mfd: s2mps11: Describe S5M8767 and S2MPS14 clocks
        mfd: bcm590xx: Fix type argument for module device table
        mfd: lpc_ich: Add support for Intel Bay Trail SoC
        mfd: lpc_ich: Add support for NM10 GPIO
        mfd: lpc_ich: Change Avoton to iTCO v3
        watchdog: iTCO_wdt: Add support for v3 silicon
        mfd: lpc_ich: Add support for iTCO v3
        mfd: lpc_ich: Remove lpc_ich_cfg struct use
        mfd: lpc_ich: Only configure watchdog or GPIO when present
        ...
      e5744abb
    • Linus Torvalds's avatar
      Merge tag 'for-linus-20140405' of git://git.infradead.org/linux-mtd · c29aa153
      Linus Torvalds authored
      Pull MTD updates from Brian Norris:
       - A few SPI NOR ID definitions
       - Kill the NAND "max pagesize" restriction
       - Fix some x16 bus-width NAND support
       - Add NAND JEDEC parameter page support
       - DT bindings for NAND ECC
       - GPMI NAND updates (subpage reads)
       - More OMAP NAND refactoring
       - New STMicro SPI NOR driver (now in 40 patches!)
       - A few other random bugfixes
      
      * tag 'for-linus-20140405' of git://git.infradead.org/linux-mtd: (120 commits)
        Fix index regression in nand_read_subpage
        mtd: diskonchip: mem resource name is not optional
        mtd: nand: fix mention to CONFIG_MTD_NAND_ECC_BCH
        mtd: nand: fix GET/SET_FEATURES address on 16-bit devices
        mtd: omap2: Use devm_ioremap_resource()
        mtd: denali_dt: Use devm_ioremap_resource()
        mtd: devices: elm: update DRIVER_NAME as "omap-elm"
        mtd: devices: elm: configure parallel channels based on ecc_steps
        mtd: devices: elm: clean elm_load_syndrome
        mtd: devices: elm: check for hardware engine's design constraints
        mtd: st_spi_fsm: Succinctly reorganise .remove()
        mtd: st_spi_fsm: Allow loop to run at least once before giving up CPU
        mtd: st_spi_fsm: Correct vendor name spelling issue - missing "M"
        mtd: st_spi_fsm: Avoid duplicating MTD core code
        mtd: st_spi_fsm: Remove useless consts from function arguments
        mtd: st_spi_fsm: Convert ST SPI FSM (NOR) Flash driver to new DT partitions
        mtd: st_spi_fsm: Move runtime configurable msg sequences into device's struct
        mtd: st_spi_fsm: Supply the W25Qxxx chip specific configuration call-back
        mtd: st_spi_fsm: Supply the S25FLxxx chip specific configuration call-back
        mtd: st_spi_fsm: Supply the MX25xxx chip specific configuration call-back
        ...
      c29aa153
    • Viresh Kumar's avatar
      cpufreq: create another field .flags in cpufreq_frequency_table · 7f4b0461
      Viresh Kumar authored
      Currently cpufreq frequency table has two fields: frequency and driver_data.
      driver_data is only for drivers' internal use and cpufreq core shouldn't use
      it at all. But with the introduction of BOOST frequencies, this assumption
      was broken and we started using it as a flag instead.
      
      There are two problems due to this:
      - It is against the description of this field, as driver's data is used by
        the core now.
      - if drivers fill it with -3 for any frequency, then those frequencies are
        never considered by cpufreq core as it is exactly same as value of
        CPUFREQ_BOOST_FREQ, i.e. ~2.
      
      The best way to get this fixed is by creating another field flags which
      will be used for such flags. This patch does that. Along with that various
      drivers need modifications due to the change of struct cpufreq_frequency_table.
      Reviewed-by: default avatarGautham R Shenoy <ego@linux.vnet.ibm.com>
      Signed-off-by: default avatarViresh Kumar <viresh.kumar@linaro.org>
      Signed-off-by: default avatarRafael J. Wysocki <rafael.j.wysocki@intel.com>
      7f4b0461
    • Viresh Kumar's avatar
      cpufreq: use kzalloc() to allocate memory for cpufreq_frequency_table · 71508a1f
      Viresh Kumar authored
      Few drivers are using kmalloc() to allocate memory for frequency
      tables and since we will have an additional field '.flags' in
      'struct cpufreq_frequency_table', these might become unstable.
      Better get these fixed by replacing kmalloc() by kzalloc() instead.
      
      Along with that we also remove use of .driver_data from SPEAr driver
      as it doesn't use it at all. Also, writing zero to .driver_data is not
      required for powernow-k8 as it is already zero.
      Reported-and-reviewed-by: default avatarGautham R. Shenoy <ego@linux.vnet.ibm.com>
      Signed-off-by: default avatarViresh Kumar <viresh.kumar@linaro.org>
      Signed-off-by: default avatarRafael J. Wysocki <rafael.j.wysocki@intel.com>
      71508a1f
    • Viresh Kumar's avatar
      cpufreq: don't print value of .driver_data from core · ae87f10f
      Viresh Kumar authored
      CPUFreq core doesn't control value of .driver_data and this field is
      completely driver specific. This can contain any value and not only
      indexes. For most of the drivers, which aren't using this field, its
      value is zero. So, printing this from core doesn't make any sense.
      Don't print it.
      Signed-off-by: default avatarViresh Kumar <viresh.kumar@linaro.org>
      Signed-off-by: default avatarRafael J. Wysocki <rafael.j.wysocki@intel.com>
      ae87f10f
    • Viresh Kumar's avatar
      cpufreq: ia64: don't set .driver_data to index · 1ea7d77b
      Viresh Kumar authored
      .driver_data field is only required to be filled if drivers want to
      preserve some data in there which they can use according to the value
      of .frequency. But this driver isn't using this field at all, but just
      setting it equal to the index value. Which isn't required. Fix it.
      Signed-off-by: default avatarViresh Kumar <viresh.kumar@linaro.org>
      Signed-off-by: default avatarRafael J. Wysocki <rafael.j.wysocki@intel.com>
      1ea7d77b
    • Gautham R. Shenoy's avatar
      cpufreq: powernv: Select CPUFreq related Kconfig options for powernv · 81f35902
      Gautham R. Shenoy authored
      Enable CPUFreq for PowerNV. Select "performance", "powersave",
      "userspace" and "ondemand" governors. Choose "ondemand" to be the
      default governor.
      Signed-off-by: default avatarSrivatsa S. Bhat <srivatsa.bhat@linux.vnet.ibm.com>
      Signed-off-by: default avatarGautham R. Shenoy <ego@linux.vnet.ibm.com>
      Signed-off-by: default avatarRafael J. Wysocki <rafael.j.wysocki@intel.com>
      81f35902
    • Gautham R. Shenoy's avatar
      cpufreq: powernv: Use cpufreq_frequency_table.driver_data to store pstate ids · 0692c691
      Gautham R. Shenoy authored
      The .driver_data field in the cpufreq_frequency_table was supposed to
      be private to the drivers. However at some later point, it was being
      used to indicate if the particular frequency in the table is the
      BOOST_FREQUENCY. After patches [1] and [2], the .driver_data is once
      again private to the driver. Thus we can safely use
      cpufreq_frequency_table.driver_data to store pstate_ids instead of
      having to maintain a separate array powernv_pstate_ids[] for this
      purpose.
      
      [1]:
        Subject: cpufreq: don't print value of .driver_data from core
        From   : Viresh Kumar <viresh.kumar@ linaro.org>
        url    : http://marc.info/?l=linux-pm&m=139601421504709&w=2
      
      [2]:
        Subject: cpufreq: create another field .flags in cpufreq_frequency_table
        From   : Viresh Kumar <viresh.kumar@linaro.org>
        url    : http://marc.info/?l=linux-pm&m=139601416804702&w=2Signed-off-by: default avatarGautham R. Shenoy <ego@linux.vnet.ibm.com>
      Signed-off-by: default avatarRafael J. Wysocki <rafael.j.wysocki@intel.com>
      0692c691
    • Vaidyanathan Srinivasan's avatar
      cpufreq: powernv: cpufreq driver for powernv platform · b3d627a5
      Vaidyanathan Srinivasan authored
      Backend driver to dynamically set voltage and frequency on
      IBM POWER non-virtualized platforms.  Power management SPRs
      are used to set the required PState.
      
      This driver works in conjunction with cpufreq governors
      like 'ondemand' to provide a demand based frequency and
      voltage setting on IBM POWER non-virtualized platforms.
      
      PState table is obtained from OPAL v3 firmware through device
      tree.
      
      powernv_cpufreq back-end driver would parse the relevant device-tree
      nodes and initialise the cpufreq subsystem on powernv platform.
      
      The code was originally written by svaidy@linux.vnet.ibm.com. Over
      time it was modified to accomodate bug-fixes as well as updates to the
      the cpu-freq core. Relevant portions of the change logs corresponding
      to those modifications are noted below:
      
       * The policy->cpus needs to be populated in a hotplug-invariant
         manner instead of using cpu_sibling_mask() which varies with
         cpu-hotplug. This is because the cpufreq core code copies this
         content into policy->related_cpus mask which should not vary on
         cpu-hotplug. [Authored by srivatsa.bhat@linux.vnet.ibm.com]
      
       * Create a helper routine that can return the cpu-frequency for the
         corresponding pstate_id. Also, cache the values of the pstate_max,
         pstate_min and pstate_nominal and nr_pstates in a static structure
         so that they can be reused in the future to perform any
         validations. [Authored by ego@linux.vnet.ibm.com]
      
       * Create a driver attribute named cpuinfo_nominal_freq which creates
         a sysfs read-only file named cpuinfo_nominal_freq. Export the
         frequency corresponding to the nominal_pstate through this
         interface.
      
           Nominal frequency is the highest non-turbo frequency for the
         platform.  This is generally used for setting governor policies
         from user space for optimal energy efficiency. [Authored by
         ego@linux.vnet.ibm.com]
      
       * Implement a powernv_cpufreq_get(unsigned int cpu) method which will
         return the current operating frequency. Export this via the sysfs
         interface cpuinfo_cur_freq by setting powernv_cpufreq_driver.get to
         powernv_cpufreq_get(). [Authored by ego@linux.vnet.ibm.com]
      
      [Change log updated by ego@linux.vnet.ibm.com]
      Reviewed-by: default avatarPreeti U Murthy <preeti@linux.vnet.ibm.com>
      Signed-off-by: default avatarVaidyanathan Srinivasan <svaidy@linux.vnet.ibm.com>
      Signed-off-by: default avatarSrivatsa S. Bhat <srivatsa.bhat@linux.vnet.ibm.com>
      Signed-off-by: default avatarAnton Blanchard <anton@samba.org>
      Signed-off-by: default avatarGautham R. Shenoy <ego@linux.vnet.ibm.com>
      Signed-off-by: default avatarRafael J. Wysocki <rafael.j.wysocki@intel.com>
      b3d627a5
    • Viresh Kumar's avatar
      cpufreq: at32ap: don't declare local variable as static · 0ca97886
      Viresh Kumar authored
      Earlier commit:
      	commit 652ed95d
      	Author: Viresh Kumar <viresh.kumar@linaro.org>
      	Date:   Thu Jan 9 20:38:43 2014 +0530
      
      	    cpufreq: introduce cpufreq_generic_get() routine
      
      did some changes to driver and by mistake made cpuclk as a 'static' local
      variable, which wasn't actually required. Fix it.
      
      Fixes: 652ed95d (cpufreq: introduce cpufreq_generic_get() routine)
      Reported-by: default avatarAlexandre Oliva <lxoliva@fsfla.org>
      Signed-off-by: default avatarViresh Kumar <viresh.kumar@linaro.org>
      Acked-by: default avatarHans-Christian Egtvedt <egtvedt@samfundet.no>
      Cc: 3.14+ <stable@vger.kernel.org> # 3.14+
      Signed-off-by: default avatarRafael J. Wysocki <rafael.j.wysocki@intel.com>
      0ca97886
    • Viresh Kumar's avatar
      cpufreq: loongson2_cpufreq: don't declare local variable as static · 05ed6722
      Viresh Kumar authored
      Earlier commit:
      	commit 652ed95d
      	Author: Viresh Kumar <viresh.kumar@linaro.org>
      	Date:   Thu Jan 9 20:38:43 2014 +0530
      
      	    cpufreq: introduce cpufreq_generic_get() routine
      
      did some changes to driver and by mistake made cpuclk as a 'static' local
      variable, which wasn't actually required. Fix it.
      
      Fixes: 652ed95d (cpufreq: introduce cpufreq_generic_get() routine)
      Reported-by: default avatarAlexandre Oliva <lxoliva@fsfla.org>
      Signed-off-by: default avatarViresh Kumar <viresh.kumar@linaro.org>
      Cc: 3.14+ <stable@vger.kernel.org> # 3.14+
      Signed-off-by: default avatarRafael J. Wysocki <rafael.j.wysocki@intel.com>
      05ed6722
    • Chen Gang's avatar
      cpufreq: unicore32: fix typo issue for 'clk' · b4ddad95
      Chen Gang authored
      Need use 'clk' instead of 'mclk', which is the original removed local
      variable.
      
      The related original commit:
      
        "652ed95d cpufreq: introduce cpufreq_generic_get() routine"
      
      The related error with allmodconfig for unicore32:
      
          CC      drivers/cpufreq/unicore2-cpufreq.o
        drivers/cpufreq/unicore2-cpufreq.c: In function ‘ucv2_target’:
        drivers/cpufreq/unicore2-cpufreq.c:48: error: ‘struct cpufreq_policy’ has no member named ‘mclk’
        make[2]: *** [drivers/cpufreq/unicore2-cpufreq.o] Error 1
        make[1]: *** [drivers/cpufreq] Error 2
        make: *** [drivers] Error 2
      
      Fixes: 652ed95d (cpufreq: introduce cpufreq_generic_get() routine)
      Signed-off-by: default avatarChen Gang <gang.chen.5i5j@gmail.com>
      Acked-by: default avatarViresh Kumar <viresh.kumar@linaro.org>
      Cc: 3.14+ <stable@vger.kernel.org> # 3.14+
      Signed-off-by: default avatarRafael J. Wysocki <rafael.j.wysocki@intel.com>
      b4ddad95
    • Sachin Kamat's avatar
      cpufreq: exynos: Disable on multiplatform build · 1fedc2f5
      Sachin Kamat authored
      The current exynos cpufreq drivers are not multiplatform compliant
      and give build errors as they refer to header files from machine
      directory. Work to migrate them to generic cpufreq framework is
      under way. Till such time disable the build on multiplatform so
      that other multiplatform ready features get tested.
      Signed-off-by: default avatarSachin Kamat <sachin.kamat@linaro.org>
      Cc: Arnd Bergmann <arnd@arndb.de>
      Acked-by: default avatarViresh Kumar <viresh.kumar@linaro.org>
      Signed-off-by: default avatarRafael J. Wysocki <rafael.j.wysocki@intel.com>
      1fedc2f5
    • Geert Uytterhoeven's avatar
      PM / wakeup: Correct presence vs. emptiness of wakeup_* attributes · d0549801
      Geert Uytterhoeven authored
      According to the documentation, the various wakeup_* attributes in sysfs
      are not present if the device is not enabled to wake up the system.
      
      This is not correct: the attributes are not present if the device is not
      capable to wake up the system. They are empty if the device is not enabled
      to wake up the system.
      Signed-off-by: default avatarGeert Uytterhoeven <geert+renesas@glider.be>
      Signed-off-by: default avatarRafael J. Wysocki <rafael.j.wysocki@intel.com>
      d0549801
    • Tushar Behera's avatar
      PM / domains: Add pd_ignore_unused to keep power domains enabled · 39ac5ba5
      Tushar Behera authored
      Keep all power-domains already enabled by bootloader on, even if no
      driver has claimed them. This is useful for debug and development, but
      should not be needed on a platform with proper driver support.
      Signed-off-by: default avatarTushar Behera <tushar.behera@linaro.org>
      Signed-off-by: default avatarRafael J. Wysocki <rafael.j.wysocki@intel.com>
      39ac5ba5
    • Rafael J. Wysocki's avatar
      ACPI / dock: Drop dock_device_ids[] table · 4e24ea2a
      Rafael J. Wysocki authored
      There are no references to the dock_device_ids[] table anywhere in
      the code and it is not even useful for module autoloading, because
      the dock driver can only be built in, so drop it.
      Signed-off-by: default avatarRafael J. Wysocki <rafael.j.wysocki@intel.com>
      4e24ea2a
    • Stephen Chandler Paul's avatar
      ACPI / video: Favor native backlight interface for ThinkPad Helix · 997dd7fe
      Stephen Chandler Paul authored
      Like many other Windows 8 laptops the ThinkPad Helix's backlight has a
      broken ACPI interface and can only be properly adjusted by using the
      video card's native backlight control. This adds the ThinkPad Helix to
      the list of laptops affected with this issue so that
      video.use_native_backlight is enabled by default.
      Signed-off-by: default avatarStephen Chandler Paul <thatslyude@gmail.com>
      Signed-off-by: default avatarRafael J. Wysocki <rafael.j.wysocki@intel.com>
      997dd7fe
    • Zhihui Zhang's avatar
      ACPI / thermal: Fix wrong variable usage in debug statement · ee17fdf2
      Zhihui Zhang authored
      A debug statement in acpi_thermal_trips_update() uses a wrong trip
      point (tz->trips.critical instead of tz->trips.hot) to get the
      temperature value from.  Fix that.
      Signed-off-by: default avatarZhihui Zhang <zzhsuny@gmail.com>
      [rjw: Subject and changelog]
      Signed-off-by: default avatarRafael J. Wysocki <rafael.j.wysocki@intel.com>
      ee17fdf2
    • Chao Yu's avatar
      f2fs: fix wrong statistics of inline data · 48b230a5
      Chao Yu authored
      If we remove a file that has inline data after mount, our statistics turns to
      inaccurate.
      
      cat /sys/kernel/debug/f2fs/status
        - Inline_data Inode: 4294967295
      
      Let's add stat_inc_inline_inode() to stat inline info of the file when lookup.
      
      Change log from v1:
       o stat in f2fs_lookup() instead of in do_read_inode() for excluding wrong stat.
      Signed-off-by: default avatarChao Yu <chao2.yu@samsung.com>
      Signed-off-by: default avatarJaegeuk Kim <jaegeuk.kim@samsung.com>
      48b230a5
    • ZhangZhen's avatar
      f2fs: check the acl's validity before setting · 3a8861e2
      ZhangZhen authored
      Before setting the acl, call posix_acl_valid() to check if it is
      valid or not.
      Signed-off-by: default avatarzhangzhen <zhenzhang.zhang@huawei.com>
      Signed-off-by: default avatarJaegeuk Kim <jaegeuk.kim@samsung.com>
      3a8861e2
    • Jaegeuk Kim's avatar
      f2fs: introduce f2fs_issue_flush to avoid redundant flush issue · 6b4afdd7
      Jaegeuk Kim authored
      Some storage devices show relatively high latencies to complete cache_flush
      commands, even though their normal IO speed is prettry much high. In such
      the case, it needs to merge cache_flush commands as much as possible to avoid
      issuing them redundantly.
      So, this patch introduces a mount option, "-o flush_merge", to mitigate such
      the overhead.
      
      If this option is enabled by user, F2FS merges the cache_flush commands and then
      issues just one cache_flush on behalf of them. Once the single command is
      finished, F2FS sends a completion signal to all the pending threads.
      
      Note that, this option can be used under a workload consisting of very intensive
      concurrent fsync calls, while the storage handles cache_flush commands slowly.
      Signed-off-by: default avatarJaegeuk Kim <jaegeuk.kim@samsung.com>
      6b4afdd7
  3. 06 Apr, 2014 3 commits
    • Linus Torvalds's avatar
      Merge tag 'nfs-for-3.15-1' of git://git.linux-nfs.org/projects/trondmy/linux-nfs · 2b3a8fd7
      Linus Torvalds authored
      Pull NFS client updates from Trond Myklebust:
       "Highlights include:
      
         - Stable fix for a use after free issue in the NFSv4.1 open code
         - Fix the SUNRPC bi-directional RPC code to account for TCP segmentation
         - Optimise usage of readdirplus when confronted with 'ls -l' situations
         - Soft mount bugfixes
         - NFS over RDMA bugfixes
         - NFSv4 close locking fixes
         - Various NFSv4.x client state management optimisations
         - Rename/unlink code cleanups"
      
      * tag 'nfs-for-3.15-1' of git://git.linux-nfs.org/projects/trondmy/linux-nfs: (28 commits)
        nfs: pass string length to pr_notice message about readdir loops
        NFSv4: Fix a use-after-free problem in open()
        SUNRPC: rpc_restart_call/rpc_restart_call_prepare should clear task->tk_status
        SUNRPC: Don't let rpc_delay() clobber non-timeout errors
        SUNRPC: Ensure call_connect_status() deals correctly with SOFTCONN tasks
        SUNRPC: Ensure call_status() deals correctly with SOFTCONN tasks
        NFSv4: Ensure we respect soft mount timeouts during trunking discovery
        NFSv4: Schedule recovery if nfs40_walk_client_list() is interrupted
        NFS: advertise only supported callback netids
        SUNRPC: remove KERN_INFO from dprintk() call sites
        SUNRPC: Fix large reads on NFS/RDMA
        NFS: Clean up: revert increase in READDIR RPC buffer max size
        SUNRPC: Ensure that call_bind times out correctly
        SUNRPC: Ensure that call_connect times out correctly
        nfs: emit a fsnotify_nameremove call in sillyrename codepath
        nfs: remove synchronous rename code
        nfs: convert nfs_rename to use async_rename infrastructure
        nfs: make nfs_async_rename non-static
        nfs: abstract out code needed to complete a sillyrename
        NFSv4: Clear the open state flags if the new stateid does not match
        ...
      2b3a8fd7
    • Linus Torvalds's avatar
      Merge tag 'modules-next-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/rusty/linux · 6f4c98e1
      Linus Torvalds authored
      Pull module updates from Rusty Russell:
       "Nothing major: the stricter permissions checking for sysfs broke a
        staging driver; fix included.  Greg KH said he'd take the patch but
        hadn't as the merge window opened, so it's included here to avoid
        breaking build"
      
      * tag 'modules-next-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/rusty/linux:
        staging: fix up speakup kobject mode
        Use 'E' instead of 'X' for unsigned module taint flag.
        VERIFY_OCTAL_PERMISSIONS: stricter checking for sysfs perms.
        kallsyms: fix percpu vars on x86-64 with relocation.
        kallsyms: generalize address range checking
        module: LLVMLinux: Remove unused function warning from __param_check macro
        Fix: module signature vs tracepoints: add new TAINT_UNSIGNED_MODULE
        module: remove MODULE_GENERIC_TABLE
        module: allow multiple calls to MODULE_DEVICE_TABLE() per module
        module: use pr_cont
      6f4c98e1
    • Yan, Zheng's avatar
      ceph: skip invalid dentry during dcache readdir · a30be7cb
      Yan, Zheng authored
      skip dentries that were added before MDS issued FILE_SHARED to
      client.
      Signed-off-by: default avatarYan, Zheng <zheng.z.yan@intel.com>
      Reviewed-by: default avatarSage Weil <sage@inktank.com>
      a30be7cb