2002-11-02 00:24:14

by Martin Waitz

[permalink] [raw]
Subject: cpu_devclass removed from cpu.h

hi :)

the 'extern struct device_class cpu_devclass;' was removed from cpu.h
lately.
is this intentional or will it come back in some other include file?

i need that class to be able to register a interface for cpus
in my tree.


thanks

--
CU, / Friedrich-Alexander University Erlangen, Germany
Martin Waitz // [Tali on IRCnet] [tali.home.pages.de] _________
______________/// - - - - - - - - - - - - - - - - - - - - ///
dies ist eine manuell generierte mail, sie beinhaltet //
tippfehler und ist auch ohne grossbuchstaben gueltig. /
-
Wer bereit ist, grundlegende Freiheiten aufzugeben, um sich
kurzfristige Sicherheit zu verschaffen, der hat weder Freiheit
noch Sicherheit verdient.
Benjamin Franklin (1706 - 1790)


Attachments:
(No filename) (743.00 B)
(No filename) (189.00 B)
Download all attachments

2002-11-04 19:29:05

by Matthew Dobson

[permalink] [raw]
Subject: Re: cpu_devclass removed from cpu.h

Martin Waitz wrote:
> hi :)
>
> the 'extern struct device_class cpu_devclass;' was removed from cpu.h
> lately.
> is this intentional or will it come back in some other include file?
>
> i need that class to be able to register a interface for cpus
> in my tree.
>
>
> thanks

There were no immediate plans to put that back in linux/cpu.h. It is
now defined and used in drivers/base/cpu.c. cpu_devclass is registered
with driverfs (err.. sysfs) there. If you need it, you should be able
to reference it... just stick an extern in your file.

Check out the thread '[patch] Core sysfs Topology 2.5.45'. These are
the patches that modified the sysfs topology system.

Cheers!

-Matt

2002-11-05 22:02:54

by Martin Waitz

[permalink] [raw]
Subject: Re: cpu_devclass removed from cpu.h

hi :)

On Mon, Nov 04, 2002 at 11:31:13AM -0800, Matthew Dobson wrote:
> If you need it, you should be able to reference it... just stick an
> extern in your file.
that's what i did...

however, it' of course not the place it belongs to.

--
CU, / Friedrich-Alexander University Erlangen, Germany
Martin Waitz // [Tali on IRCnet] [tali.home.pages.de] _________
______________/// - - - - - - - - - - - - - - - - - - - - ///
dies ist eine manuell generierte mail, sie beinhaltet //
tippfehler und ist auch ohne grossbuchstaben gueltig. /
-
Wer bereit ist, grundlegende Freiheiten aufzugeben, um sich
kurzfristige Sicherheit zu verschaffen, der hat weder Freiheit
noch Sicherheit verdient.
Benjamin Franklin (1706 - 1790)


Attachments:
(No filename) (744.00 B)
(No filename) (189.00 B)
Download all attachments