From owner-freebsd-current@FreeBSD.ORG Mon Jan 14 18:20:23 2008 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id DD0E616A420 for ; Mon, 14 Jan 2008 18:20:23 +0000 (UTC) (envelope-from vermaden@interia.pl) Received: from smtp4.poczta.interia.pl (smtp35.poczta.interia.pl [80.48.65.35]) by mx1.freebsd.org (Postfix) with ESMTP id 6C6CE13C442 for ; Mon, 14 Jan 2008 18:20:23 +0000 (UTC) (envelope-from vermaden@interia.pl) Received: by smtp4.poczta.interia.pl (INTERIA.PL, from userid 502) id 2CA3750A6B0; Mon, 14 Jan 2008 18:53:38 +0100 (CET) Received: from f38.poczta.interia.pl (f38.poczta.interia.pl [10.217.2.38]) by smtp4.poczta.interia.pl (INTERIA.PL) with ESMTP id BE54850A542 for ; Mon, 14 Jan 2008 18:53:37 +0100 (CET) Received: from localhost (localhost [127.0.0.1]) by f38.poczta.interia.pl (Postfix) with ESMTP id 775EF3E8846 for ; Mon, 14 Jan 2008 18:53:37 +0100 (CET) Date: 14 Jan 2008 18:53:37 +0100 From: vermaden To: freebsd-current@freebsd.org MIME-Version: 1.0 Content-Type: TEXT/plain; CHARSET=ISO-8859-2 Content-Transfer-Encoding: QUOTED-PRINTABLE X-ORIGINATE-IP: 85.89.167.26 X-Mailer: PSE Message-Id: <20080114175337.775EF3E8846@f38.poczta.interia.pl> X-EMID: 1c540acc X-Mailman-Approved-At: Tue, 15 Jan 2008 04:32:11 +0000 Subject: RFC: Adding a hw.features[2] sysctl X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 14 Jan 2008 18:20:23 -0000 current output # sysctl dev.cpu: dev.cpu.0.%desc: ACPI CPU dev.cpu.0.%driver: cpu dev.cpu.0.%location: handle=3D\_PR_.CPU0 dev.cpu.0.%pnpinfo: _HID=3Dnone _UID=3D0 dev.cpu.0.%parent: acpi0 dev.cpu.0.cx_supported: C1/0 dev.cpu.0.cx_lowest: C1 dev.cpu.0.cx_usage: 100.00% So why not transform this: CPU: Dual Core AMD Opteron(tm) Processor 280 (2411.12-MHz K8-class CPU) Origin =3D "AuthenticAMD" Id =3D 0x20f12 Stepping =3D 2 Features=3D0x178bfbff Features2=3D0x1 AMD Features=3D0xe2500800 AMD Features2=3D0x3 Cores per package: 2 into this: # sysctl dev.cpu dev.cpu.0.model: Dual Core AMD Opteron(tm) Processor 280 dev.cpu.0.class: K8-class dev.cpu.0.frequency: 2411.12 dev.cpu.0.features: FPU VME DE PSE TSC MSR PAE MCE CX8 APIC SEP MTRR PGE MC= A CMOV PAT PSE36 CLFLUSH MMX FXSR SSE SSE2 HTT SYSCALL NX MMX+ FFXSR LM 3DN= ow!+ 3DNow! LAHF CMP dev.cpu.0.cores: 2 <-- but that would propably be the same as kern.smp.cpus= : 2 so link it to the value of kern.smp.cpus or do not even create it. I also do not like idea of /dev/cpuinfo it is FreeBSD not Linux: http://wiki.freebsd.org/AvoidingLinuxisms Regards vermaden ---------------------------------------------------------------------- Kupujesz laptopa? Sprawdz nasze testy! Kliknij >>> http://link.interia.pl/f1cd1