Skip to contentSkip to conversation

sysfs cpu entry

DISCUSSION Kevin Diggs 3 participants 4 messages Apr 25, 2008 – Apr 26, 2008

lore
Share & tools
lore
#0 lore raw

Hi,

Can someone suggest where to add the code for a cpu
(/sys/devices/system/cpu/cpu0) entry in sysfs?

The 2.6.24 release has a sysfs.c file but it only seems to be used for
64-bit? Anyone know why? What kind of planetary disasters will I create if I allow it to be used in 32-bit as well?

kevin

P.S.: On an unrelated note, anyone know where to start looking for problems in pmac_zilog. My 8600 modem which worked fine in 2.4 is now essentially useless. Some problem with handshaking, I think.

#1 lore raw
Quoted 9 lines · Kevin Diggs

Hi,

Can someone suggest where to add the code for a cpu
(/sys/devices/system/cpu/cpu0) entry in sysfs?

The 2.6.24 release has a sysfs.c file but it only seems to be used
for 64-bit? Anyone know why? What kind of planetary disasters will I create if I allow it to be used in 32-bit as well?

kevin

There's no huge harm just make sure that you fixup things to only expose registers that exist on a 32-bit part.

What 32-bit chip are you looking to enable this for?

- k

#2 lore raw
Quoted 5 lines · Kumar Gala

What 32-bit chip are you looking to enable this for?

- k

I am working on some stuff for the 750GX

kevin

#3 lore raw
In reply to Kevin Diggs
Quoted 3 lines · Kevin Diggs

P.S.: On an unrelated note, anyone know where to start looking for problems in pmac_zilog. My 8600 modem which worked fine in 2.4 is now essentially useless. Some problem with handshaking, I think.

It's possible that handshaking is broken, I remember some nasty tricks with it on some Apple HW and I may have gotten that wrong...

Ben.