Skip to content
This repository has been archived by the owner on Sep 28, 2024. It is now read-only.

Commit

Permalink
RH7: Shorten clocksource name to less than 32 chars
Browse files Browse the repository at this point in the history
Otherwise unbind fails with error "No such device".

Max size is:
 #define CS_NAME_LEN       32
In kernel file:
linux-3.10.0-693.43.1.el7/kernel/time/tick-internal.h
  • Loading branch information
santoshx authored and Manasa Ranjan Boitei (Wipro Ltd) committed Jan 7, 2019
1 parent da8f16e commit 1e964fa
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions hv-rhel7.x/hv/arch/x86/hyperv/hv_init.c
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ static u64 read_hv_clock_tsc(struct clocksource *arg)
}

static struct clocksource hyperv_cs_tsc = {
.name = "lis_hyperv_clocksource_tsc_page",
.name = "lis_hv_clocksource_tsc_page",
.rating = 425,
.read = read_hv_clock_tsc,
.mask = CLOCKSOURCE_MASK(64),
Expand All @@ -93,7 +93,7 @@ static u64 read_hv_clock_msr(struct clocksource *arg)
}

static struct clocksource hyperv_cs_msr = {
.name = "lis_hyperv_clocksource_msr",
.name = "lis_hv_clocksource_msr",
.rating = 425,
.read = read_hv_clock_msr,
.mask = CLOCKSOURCE_MASK(64),
Expand Down

0 comments on commit 1e964fa

Please sign in to comment.