• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 char   netcpu_none_id[]="\
2 @(#)netcpu_none.c (c) Copyright 2005, Hewlett-Packard Company, Version 2.4.0";
3 
4 #if HAVE_CONFIG_H
5 # include <config.h>
6 #endif
7 
8 #include <stdio.h>
9 
10 #if HAVE_INTTYPES_H
11 # include <inttypes.h>
12 #else
13 # if HAVE_STDINT_H
14 #  include <stdint.h>
15 # endif
16 #endif
17 
18 #include "netsh.h"
19 #include "netlib.h"
20 
21 void
cpu_util_init(void)22 cpu_util_init(void)
23 {
24   return;
25 }
26 
27 void
cpu_util_terminate(void)28 cpu_util_terminate(void)
29 {
30   return;
31 }
32 
33 int
get_cpu_method(void)34 get_cpu_method(void)
35 {
36   return CPU_UNKNOWN;
37 }
38 
39 void
get_cpu_idle(uint64_t * res)40 get_cpu_idle(uint64_t *res)
41 {
42   return;
43 }
44 
45 float
calibrate_idle_rate(int iterations,int interval)46 calibrate_idle_rate(int iterations, int interval)
47 {
48   return 0.0;
49 }
50 
51 float
calc_cpu_util_internal(float elapsed_time)52 calc_cpu_util_internal(float elapsed_time)
53 {
54   return -1.0;
55 }
56 
57 void
cpu_start_internal(void)58 cpu_start_internal(void)
59 {
60   return;
61 }
62 
63 void
cpu_stop_internal(void)64 cpu_stop_internal(void)
65 {
66   return;
67 }
68