mirror of
https://git.rwth-aachen.de/acs/public/villas/node/
synced 2025-03-09 00:00:00 +01:00
utils: remove obsolete function
This commit is contained in:
parent
eaa3f60b12
commit
71296da232
1 changed files with 0 additions and 15 deletions
15
lib/utils.c
15
lib/utils.c
|
@ -284,21 +284,6 @@ ssize_t read_random(char *buf, size_t len)
|
|||
return bytes;
|
||||
}
|
||||
|
||||
void rdtsc_sleep(uint64_t nanosecs, uint64_t start)
|
||||
{
|
||||
uint64_t cycles;
|
||||
|
||||
/** @todo Replace the hard coded CPU clock frequency */
|
||||
cycles = (double) nanosecs / (1e9 / 3392389000);
|
||||
|
||||
if (start == 0)
|
||||
start = rdtsc();
|
||||
|
||||
do {
|
||||
__asm__("nop");
|
||||
} while (rdtsc() - start < cycles);
|
||||
}
|
||||
|
||||
/* Setup exit handler */
|
||||
int signals_init(void (*cb)(int signal, siginfo_t *sinfo, void *ctx))
|
||||
{
|
||||
|
|
Loading…
Add table
Reference in a new issue