can: c_can: Speed up tx buffer invalidation
authorThomas Gleixner <tglx@linutronix.de>
Fri, 11 Apr 2014 08:13:22 +0000 (08:13 +0000)
committerMarc Kleine-Budde <mkl@pengutronix.de>
Thu, 24 Apr 2014 20:09:01 +0000 (22:09 +0200)
commit939415973fdfb2c16a474e2575ba2581b828ccac
treeb1103f78dc0d410d4a5129a147e7311a1e8da2ea
parent35bdafb576c5c0a06815e7a681571c3ab950ff7e
can: c_can: Speed up tx buffer invalidation

It's suffcient to kill the TXIE bit in the message control register
even if the documentation of C and D CAN says that it's not allowed to
do that while MSGVAL is set. Reality tells a different story and this
change gives us another 2% of CPU back for not waiting on I/O.

Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Tested-by: Alexander Stein <alexander.stein@systec-electronic.com>
Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
drivers/net/can/c_can/c_can.c
drivers/net/can/c_can/c_can.h