clang-format
This commit is contained in:
@@ -36,14 +36,13 @@
|
||||
|
||||
#include <kern/time.h>
|
||||
|
||||
|
||||
/*
|
||||
* hardclock() is called on every CPU HZ times a second, possibly only
|
||||
* when the CPU is not idle, for scheduling.
|
||||
*/
|
||||
|
||||
/* hardclocks per second */
|
||||
#define HZ 100
|
||||
#define HZ 100
|
||||
|
||||
void hardclock_bootstrap(void);
|
||||
void hardclock(void);
|
||||
@@ -66,12 +65,10 @@ void gettime(struct timespec *ret);
|
||||
* sub: ret = t1 - t2
|
||||
*/
|
||||
|
||||
void timespec_add(const struct timespec *t1,
|
||||
const struct timespec *t2,
|
||||
struct timespec *ret);
|
||||
void timespec_sub(const struct timespec *t1,
|
||||
const struct timespec *t2,
|
||||
struct timespec *ret);
|
||||
void timespec_add(const struct timespec *t1, const struct timespec *t2,
|
||||
struct timespec *ret);
|
||||
void timespec_sub(const struct timespec *t1, const struct timespec *t2,
|
||||
struct timespec *ret);
|
||||
|
||||
/*
|
||||
* clocksleep() suspends execution for the requested number of seconds,
|
||||
@@ -79,5 +76,4 @@ void timespec_sub(const struct timespec *t1,
|
||||
*/
|
||||
void clocksleep(int seconds);
|
||||
|
||||
|
||||
#endif /* _CLOCK_H_ */
|
||||
|
||||
Reference in New Issue
Block a user