Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 20327
b: refs/heads/master
c: 06027bd
h: refs/heads/master
i:
  20325: 0b06ed4
  20323: 465766c
  20319: 8571eec
v: v3
  • Loading branch information
Ingo Molnar authored and Linus Torvalds committed Feb 15, 2006
1 parent 24127f0 commit a8b1bf4
Show file tree
Hide file tree
Showing 8 changed files with 38 additions and 2 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: e35a6619e7be59aa38249346327c89207663bb37
refs/heads/master: 06027bdd278a32a84b273e41db68a5db8ffd2bb6
4 changes: 4 additions & 0 deletions trunk/arch/frv/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,10 @@ config GENERIC_HARDIRQS
bool
default n

config TIME_LOW_RES
bool
default y

mainmenu "Fujitsu FR-V Kernel Configuration"

source "init/Kconfig"
Expand Down
4 changes: 4 additions & 0 deletions trunk/arch/h8300/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,10 @@ config GENERIC_CALIBRATE_DELAY
bool
default y

config TIME_LOW_RES
bool
default y

config ISA
bool
default y
Expand Down
4 changes: 4 additions & 0 deletions trunk/arch/m68k/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,10 @@ config GENERIC_CALIBRATE_DELAY
bool
default y

config TIME_LOW_RES
bool
default y

config ARCH_MAY_HAVE_PC_FDC
bool
depends on Q40 || (BROKEN && SUN3X)
Expand Down
4 changes: 4 additions & 0 deletions trunk/arch/m68knommu/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,10 @@ config GENERIC_CALIBRATE_DELAY
bool
default y

config TIME_LOW_RES
bool
default y

source "init/Kconfig"

menu "Processor type and features"
Expand Down
5 changes: 5 additions & 0 deletions trunk/arch/parisc/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,11 @@ config GENERIC_CALIBRATE_DELAY
bool
default y

config TIME_LOW_RES
bool
depends on SMP
default y

config GENERIC_ISA_DMA
bool

Expand Down
4 changes: 4 additions & 0 deletions trunk/arch/v850/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,10 @@ config GENERIC_IRQ_PROBE
bool
default y

config TIME_LOW_RES
bool
default y

# Turn off some random 386 crap that can affect device config
config ISA
bool
Expand Down
13 changes: 12 additions & 1 deletion trunk/kernel/hrtimer.c
Original file line number Diff line number Diff line change
Expand Up @@ -418,8 +418,19 @@ hrtimer_start(struct hrtimer *timer, ktime_t tim, const enum hrtimer_mode mode)
/* Switch the timer base, if necessary: */
new_base = switch_hrtimer_base(timer, base);

if (mode == HRTIMER_REL)
if (mode == HRTIMER_REL) {
tim = ktime_add(tim, new_base->get_time());
/*
* CONFIG_TIME_LOW_RES is a temporary way for architectures
* to signal that they simply return xtime in
* do_gettimeoffset(). In this case we want to round up by
* resolution when starting a relative timer, to avoid short
* timeouts. This will go away with the GTOD framework.
*/
#ifdef CONFIG_TIME_LOW_RES
tim = ktime_add(tim, base->resolution);
#endif
}
timer->expires = tim;

enqueue_hrtimer(timer, new_base);
Expand Down

0 comments on commit a8b1bf4

Please sign in to comment.