Skip to contentSkip to conversation

CPU "driver"?

parisc-linux Grant Grundler 1 participant 1 message Oct 16, 2000

lore
Share & tools
lore
#0 lore raw

I've start thinking about our SMP support.
The PDC PAT work I'm doing now will also require some changes to iosapic.c and how iosapic gets information from the firmware.

This led me to the idea that we should have a driver to claim CPU instances. Some advantages

o CPU initialization code in fewer places. It's currently spread about in the inventory.c, setup.c, etc files.
+ fill in CPU specific data (eg id_eid or HPA) from PDC calls.
+ initialize other per CPU instance data (eg counters)
+ allocate/initialize per CPU IRQ_REGION and interupt handling.

o dynamic CPU add/removal possible using the driver callback's. (well, at least for now the add)
+ single place to cram CPU specific add/remove code.

I'm not sure what the drawbacks would be (SMP rendevous?) but like to hear from others if I should or shouldn't write such a driver.

thanks,
grant