• Hanna V. Linder's avatar
    [PATCH] Add class support to cpuid.c · cca24737
    Hanna V. Linder authored
    This patch adds class support to arch/i386/kernel/cpuid.c. This enables udev
    support. I have tested on a 2-way SMP system and on a 2-way built as UP.
    Here are the results for the SMP:
    
    [hlinder@w-hlinder2 hlinder]$ tree /sys/class/cpuid
    /sys/class/cpuid
    |-- cpu0
    |   `-- dev
    `-- cpu1
        `-- dev
    
    2 directories, 2 files
    [hlinder@w-hlinder2 hlinder]$ more /sys/class/cpuid/cpu0/dev
    203:0
    [hlinder@w-hlinder2 hlinder]$ more /sys/class/cpuid/cpu1/dev
    203:1
    [hlinder@w-hlinder2 hlinder]$
    
    And for the UP:
    
    [root@w-hlinder2 root]# tree /sys/class/cpuid
    /sys/class/cpuid
    `-- cpu0
        `-- dev
    
    1 directory, 1 file
    Signed-off-by: default avatarGreg Kroah-Hartman <greg@kroah.com>
    cca24737
cpuid.c 4.57 KB