Diff for libplaton/platon/cpu/bogomips.h between version 1.2 and 1.3
| version 1.2, 2002/04/19 01:14:04 |
version 1.3, 2002/09/19 23:18:00 |
|
|
| #ifndef _PLATON_UTILS_BOGOMIPS_H |
#ifndef _PLATON_MISC_BOGOMIPS_H |
| #define _PLATON_UTILS_BOGOMIPS_H |
#define _PLATON_MISC_BOGOMIPS_H |
| |
|
| /* (c) 2002 Ondrej Jombik <nepto@pobox.sk> [5/2/2002] */ |
/** |
| |
* @file misc/bogomips.h |
| |
* @brief Linux userspace BogoMIPS counting |
| |
* @author Linus Torvalds and other contributors of Linux/2.2 kernel |
| |
* @version \$Id$ |
| |
* @date 2001-2002 [created: 5/2/2002] |
| |
*/ |
| |
|
| |
/** Alias for get_userspace_loops_per_sec() */ |
| #define get_loops_per_sec get_userspace_loops_per_sec |
#define get_loops_per_sec get_userspace_loops_per_sec |
| |
|
| #ifdef __cplusplus |
#ifdef __cplusplus |
| extern "C" { |
extern "C" { |
| #endif |
#endif |
| |
|
| /* |
/** |
| * get_userspace_loops_per_sec() |
* Get BogoMIPS |
| * |
* |
| * Returns number of loops per seconds in userspace, -1 on error. |
* @return number of loops per seconds in userspace, -1 on error |
| |
* |
| |
* Note, that this function does not work. Reason for this is unclear. |
| */ |
*/ |
| unsigned long get_userspace_loops_per_sec(); |
unsigned long get_userspace_loops_per_sec(void); |
| |
|
| #ifdef __cplusplus |
#ifdef __cplusplus |
| } |
} |
| #endif |
#endif |
| |
|
| #endif /* #ifndef _PLATON_UTILS_BOGOMIPS_H */ |
#endif /* #ifndef _PLATON_MISC_BOGOMIPS_H */ |
| |
|
Platon Group <platon@platon.org> http://platon.org/
|
|