[Skiboot] [PATCH] interrupts: Convert P8 IRQ assignment to functions

Benjamin Herrenschmidt benh at kernel.crashing.org
Mon Sep 14 17:44:54 AEST 2015


On Mon, 2015-09-14 at 17:15 +1000, Alistair Popple wrote:

> Are you suggesting we add a proc_gen_p8vnl to the proc_gen enum used
> for 
> struct proc_chip -> type or just reading the PVR again in
> get_chip_id_bits()? 
> It looked like adding another processor to the enum would be a pain
> hence the 
> ugliness above, but reading the PVR is easy enough.


No, we already have this:

/* Chip type */
enum proc_chip_type {
	PROC_CHIP_UNKNOWN,
	PROC_CHIP_P7,
	PROC_CHIP_P7P,
	PROC_CHIP_P8_MURANO,
	PROC_CHIP_P8_VENICE,
	PROC_CHIP_P8_NAPLES,
};




More information about the Skiboot mailing list