Skip to content

Commit

Permalink
[PATCH] x86-64: Some cleanup in time.c
Browse files Browse the repository at this point in the history
Move prototypes into header files
Remove unneeded includes.

Signed-off-by: Andi Kleen <ak@suse.de>
  • Loading branch information
Andi Kleen authored and Andi Kleen committed May 2, 2007
1 parent d189518 commit 803d80f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
5 changes: 1 addition & 4 deletions arch/x86_64/kernel/time.c
Original file line number Diff line number Diff line change
Expand Up @@ -39,13 +39,10 @@
#include <asm/proto.h>
#include <asm/hpet.h>
#include <asm/sections.h>
#include <linux/cpufreq.h>
#include <linux/hpet.h>
#include <asm/apic.h>
#include <asm/hpet.h>

extern void i8254_timer_resume(void);
extern int using_apic_timer;
#include <asm/mpspec.h>

static char *timename = NULL;

Expand Down
2 changes: 2 additions & 0 deletions include/asm-x86_64/proto.h
Original file line number Diff line number Diff line change
Expand Up @@ -122,6 +122,8 @@ extern void smp_local_timer_interrupt(void);

long do_arch_prctl(struct task_struct *task, int code, unsigned long addr);

void i8254_timer_resume(void);

#define round_up(x,y) (((x) + (y) - 1) & ~((y)-1))
#define round_down(x,y) ((x) & ~((y)-1))

Expand Down

0 comments on commit 803d80f

Please sign in to comment.