cpufreq_stats: do not remove sysfs files if frequency table is not present

The sysfs files for cpufreq_stats are created in cpufreq_stats_create_table()
called from cpufreq_stat_notifier_policy() when a policy is added to
the cpu. cpufreq_stats_create_table() will not be called if the
scaling driver does not export a frequency table to cpufreq.  Use the
same fence on tear down.

Signed-off-by: Dirk Brandewie <dirk.j.brandewie@intel.com>
Acked-by: Viresh Kumar <viresh.kumar@linaro.org>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Signed-off-by: Pranav Vashi <neobuddy89@gmail.com>
Revert "sched: Make scheduler aware of cpu frequency state"

This reverts commit 74f0368b89a4973fc5ce5d0362ca48806c0fc611.
Revert "sched: window-based load stats for tasks"

This reverts commit 7b1d26c67a5621354422b3ae04bba7738852f3d6.
Revert "mutex: Move mutex spinning code from sched/core.c back to mutex.c"

This reverts commit 00a7eb1d665c8639b378ad65fd6f0765bdb2bcf5.
Revert "sched: Fix memory leakage in build_sched_groups()"

This reverts commit e1250b6c87d203123d8baa3359e9c1b32579faaa.
Revert "sched: Micro-optimize the smart wake-affine logic"

This reverts commit 7220892e7faa238264321edb9b265d0f2ee8d28b.
Revert "sched: Fix hotplug vs. set_cpus_allowed_ptr()"

This reverts commit b6f97333001f5aa95538015c3bfc349ed620a341.
Revert "cpufreq: cpu-boost: Use one work to remove input boost for all CPUs"

This reverts commit d67d3e2a307477897b1d7f9fa63b8a337213df23.
Revert "cpufreq: cpu-boost: Support separate input_boost_freq for"

This reverts commit 9d43d63b504b5441735efd41642090b424b5f220.
Revert "cpufreq: cpu-boost: Export wakeup_boost"

This reverts commit bb7dc79985aec785ab18974677b56538c334b0ae.
Revert "cpufreq: cpu-boost: Export cpu boost status"

This reverts commit 1c87a8203529650e9fc425e30bc4f003283d5346.
Revert "cpufreq: cpu-boost: Consider only task load to decide on sync frequency"

This reverts commit 522fc55033f84521c72f9d59d16f83a54b6249d2.
Revert "cpufreq: cpu-boost: Handle wakeup hints received for foreground tasks"

This reverts commit 6f393f3a37181f61871d2121aa4b26535ef50e42.
cpu-boost: fix
Revert "cpufreq: cpu-boost: Use hotplug thread infrastructure"

This reverts commit d8535c9300ec8fb0b3768b0e0641fa6d1f06e818.
Revert "cpufreq: cpu-boost: Use interruptible wait to not affect load average"

This reverts commit 5140b6f70ae8ac70e799d67cfffbc73ec30df951.
Revert "cpufreq: cpu-boost: Don't register for cpufreq notifiers too early"

This reverts commit 0a3b3b0a098296eca2440fac74d1bb2afe3ac0ef.
Revert "cpufreq: cpu-boost: Fix deadlock in wake_up of sync threads"

This reverts commit fd3b5f62d8e2168d3712e9f8e626a15af2ab81da.
Revert "cpufreq: cpu-boost: Fix queue_delayed_work_on() race with hotplug"

This reverts commit 99d8054e0bfca5c5f68a7797f6eac56ea29b9e2f.
Revert "cpufreq: Disable cpu-boost by default"

This reverts commit 171e4b0d3b6ae4f4f2ffc17fce4b6669e54b929d.