Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 76111
b: refs/heads/master
c: b842271
h: refs/heads/master
i:
  76109: c4299ca
  76107: 2db2eb7
  76103: 919c94b
  76095: b90b586
v: v3
  • Loading branch information
Ingo Molnar committed Jan 25, 2008
1 parent ee66679 commit 477bbb7
Show file tree
Hide file tree
Showing 4 changed files with 1 addition and 44 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: d713f519332e029d43eca8462629314eee1ded86
refs/heads/master: b842271fbb9c8b5fd0e1c3e1895a3b67ba5bcc54
11 changes: 0 additions & 11 deletions trunk/arch/arm/kernel/time.c
Original file line number Diff line number Diff line change
Expand Up @@ -79,17 +79,6 @@ static unsigned long dummy_gettimeoffset(void)
}
#endif

/*
* An implementation of printk_clock() independent from
* sched_clock(). This avoids non-bootable kernels when
* printk_clock is enabled.
*/
unsigned long long printk_clock(void)
{
return (unsigned long long)(jiffies - INITIAL_JIFFIES) *
(1000000000 / HZ);
}

static unsigned long next_rtc_update;

/*
Expand Down
27 changes: 0 additions & 27 deletions trunk/arch/ia64/kernel/time.c
Original file line number Diff line number Diff line change
Expand Up @@ -344,33 +344,6 @@ udelay (unsigned long usecs)
}
EXPORT_SYMBOL(udelay);

static unsigned long long ia64_itc_printk_clock(void)
{
if (ia64_get_kr(IA64_KR_PER_CPU_DATA))
return sched_clock();
return 0;
}

static unsigned long long ia64_default_printk_clock(void)
{
return (unsigned long long)(jiffies_64 - INITIAL_JIFFIES) *
(1000000000/HZ);
}

unsigned long long (*ia64_printk_clock)(void) = &ia64_default_printk_clock;

unsigned long long printk_clock(void)
{
return ia64_printk_clock();
}

void __init
ia64_setup_printk_clock(void)
{
if (!(sal_platform_features & IA64_SAL_PLATFORM_FEATURE_ITC_DRIFT))
ia64_printk_clock = ia64_itc_printk_clock;
}

/* IA64 doesn't cache the timezone */
void update_vsyscall_tz(void)
{
Expand Down
5 changes: 0 additions & 5 deletions trunk/kernel/printk.c
Original file line number Diff line number Diff line change
Expand Up @@ -573,11 +573,6 @@ static int __init printk_time_setup(char *str)

__setup("time", printk_time_setup);

__attribute__((weak)) unsigned long long printk_clock(void)
{
return sched_clock();
}

/* Check if we have any console registered that can be called early in boot. */
static int have_callable_console(void)
{
Expand Down

0 comments on commit 477bbb7

Please sign in to comment.