Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 173093
b: refs/heads/master
c: 581f202
h: refs/heads/master
i:
  173091: 7055540
v: v3
  • Loading branch information
Dimitri Sivanich authored and Ingo Molnar committed Nov 23, 2009
1 parent c107b1e commit c4f35d6
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 12 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: 4a4de9c7d7111ce4caf422b856756125d8304f9d
refs/heads/master: 581f202bcd60acbc3af1f5faa429e570c512f8a3
17 changes: 6 additions & 11 deletions trunk/arch/x86/kernel/uv_time.c
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,6 @@ struct uv_rtc_timer_head {
*/
static struct uv_rtc_timer_head **blade_info __read_mostly;

static int uv_rtc_enable;
static int uv_rtc_evt_enable;

/*
Expand Down Expand Up @@ -335,14 +334,6 @@ static void uv_rtc_interrupt(void)
ced->event_handler(ced);
}

static int __init uv_enable_rtc(char *str)
{
uv_rtc_enable = 1;

return 1;
}
__setup("uvrtc", uv_enable_rtc);

static int __init uv_enable_evt_rtc(char *str)
{
uv_rtc_evt_enable = 1;
Expand All @@ -364,20 +355,24 @@ static __init int uv_rtc_setup_clock(void)
{
int rc;

if (!uv_rtc_enable || !is_uv_system() || x86_platform_ipi_callback)
if (!is_uv_system())
return -ENODEV;

clocksource_uv.mult = clocksource_hz2mult(sn_rtc_cycles_per_second,
clocksource_uv.shift);

/* If single blade, prefer tsc */
if (uv_num_possible_blades() == 1)
clocksource_uv.rating = 250;

rc = clocksource_register(&clocksource_uv);
if (rc)
printk(KERN_INFO "UV RTC clocksource failed rc %d\n", rc);
else
printk(KERN_INFO "UV RTC clocksource registered freq %lu MHz\n",
sn_rtc_cycles_per_second/(unsigned long)1E6);

if (rc || !uv_rtc_evt_enable)
if (rc || !uv_rtc_evt_enable || x86_platform_ipi_callback)
return rc;

/* Setup and register clockevents */
Expand Down

0 comments on commit c4f35d6

Please sign in to comment.