forked from teawater/libhermit
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathinit.c
More file actions
47 lines (37 loc) · 863 Bytes
/
init.c
File metadata and controls
47 lines (37 loc) · 863 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
/*
* =====================================================================================
*
* Filename: init.c
*
* Description:
*
* Version: 1.0
* Created: 25.07.2014 15:06:05
* Revision: none
* Compiler: gcc
*
* Author: Georg Wassen (gw) (),
* Company:
*
* =====================================================================================
*/
#include "init.h"
#include "rdtsc.h"
int init(struct opt *opt)
{
/*
* initialize (if required)
* e.g. read number of processors available or cache parameters
*/
opt->tps = rdtsc_ticks_per_sec(); // does not work reliably...
//opt->tps = 2530000000;
return 0;
}
int deinit(struct opt *opt)
{
/*
* de-initialize (if required)
* e.g. free allocated resources
*/
return 0;
}