aboutsummaryrefslogtreecommitdiffstats
path: root/litmus/clock.c
blob: d0ec082cd496ea9a86de3c9fcd1640f9d93fff76 (plain) (blame)
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
#include <linux/module.h>
#include <linux/clocksource.h>

#include <asm/timex.h>

/*
 * Note that:
 * - cycle_t =>  linux/clocksource.h
 * - cycles_t => asm/timex.h (LITMUS^RT)
 */

extern struct clocksource mct_frc;

static int __init init_litmus_clock(void)
{
	BUILD_BUG_ON(sizeof(cycles_t) != sizeof(cycle_t));

	printk("LITMUS^RT: Set up %s as clock source. "
			"mult=%u  shift=%u  mask=0x%016llx\n",
			mct_frc.name, mct_frc.mult, mct_frc.shift,
			mct_frc.mask);

	return 0;
}

static void exit_litmus_clock(void)
{
}

module_init(init_litmus_clock);
module_exit(exit_litmus_clock);