lkml.org 
[lkml]   [2014]   [Oct]   [7]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
SubjectRe: [PATCH v3] clocksource: arch_timer: Allow the device tree to specify uninitialized CNTVOFF
Date
On Monday 06 October 2014 23:37:32 Sonny Rao wrote:
>
> +#ifdef CONFIG_ARM
> + /*
> + * If we cannot rely on firmware initializing the CNTVOFF then
> + * we should use the physical timers instead.
> + */
> + if (of_property_read_bool(np, "arm,cntvoff-not-fw-configured"))
> + arch_timer_use_virtual = false;
> +#endif
> +
>

Sorry for the nitpicking, but can this please use

if (IS_ENABLED(CONFIG_ARM))

to avoid the ugly #ifdef?

Arnd


\
 
 \ /
  Last update: 2014-10-07 10:21    [W:0.441 / U:0.036 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site