Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S266204AbUFZM0q (ORCPT ); Sat, 26 Jun 2004 08:26:46 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S266894AbUFZM0q (ORCPT ); Sat, 26 Jun 2004 08:26:46 -0400 Received: from mail.gmx.net ([213.165.64.20]:42376 "HELO mail.gmx.net") by vger.kernel.org with SMTP id S266204AbUFZM0e (ORCPT ); Sat, 26 Jun 2004 08:26:34 -0400 Date: Sat, 26 Jun 2004 14:26:33 +0200 (MEST) From: =?ISO-8859-1?Q?=22Fabian_LoneStar_Fr=E9d=E9rick=22?= To: linux-kernel@vger.kernel.org MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="========GMXBoundary209671088252793" Subject: [PATCH 2.6.7-mm2] New procfs feature : cpuflags X-Priority: 3 (Normal) X-Authenticated: #9223398 Message-ID: <20967.1088252793@www46.gmx.net> X-Mailer: WWW-Mail 1.6 (Global Message Exchange) X-Flags: 0001 Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 9475 Lines: 150 This is a MIME encapsulated multipart message - please use a MIME-compliant e-mail program to open it. Dies ist eine mehrteilige Nachricht im MIME-Format - bitte verwenden Sie zum Lesen ein MIME-konformes Mailprogramm. --========GMXBoundary209671088252793 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Hi, This patch displays x86 flags in /proc/cpuflags : e.g. flag1 :yes flag2 :no flagx :yes ... PS:It works on x86 evaluating first processor flags (generic?). PS2:Why ? current cpuinfo displays all _available_ flags only and in queue mode. Regards, FabF -- "Sie haben neue Mails!" - Die GMX Toolbar informiert Sie beim Surfen! Jetzt aktivieren unter http://www.gmx.net/info --========GMXBoundary209671088252793 Content-Type: text/x-patch; name="cpuflags.diff" Content-Transfer-Encoding: base64 Content-Disposition: attachment; filename="cpuflags.diff" ZGlmZiAtTmF1ciBvcmlnfmNwdWZsYWdzL2FyY2gvaTM4Ni9rZX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GFnZSk7CisJcmV0dXJuIHByb2NfY2FsY19tZXRyaWNzKHBhZ2Us IHN0YXJ0LCBvZmYsIGNvdW50LCBlb2YsIGxlbik7CisjZW5kaWYKKwlyZXR1cm4gMDsKKworfQor CiBzdGF0aWMgaW50IG1lbWluZm9fcmVhZF9wcm9jKGNoYXIgKnBhZ2UsIGNoYXIgKipzdGFydCwg b2ZmX3Qgb2ZmLAogCQkJCSBpbnQgY291bnQsIGludCAqZW9mLCB2b2lkICpkYXRhKQogewpAQCAt Njc3LDYgKzY5MCw3IEBACiAJCXsibG9hZGF2ZyIsICAgICBsb2FkYXZnX3JlYWRfcHJvY30sCiAJ CXsidXB0aW1lIiwJdXB0aW1lX3JlYWRfcHJvY30sCiAJCXsibWVtaW5mbyIsCW1lbWluZm9fcmVh ZF9wcm9jfSwKKwkJeyJjcHVmbGFncyIsCWNwdWZsYWdzX3JlYWRfcHJvY30sCiAJCXsidmVyc2lv biIsCXZlcnNpb25fcmVhZF9wcm9jfSwKICNpZmRlZiBDT05GSUdfUFJPQ19IQVJEV0FSRQogCQl7 ImhhcmR3YXJlIiwJaGFyZHdhcmVfcmVhZF9wcm9jfSwK --========GMXBoundary209671088252793-- - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/