If the selection of the CPU capability is incorrect, what exactly does that 
mean to the kernel? Does that mean that linux has been running at the speed of 
the GP processors?

George Shedlock Jr
AEGON Information Technology
AEGON USA
502-560-3541
-----Original Message-----
From: Linux on 390 Port [mailto:[email protected]] On Behalf Of Martin 
Schwidefsky
Sent: Tuesday, February 16, 2010 3:11 AM
To: [email protected]
Subject: Re: CPU Capability values

On Mon, 15 Feb 2010 14:26:12 -0500
"Quay, Jonathan (IHG)" <[email protected]> wrote:

> zsles10sp3ctl:/sys/devices/system/cpu/cpu0 # cat capability
> 1760
>
> It looks like the kernel uses the wrong value.  IBM says that the
> "secondary" number is the IFL capability (lower is faster).

Hmm, that number is retrieved by this code snipped:

        rc = stsi(info, 1, 2, 2);
        if (rc == -ENOSYS)
                goto out;
        rc = 0;
        *capability = info->capability;

struct sysinfo_1_2_2 {
        char format;
        char reserved_0[1];
        unsigned short acc_offset;
        char reserved_1[24];
        unsigned int secondary_capability;
        unsigned int capability;
        unsigned short cpus_total;
        unsigned short cpus_configured;
        unsigned short cpus_standby;
        unsigned short cpus_reserved;
        unsigned short adjustment[0];
};

It always reports the primary capability. We'll investigate.

--
blue skies,
   Martin.

"Reality continues to ruin my life." - Calvin.

----------------------------------------------------------------------
For LINUX-390 subscribe / signoff / archive access instructions,
send email to [email protected] with the message: INFO LINUX-390 or visit
http://www.marist.edu/htbin/wlvindex?LINUX-390

----------------------------------------------------------------------
For LINUX-390 subscribe / signoff / archive access instructions,
send email to [email protected] with the message: INFO LINUX-390 or visit
http://www.marist.edu/htbin/wlvindex?LINUX-390

Reply via email to