Re: [PATCH] Display online cpus value in preference to kt->cpus

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Mon, 2010-03-08 at 14:52 -0500, Dave Anderson wrote:
> 
> For now, all I was thinking would be to simply change display_sys_stats()
> to something like:
> 
>         if (machine_type("PPC64"))
>                 your_function();       
>         else
>                 fprintf(fp, "        CPUS: %d\n", kt->cpus);
> 
> and since your_function() does not need to be in a machine-specific
> file, just put in kernel.c.  And you can also call it from the
> ppc64_display_machine_stats() function.

Hi Dave,

I like this particular solution best! Simple and straightforward. I'll
work on a patch that does exactly as suggested. I'll post it for review
once I have it done this afternoon. Thanks for the help!

regards,
-- 
Luciano Chavez <lnx1138@xxxxxxxxxxxxxxxxxx>
IBM Linux Technology Center

--
Crash-utility mailing list
Crash-utility@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/crash-utility

[Index of Archives]     [Fedora Development]     [Fedora Desktop]     [Fedora SELinux]     [Yosemite News]     [KDE Users]     [Fedora Tools]

 

Powered by Linux