Re: [PATCH] fix cpufreq_stats attrs removal

Dave Jones
2007-03-22T18:41:21Z

On Thu, Mar 22, 2007 at 06:02:01PM +0100, Mattia Dongili wrote:

> The problem is cpufreq_stats doesn't know when a cpufreq driver is
> removed and doesn't cleanup. I guess this affects any setup with
> cpufreq_stats.
> The attached patch seems to solve both symptoms and yes... it's quite
> invasive as it introduce one more cpufreq policy notification (REMOVED).
>
> BTW: the patch is against .21-rc4-mm1 but applies with some fuzz to
> 2.6.20 too

Alternatively, as it's just debug functionality, we could just
mark it unsafe for rmmod, which is nastier, but a lot less invasive
to the non-debug code.

Dave

--