CVS commit: src/etc
Module Name:src Committed By: apb Date: Wed Oct 26 09:02:20 UTC 2011 Modified Files: src/etc: MAKEDEV.tmpl Log Message: Change the pattern for matching ttys to allow any number of digits, (tty[0-9]*). This should fix PR 45514. To generate a diff of this commit: cvs rdiff -u -r1.144 -r1.145 src/etc/MAKEDEV.tmpl Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files. Modified files: Index: src/etc/MAKEDEV.tmpl diff -u src/etc/MAKEDEV.tmpl:1.144 src/etc/MAKEDEV.tmpl:1.145 --- src/etc/MAKEDEV.tmpl:1.144 Wed Oct 12 20:57:55 2011 +++ src/etc/MAKEDEV.tmpl Wed Oct 26 09:02:20 2011 @@ -1,5 +1,5 @@ #!/bin/sh - -# $NetBSD: MAKEDEV.tmpl,v 1.144 2011/10/12 20:57:55 apb Exp $ +# $NetBSD: MAKEDEV.tmpl,v 1.145 2011/10/26 09:02:20 apb Exp $ # # Copyright (c) 2003,2007,2008 The NetBSD Foundation, Inc. # All rights reserved. @@ -1203,7 +1203,7 @@ tty[0-9]|tty0[0-9]) lndev dtyZ$unit dty0${unit} ;; -tty0*|tty1*|tty[0-9]) +tty[0-9]*) unit=${i#tty} ounit=00$unit ounit=${ounit#${ounit%??}}
CVS commit: src/libexec/ld.elf_so/arch/powerpc
Module Name:src Committed By: chs Date: Wed Oct 26 15:56:58 UTC 2011 Modified Files: src/libexec/ld.elf_so/arch/powerpc: Makefile.inc Log Message: avoid linker warnings with the new binutils by not forcing ld.elf_so to be soft-float. the floating-point usage in ld.elf_so is only because of stdarg functions like printf(), and gcc 4.5 is good about not actually executing the FP instructions in such functions unless FP values are passed to them, which ld.elf_so doesn't do. To generate a diff of this commit: cvs rdiff -u -r1.11 -r1.12 src/libexec/ld.elf_so/arch/powerpc/Makefile.inc Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files. Modified files: Index: src/libexec/ld.elf_so/arch/powerpc/Makefile.inc diff -u src/libexec/ld.elf_so/arch/powerpc/Makefile.inc:1.11 src/libexec/ld.elf_so/arch/powerpc/Makefile.inc:1.12 --- src/libexec/ld.elf_so/arch/powerpc/Makefile.inc:1.11 Thu Oct 22 21:56:13 2009 +++ src/libexec/ld.elf_so/arch/powerpc/Makefile.inc Wed Oct 26 15:56:58 2011 @@ -1,9 +1,9 @@ -# $NetBSD: Makefile.inc,v 1.11 2009/10/22 21:56:13 skrll Exp $ +# $NetBSD: Makefile.inc,v 1.12 2011/10/26 15:56:58 chs Exp $ SRCS+= rtld_start.S ppc_reloc.c # XXX Should not be in CPPFLAGS! -CPPFLAGS+= -fpic -msoft-float +CPPFLAGS+= -fpic CPPFLAGS+= -DELFSIZE=32
CVS commit: src/sys/arch/powerpc/include
Module Name:src Committed By: chs Date: Wed Oct 26 15:57:27 UTC 2011 Modified Files: src/sys/arch/powerpc/include: Makefile.inc Log Message: avoid linker warnings with the new binutils by not forcing rump modules to be soft-float. To generate a diff of this commit: cvs rdiff -u -r1.1 -r1.2 src/sys/arch/powerpc/include/Makefile.inc Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files. Modified files: Index: src/sys/arch/powerpc/include/Makefile.inc diff -u src/sys/arch/powerpc/include/Makefile.inc:1.1 src/sys/arch/powerpc/include/Makefile.inc:1.2 --- src/sys/arch/powerpc/include/Makefile.inc:1.1 Thu Dec 19 19:36:26 2002 +++ src/sys/arch/powerpc/include/Makefile.inc Wed Oct 26 15:57:26 2011 @@ -1,8 +1,10 @@ -# $NetBSD: Makefile.inc,v 1.1 2002/12/19 19:36:26 thorpej Exp $ +# $NetBSD: Makefile.inc,v 1.2 2011/10/26 15:57:26 chs Exp $ .if !defined(_POWERPC_MAKEFILE_INC) _POWERPC_MAKEFILE_INC= yes +.if !defined(RUMPKERNEL) CFLAGS+= -msoft-float +.endif .endif
CVS commit: src/sys/arch/vax/vax
Module Name:src Committed By: martin Date: Wed Oct 26 20:24:41 UTC 2011 Modified Files: src/sys/arch/vax/vax: crl.c Log Message: Obvious copypasto, PR port-vax/45525 from Henning Petersen To generate a diff of this commit: cvs rdiff -u -r1.29 -r1.30 src/sys/arch/vax/vax/crl.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files. Modified files: Index: src/sys/arch/vax/vax/crl.c diff -u src/sys/arch/vax/vax/crl.c:1.29 src/sys/arch/vax/vax/crl.c:1.30 --- src/sys/arch/vax/vax/crl.c:1.29 Tue Dec 14 23:44:49 2010 +++ src/sys/arch/vax/vax/crl.c Wed Oct 26 20:24:41 2011 @@ -1,4 +1,4 @@ -/* $NetBSD: crl.c,v 1.29 2010/12/14 23:44:49 matt Exp $ */ +/* $NetBSD: crl.c,v 1.30 2011/10/26 20:24:41 martin Exp $ */ /*- * Copyright (c) 1982, 1986 The Regents of the University of California. * All rights reserved. @@ -40,7 +40,7 @@ */ #include sys/cdefs.h -__KERNEL_RCSID(0, $NetBSD: crl.c,v 1.29 2010/12/14 23:44:49 matt Exp $); +__KERNEL_RCSID(0, $NetBSD: crl.c,v 1.30 2011/10/26 20:24:41 martin Exp $); #include sys/param.h #include sys/systm.h @@ -217,7 +217,7 @@ crlintr(void *arg) snprintb(sbuf, sizeof(sbuf), CRLCS_BITS, crlstat.crl_cs); -snprintb(sbuf, sizeof(sbuf), CRLDS_BITS, +snprintb(sbuf2, sizeof(sbuf2), CRLDS_BITS, crlstat.crl_ds); printf(crlcs=0x%s, crlds=0x%s\n, sbuf, sbuf2); break;
CVS commit: src/sys/sys
Module Name:src Committed By: jruoho Date: Thu Oct 27 05:13:04 UTC 2011 Modified Files: src/sys/sys: cpufreq.h Log Message: Bump CPUFREQ_LATENCY_MAX to UINT32_MAX. To generate a diff of this commit: cvs rdiff -u -r1.4 -r1.5 src/sys/sys/cpufreq.h Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files. Modified files: Index: src/sys/sys/cpufreq.h diff -u src/sys/sys/cpufreq.h:1.4 src/sys/sys/cpufreq.h:1.5 --- src/sys/sys/cpufreq.h:1.4 Tue Oct 25 11:35:49 2011 +++ src/sys/sys/cpufreq.h Thu Oct 27 05:13:04 2011 @@ -1,4 +1,4 @@ -/* $NetBSD: cpufreq.h,v 1.4 2011/10/25 11:35:49 jruoho Exp $ */ +/* $NetBSD: cpufreq.h,v 1.5 2011/10/27 05:13:04 jruoho Exp $ */ /*- * Copyright (c) 2011 The NetBSD Foundation, Inc. @@ -44,7 +44,7 @@ #define CPUFREQ_NAME_MAX 16 #define CPUFREQ_STATE_MAX 32 -#define CPUFREQ_LATENCY_MAX UINT16_MAX +#define CPUFREQ_LATENCY_MAX UINT32_MAX #define CPUFREQ_STATE_ENABLED UINT32_MAX #define CPUFREQ_STATE_DISABLED UINT32_MAX - 1
CVS commit: src
Module Name:src Committed By: jruoho Date: Thu Oct 27 05:25:08 UTC 2011 Modified Files: src/share/man/man9: cpufreq.9 src/sys/dev/acpi: acpi_cpu.c src/sys/kern: subr_cpufreq.c Log Message: Revert the revision 1.5 in cpufreq(9). Instead, document that the KPI can not be used before interrupts have been enabled. Suggested by macallan@. To generate a diff of this commit: cvs rdiff -u -r1.5 -r1.6 src/share/man/man9/cpufreq.9 cvs rdiff -u -r1.46 -r1.47 src/sys/dev/acpi/acpi_cpu.c cvs rdiff -u -r1.7 -r1.8 src/sys/kern/subr_cpufreq.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files. Modified files: Index: src/share/man/man9/cpufreq.9 diff -u src/share/man/man9/cpufreq.9:1.5 src/share/man/man9/cpufreq.9:1.6 --- src/share/man/man9/cpufreq.9:1.5 Thu Oct 20 06:48:24 2011 +++ src/share/man/man9/cpufreq.9 Thu Oct 27 05:25:08 2011 @@ -1,4 +1,4 @@ -.\ $NetBSD: cpufreq.9,v 1.5 2011/10/20 06:48:24 jruoho Exp $ */ +.\ $NetBSD: cpufreq.9,v 1.6 2011/10/27 05:25:08 jruoho Exp $ */ .\ .\ Copyright (c) 2011 Jukka Ruohonen jruohonen.iki.fi .\ All rights reserved. @@ -25,7 +25,7 @@ .\ ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE .\ POSSIBILITY OF SUCH DAMAGE. .\ -.Dd October 20, 2011 +.Dd October 27, 2011 .Dt CPUFREQ 9 .Os .Sh NAME @@ -115,7 +115,11 @@ a machine-dependent backend with the fra Only one backend can be registered. Upon successful completion, .Fn cpufreq_register -returns 0. +returns 0 and sets the frequency of all processors +to the maximum available level. +Note that the registration can be done +only after interrupts have been enabled; cf. +.Xr config_interrupts 9 . .Pp The following elements in .Vt struct cpufreq Index: src/sys/dev/acpi/acpi_cpu.c diff -u src/sys/dev/acpi/acpi_cpu.c:1.46 src/sys/dev/acpi/acpi_cpu.c:1.47 --- src/sys/dev/acpi/acpi_cpu.c:1.46 Thu Oct 20 06:57:23 2011 +++ src/sys/dev/acpi/acpi_cpu.c Thu Oct 27 05:25:07 2011 @@ -1,4 +1,4 @@ -/* $NetBSD: acpi_cpu.c,v 1.46 2011/10/20 06:57:23 jruoho Exp $ */ +/* $NetBSD: acpi_cpu.c,v 1.47 2011/10/27 05:25:07 jruoho Exp $ */ /*- * Copyright (c) 2010, 2011 Jukka Ruohonen jruoho...@iki.fi @@ -27,7 +27,7 @@ * SUCH DAMAGE. */ #include sys/cdefs.h -__KERNEL_RCSID(0, $NetBSD: acpi_cpu.c,v 1.46 2011/10/20 06:57:23 jruoho Exp $); +__KERNEL_RCSID(0, $NetBSD: acpi_cpu.c,v 1.47 2011/10/27 05:25:07 jruoho Exp $); #include sys/param.h #include sys/cpu.h @@ -327,12 +327,6 @@ acpicpu_start(device_t self) if (cpufreq_register(cf) != 0) aprint_error_dev(self, failed to register cpufreq\n); - else { - /* - * Initialize the states to P0. - */ - cpufreq_set_all(sc-sc_pstate[0].ps_freq); - } } } Index: src/sys/kern/subr_cpufreq.c diff -u src/sys/kern/subr_cpufreq.c:1.7 src/sys/kern/subr_cpufreq.c:1.8 --- src/sys/kern/subr_cpufreq.c:1.7 Tue Oct 25 18:26:09 2011 +++ src/sys/kern/subr_cpufreq.c Thu Oct 27 05:25:07 2011 @@ -1,4 +1,4 @@ -/* $NetBSD: subr_cpufreq.c,v 1.7 2011/10/25 18:26:09 christos Exp $ */ +/* $NetBSD: subr_cpufreq.c,v 1.8 2011/10/27 05:25:07 jruoho Exp $ */ /*- * Copyright (c) 2011 The NetBSD Foundation, Inc. @@ -30,11 +30,12 @@ * POSSIBILITY OF SUCH DAMAGE. */ #include sys/cdefs.h -__KERNEL_RCSID(0, $NetBSD: subr_cpufreq.c,v 1.7 2011/10/25 18:26:09 christos Exp $); +__KERNEL_RCSID(0, $NetBSD: subr_cpufreq.c,v 1.8 2011/10/27 05:25:07 jruoho Exp $); #include sys/param.h #include sys/cpu.h #include sys/cpufreq.h +#include sys/kernel.h #include sys/kmem.h #include sys/mutex.h #include sys/time.h @@ -62,9 +63,12 @@ cpufreq_init(void) int cpufreq_register(struct cpufreq *cf) { - uint32_t c, i, j, k; + uint32_t c, i, j, k, m; int rv; + if (cold != 0) + return EBUSY; + KASSERT(cf != NULL); KASSERT(cf_backend != NULL); KASSERT(cf-cf_get_freq != NULL); @@ -138,6 +142,8 @@ cpufreq_register(struct cpufreq *cf) return rv; } + m = cpufreq_get_max(); + cpufreq_set_all_raw(m); mutex_exit(cpufreq_lock); return 0;