Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/lib/libarch/i386 Deprecate the pmc functions in libi386. The...
details: https://anonhg.NetBSD.org/src/rev/61b79f0c5e61
branches: trunk
changeset: 351972:61b79f0c5e61
user: maxv <maxv%NetBSD.org@localhost>
date: Wed Mar 08 16:09:27 2017 +0000
description:
Deprecate the pmc functions in libi386. The parameters will be updated,
and we are not interested in maintaining this anyway. Now i386's pmc
interface is opaque, which is good.
diffstat:
lib/libarch/i386/i386_pmc.c | 20 ++++----------------
1 files changed, 4 insertions(+), 16 deletions(-)
diffs (42 lines):
diff -r b8296e88dd85 -r 61b79f0c5e61 lib/libarch/i386/i386_pmc.c
--- a/lib/libarch/i386/i386_pmc.c Wed Mar 08 16:05:29 2017 +0000
+++ b/lib/libarch/i386/i386_pmc.c Wed Mar 08 16:09:27 2017 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: i386_pmc.c,v 1.3 2000/09/13 05:22:12 thorpej Exp $ */
+/* $NetBSD: i386_pmc.c,v 1.4 2017/03/08 16:09:27 maxv Exp $ */
/*-
* Copyright (c) 2000 Zembu Labs, Inc.
@@ -44,29 +44,17 @@
int
i386_pmc_info(struct i386_pmc_info_args *args)
{
-
- if (sysarch(I386_PMC_INFO, args) == -1)
- return (-1);
-
- return (0);
+ return -1;
}
int
i386_pmc_startstop(struct i386_pmc_startstop_args *args)
{
-
- if (sysarch(I386_PMC_STARTSTOP, args) == -1)
- return (-1);
-
- return (0);
+ return -1;
}
int
i386_pmc_read(struct i386_pmc_read_args *args)
{
-
- if (sysarch(I386_PMC_READ, args) == -1)
- return (-1);
-
- return (0);
+ return -1;
}
Home |
Main Index |
Thread Index |
Old Index