[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20100323114408.GB16493@aftab>
Date: Tue, 23 Mar 2010 12:44:09 +0100
From: Borislav Petkov <bp@...64.org>
To: Thomas Renninger <trenn@...e.de>
Cc: akpm@...ux-foundation.org, davej@...hat.com,
cpufreq@...r.kernel.org, x86@...nel.org,
linux-kernel@...r.kernel.org
Subject: Re: [PATCH 1/5] cpufreq: Unify sysfs attribute definition macros
From: Thomas Renninger <trenn@...e.de>
Date: Tue, Mar 23, 2010 at 12:07:29PM +0100
> > +#define define_one_global_ro(_name) \
> > +static struct global_attr _name = \
> > +__ATTR(_name, 0444, show_##_name, NULL)
> > +
> > +#define define_one_global_rw(_name) \
> > +static struct global_attr _name = \
> > +__ATTR(_name, 0644, show_##_name, store_##_name)
>
> These sound like too general names in global space.
> And are unrelated to cpufreq(.h).
maybe call them cpufreq_define_(global|freq)_* then?
> Eventually you get them into sysfs.h with another name
> or just duplicate them?
Well, struct freq_attr for example is cpufreq-specific attribute,
AFAICT. So, keeping them in cpufreq.h should be fine, no?
--
Regards/Gruss,
Boris.
--
Advanced Micro Devices, Inc.
Operating Systems Research Center
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists