summaryrefslogtreecommitdiffstats
path: root/fs/sysfs
diff options
context:
space:
mode:
authorLina Iyer <lina.iyer@linaro.org>2015-10-28 15:19:50 -0600
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>2015-11-02 02:26:17 +0100
commit2547923d1cc38b4b55c538e450411586acc39ac6 (patch)
tree237a3455cf5bd251b0d5c9ea8ecddc93a7edecab /fs/sysfs
parent298cd0f0880188422a518e9d780bd49d66ea7ad5 (diff)
PM / Domains: Allocate memory outside domain locks
In preparation for supporting IRQ-safe domains, allocate domain data outside the domain locks. These functions are not called in an atomic context, so we can always allocate memory using GFP_KERNEL. By allocating memory before the locks, we can safely lock the domain using spinlocks instead of mutexes. Reviewed-by: Kevin Hilman <khilman@linaro.org> Acked-by: Ulf Hansson <ulf.hansson@linaro.org> Signed-off-by: Lina Iyer <lina.iyer@linaro.org> Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Diffstat (limited to 'fs/sysfs')
0 files changed, 0 insertions, 0 deletions