Skip to content

Commit daa00b9

Browse files
committed
CRIS: Add sched_clock to kernel/time.c
Also, clean up some whitespace errors.
1 parent 60dead5 commit daa00b9

1 file changed

Lines changed: 9 additions & 4 deletions

File tree

‎arch/cris/kernel/time.c‎

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
1-
/* $Id: time.c,v 1.18 2005/03/04 08:16:17 starvik Exp $
2-
*
1+
/*
32
* linux/arch/cris/kernel/time.c
43
*
54
* Copyright (C) 1991, 1992, 1995 Linus Torvalds
@@ -18,7 +17,7 @@
1817
* Linux/CRIS specific code:
1918
*
2019
* Authors: Bjorn Wesen
21-
* Johan Adolfsson
20+
* Johan Adolfsson
2221
*
2322
*/
2423

@@ -208,10 +207,16 @@ cris_do_profile(struct pt_regs* regs)
208207
#endif
209208

210209
#ifdef CONFIG_PROFILING
211-
profile_tick(CPU_PROFILING);
210+
profile_tick(CPU_PROFILING, regs);
212211
#endif
213212
}
214213

214+
unsigned long long sched_clock(void)
215+
{
216+
return (unsigned long long)jiffies * (1000000000 / HZ) +
217+
get_ns_in_jiffie();
218+
}
219+
215220
static int
216221
__init init_udelay(void)
217222
{

0 commit comments

Comments
 (0)