Re: Oops after cd /sys/.../cpufreq/; rmmod; cat stats/time_in_state

Dave Jones
2007-03-22T03:52:00Z

On Wed, Mar 21, 2007 at 08:07:53PM -0700, Greg KH wrote:

> > After modprobe/rmmod cpufreq/stats directory appears but doesn't get
> > removed. Should it?
> Well, one can argue that those stats should never be in sysfs at all
> anyway, I mean come on, a histogram in sysfs? That's, not ok.

Meh, it's only a cheesy debug thing, so it's not really that big a deal imo.
it could probably move to debugfs (we didn't have that when it was merged iirc)
I doubt anyone really cares enough to bother though I wouldn't
be averse to a patch.
To the best of my knowledge, nothing in userspace is relying on that stuff
being present (it'd have to cope with it not being there anyway given its
optional).

Dave

--