timecounter: Merge FreeBSD change r304285

Constify the pointers to eventtimer and timecounter name strings.

The need for this appears as soon as you try to set the names to something
that isn't a "quoted literal".  (I'm actually confused why quoted strings
aren't a problem as well, we must have some warning disabled.)

Update #3175.
This commit is contained in:
Ian Lepore
2017-10-12 07:04:10 +02:00
committed by Sebastian Huber
parent f1463c8bdd
commit 2b6d00f533
+1 -1
View File
@@ -51,7 +51,7 @@ struct timecounter {
/* This mask should mask off any unimplemented bits. */
uint64_t tc_frequency;
/* Frequency of the counter in Hz. */
char *tc_name;
const char *tc_name;
/* Name of the timecounter. */
int tc_quality;
/*