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

Re: LSB1.1: /proc/cpuinfo

On Fri, 4 Jan 2002, Alan Cox wrote:

> > I did read the app notes pertaining to this, and felt that it was an excessive
> > burdon on the application considering the kernel had already done the work.
> The things that actually matter are like 10 lines of GNU C with a little
> __asm__ block. The code is out there in GPL form and its shorter than
> parsing /proc

If you are refering to the code in arch/i386/kernel/setup.c, the code that
determines the features is spread over several hundred lines of code which
makes decisions based on model info and various erratta.

If an application included this directly into itself, then it wouldn't be able
to handle new CPU models, erratta, etc. By letting the kernel handle it, it
will always get the best possible info.


Stuart R. Anderson                               anderson@metrolink.com

Metro Link Incorporated                          South Carolina Office
5807 North Andrews Way                           129 Secret Cove Drive
Fort Lauderdale, Florida 33309                   Lexington, SC 29072
voice: 954.660.2500                              voice: 803.951.3630
http://www.metrolink.com/                        XFree86 Core Team

Reply to: