summaryrefslogtreecommitdiffstats
path: root/fs/char_dev.c
diff options
context:
space:
mode:
authorViresh Kumar <viresh.kumar@linaro.org>2015-01-06 21:09:11 +0530
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>2015-01-23 23:06:44 +0100
commita685c6d023c77303ca8700f37bf06eb85ffbf06a (patch)
treefc2cdcee6690d4ac5282423f9f3c1f98d9691d47 /fs/char_dev.c
parentd9f354460db8b58a8395936d323b4ca6e8428b9d (diff)
downloadblackbird-op-linux-a685c6d023c77303ca8700f37bf06eb85ffbf06a.tar.gz
blackbird-op-linux-a685c6d023c77303ca8700f37bf06eb85ffbf06a.zip
cpufreq: stats: create sysfs group once we are ready
Userspace is free to read value of any file from cpufreq/stats directory once they are created. __cpufreq_stats_create_table() is creating the sysfs files first and then allocating resources for them. Though it would be quite difficult to trigger the racy situation here, but for the sake of keeping sensible code lets create sysfs entries only after we are ready to go. This also does some makeup to the routine to make it look better. Reviewed-by: Prarit Bhargava <prarit@redhat.com> Signed-off-by: Viresh Kumar <viresh.kumar@linaro.org> Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Diffstat (limited to 'fs/char_dev.c')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud