summaryrefslogtreecommitdiffstats
path: root/drivers/staging/rts5208/rtsx_chip.h
diff options
context:
space:
mode:
authorArnd Bergmann2018-06-18 16:38:02 +0200
committerGreg Kroah-Hartman2018-06-28 15:10:47 +0200
commitc238d7b1e5fd6416458d7a7295a6d20ab56a3baa (patch)
tree17b618496ff26c426166666a29357edd9dd96070 /drivers/staging/rts5208/rtsx_chip.h
parentstaging: use BIT_ULL for NL80211_STA_INFO_* attribute types (diff)
downloadkernel-qcow2-linux-c238d7b1e5fd6416458d7a7295a6d20ab56a3baa.tar.gz
kernel-qcow2-linux-c238d7b1e5fd6416458d7a7295a6d20ab56a3baa.tar.xz
kernel-qcow2-linux-c238d7b1e5fd6416458d7a7295a6d20ab56a3baa.zip
staging: rtsx: remove rtsx_trace() and related code
The driver has rather excessive amount of tracing code, which would be better done using ftrace. This is obviously not a main feature of the driver, and it should work just as well without it. Removing it saves over 1300 lines of code and likely makes the driver a bit faster by avoiding lots of calls into the timekeeping code. I came across this while cleaning up the last users of the deprecated getnstimeofday64() function, of which there is one in the now-removed get_current_time() function of the rtsx driver that was only used for tracing. Signed-off-by: Arnd Bergmann <arnd@arndb.de> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/staging/rts5208/rtsx_chip.h')
-rw-r--r--drivers/staging/rts5208/rtsx_chip.h18
1 files changed, 0 insertions, 18 deletions
diff --git a/drivers/staging/rts5208/rtsx_chip.h b/drivers/staging/rts5208/rtsx_chip.h
index 8a8cd5d3cf7e..ec1c3d96d31a 100644
--- a/drivers/staging/rts5208/rtsx_chip.h
+++ b/drivers/staging/rts5208/rtsx_chip.h
@@ -644,19 +644,6 @@ struct spi_info {
int spi_clock;
};
-#ifdef _MSG_TRACE
-struct trace_msg_t {
- u16 line;
-#define MSG_FUNC_LEN 64
- char func[MSG_FUNC_LEN];
-#define MSG_FILE_LEN 32
- char file[MSG_FILE_LEN];
-#define TIME_VAL_LEN 16
- u8 timeval_buf[TIME_VAL_LEN];
- u8 valid;
-};
-#endif
-
/************/
/* LUN mode */
/************/
@@ -798,11 +785,6 @@ struct rtsx_chip {
struct spi_info spi;
-#ifdef _MSG_TRACE
- struct trace_msg_t trace_msg[TRACE_ITEM_CNT];
- int msg_idx;
-#endif
-
int auto_delink_cnt;
int auto_delink_allowed;