diff options
author | Miod Vallat <miod@cvs.openbsd.org> | 2006-03-04 12:33:18 +0000 |
---|---|---|
committer | Miod Vallat <miod@cvs.openbsd.org> | 2006-03-04 12:33:18 +0000 |
commit | 26c655e3cf5616d6dec0c7bdef43312aff093c90 (patch) | |
tree | 47ae60028eb3a61c0f79d78fab1244c6bebf8d7d /sys/arch/alpha/tc/tc_3000_500.c | |
parent | 247e1d3fc4fdac9fd4de1621eb55e1702f9af030 (diff) |
Better names for turbochannel event counters.
Diffstat (limited to 'sys/arch/alpha/tc/tc_3000_500.c')
-rw-r--r-- | sys/arch/alpha/tc/tc_3000_500.c | 15 |
1 files changed, 6 insertions, 9 deletions
diff --git a/sys/arch/alpha/tc/tc_3000_500.c b/sys/arch/alpha/tc/tc_3000_500.c index 94aee0a09cd..10b7807f481 100644 --- a/sys/arch/alpha/tc/tc_3000_500.c +++ b/sys/arch/alpha/tc/tc_3000_500.c @@ -1,4 +1,4 @@ -/* $OpenBSD: tc_3000_500.c,v 1.12 2004/06/28 02:28:43 aaron Exp $ */ +/* $OpenBSD: tc_3000_500.c,v 1.13 2006/03/04 12:33:17 miod Exp $ */ /* $NetBSD: tc_3000_500.c,v 1.24 2001/07/27 00:25:21 thorpej Exp $ */ /* @@ -104,6 +104,7 @@ struct tcintr { int (*tci_func)(void *); void *tci_arg; struct evcount tci_count; + char tci_name[12]; } tc_3000_500_intr[TC_3000_500_NCOOKIES]; u_int32_t tc_3000_500_imask; /* intrs we want to ignore; mirrors IMR. */ @@ -111,7 +112,6 @@ u_int32_t tc_3000_500_imask; /* intrs we want to ignore; mirrors IMR. */ void tc_3000_500_intr_setup() { - char *cp; u_long i; /* @@ -130,13 +130,10 @@ tc_3000_500_intr_setup() for (i = 0; i < TC_3000_500_NCOOKIES; i++) { tc_3000_500_intr[i].tci_func = tc_3000_500_intrnull; tc_3000_500_intr[i].tci_arg = (void *)i; - - cp = malloc(12, M_DEVBUF, M_NOWAIT); - if (cp == NULL) - panic("tc_3000_500_intr_setup"); - snprintf(cp, 12, "slot %lu", i); - evcount_attach(&tc_3000_500_intr[i].tci_count, "tc", NULL, - &evcount_intr); + snprintf(tc_3000_500_intr[i].tci_name, + sizeof tc_3000_500_intr[i].tci_name, "tc slot %u", i); + evcount_attach(&tc_3000_500_intr[i].tci_count, + tc_3000_500_intr[i].tci_name, NULL, &evcount_intr); } } |