Removed the BeOS specific perfmon_kernel.h header - Haiku's kernel doesn't

export those functions. The log_coll stuff now uses system_time() instead
if enabled - that should be good enough.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@17567 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Axel Dörfler 2006-05-23 19:04:55 +00:00
parent c5f5d8347e
commit 48f09a2bd2
2 changed files with 6 additions and 42 deletions

View File

@ -1,36 +0,0 @@
/* ++++++++++
File: perfmon_kernel.h
Description: kernel mode interface to performance counters and time stamp
registers of 586 and 686 CPUs
DO NOT use these functions in the production code !!!
This interface WILL BE CHANGED in the next releases.
Copyright (c) 1998 by Be Incorporated. All Rights Reserved.
+++++ */
#ifndef _PERFMON_KERNEL_H
#define _PERFMON_KERNEL_H
#include <SupportDefs.h>
#ifdef __cplusplus
extern "C" {
#endif
#if __INTEL__
extern _IMPEXP_KERNEL uint64 read_msr(uint32 msr);
extern _IMPEXP_KERNEL void write_msr(uint32 msr, uint64 val);
extern _IMPEXP_KERNEL uint64 read_pmc(uint32 pmc);
extern _IMPEXP_KERNEL uint64 read_tsc(void);
#endif
#ifdef __cplusplus
}
#endif
#endif

View File

@ -1,7 +1,6 @@
/*
Copyright (c) 2002, Thomas Kurschel
Part of Radeon driver
Both kernel and user space part.
@ -10,12 +9,13 @@
*/
#include "log_coll.h"
#include <KernelExport.h>
#include <OS.h>
#include <stdlib.h>
#include <stdarg.h>
#include <perfmon_kernel.h>
#include "log_coll.h"
#include <OS.h>
#include <string.h>
typedef struct log_info_t {
@ -47,7 +47,7 @@ void log( log_info *li, uint16 what, const uint8 num_args, ... )
entry = (log_entry *)&li->log_buffer[pos];
entry->tsc = read_tsc();
entry->tsc = system_time();
entry->what = what;
entry->num_args = num_args;