Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 4cba2bcf authored by Mahesh Kumar Kalikot Veetil's avatar Mahesh Kumar Kalikot Veetil Committed by nshrivas
Browse files

qcacmn: Fix architecture dependency

API arch_counter_get_cntvct()/arch_counter_get_cntpct() are
specific to MSM/ARM platform. Use proper compilation flags for
QDF to compile against other platforms.

Change-Id: I7fcc5d84cd205151d839d19dfdc3432cb289807d
CRs-Fixed: 2216035
parent d27e76cb
Loading
Loading
Loading
Loading
+2 −5
Original line number Diff line number Diff line
/*
 * Copyright (c) 2014-2016 The Linux Foundation. All rights reserved.
 * Copyright (c) 2014-2016, 2018 The Linux Foundation. All rights reserved.
 *
 * Permission to use, copy, modify, and/or distribute this software for
 * any purpose with or without fee is hereby granted, provided that the
@@ -28,8 +28,6 @@
#include <linux/delay.h>
#ifdef MSM_PLATFORM
#include <asm/arch_timer.h>
#else
#include <linux/ktime.h>
#endif
#ifdef CONFIG_CNSS
#include <net/cnss.h>
@@ -182,8 +180,7 @@ static inline uint64_t __qdf_get_monotonic_boottime(void)
	return ((uint64_t) ts.tv_sec * 1000000) + (ts.tv_nsec / 1000);
}

#ifdef QCA_WIFI_3_0_ADRASTEA
#include <asm/arch_timer.h>
#if defined (QCA_WIFI_3_0_ADRASTEA) && defined (MSM_PLATFORM)

/**
 * __qdf_get_log_timestamp() - get QTIMER ticks