[PATCH] ppc64 procfs cleanup

Anton Blanchard anton at samba.org
Thu Feb 26 10:05:39 EST 2004


> +	if (rtas_token("ibm,update-flash-64-and-reboot") ==
> +		       RTAS_UNKNOWN_SERVICE) {
> +		printk(KERN_ERR "rtas_flash: no firmware flash support\n");
> +		return 1;
>
> Can we not add this? :)  The current module init creates the three /proc
> files regardless, and handles the case of "function not supported" with
> a certain return code upon /proc file read.

Im thinking Linus and his G5 here :) We have a bunch of stuff thats pseries
specific that G5 should never know about. I just copied how scanlog
handles this (doesnt load if you dont have the required RTAS methods).

Im open to other suggestions, I guess we could do a platform & PSERIES
check.

Anton

** Sent via the linuxppc64-dev mail list. See http://lists.linuxppc.org/





More information about the Linuxppc64-dev mailing list