1. 17 Dec, 2013 3 commits
    • John Whitmore's avatar
      can: update MAINTAINERS and Documentation · f35f6c8f
      John Whitmore authored
      Changed MAINTAINERS file to add Documentation/networking/can.txt to the list of
      maintained files.
      
      can.txt:
      - Globally changed Socket CAN to SocketCAN
      - Removed section 3.3 from the document
      - Updated Section 7
      - Corrected a few simple typos
      Acked-by: default avatarOliver Hartkopp <socketcan@hartkopp.net>
      Signed-off-by: default avatarJohn Whitmore <johnfwhitmore@gmail.com>
      Signed-off-by: default avatarMarc Kleine-Budde <mkl@pengutronix.de>
      f35f6c8f
    • Markus Pargmann's avatar
      can: c_can: Speed up rx_poll function · 4ce78a83
      Markus Pargmann authored
      This patch speeds up the rx_poll function by reducing the number of
      register reads.
      
      Replace the 32bit register read by a 16bit register read. Currently
      the 32bit register read is implemented by using 2 16bit reads. This is
      inefficient as we only use the lower 16bit in rx_poll.
      
      The for loop reads the pending interrupts in every iteration. This
      leads up to 16 reads of pending interrupts. The patch introduces a new
      outer loop to read the pending interrupts as long as 'quota' is above 0.
      This reduces the total number of reads.
      
      The third change is to replace the for-loop by a ffs loop.
      
      Tested on AM335x. I removed all 'static' and 'inline' from c_can.c to
      see the timings for all functions. I used the function tracer with
      trace_stats.
      
      125kbit:
        Function                               Hit    Time            Avg             s^2
        --------                               ---    ----            ---             ---
        c_can_do_rx_poll                     63960    10168178 us     158.977 us      1493056 us
      With patch:
        c_can_do_rx_poll                     63941    3764057 us      58.867 us       776162.2 us
      
      1Mbit:
        Function                               Hit    Time            Avg             s^2
        --------                               ---    ----            ---             ---
        c_can_do_rx_poll                     69489    30049498 us     432.435 us      9271851 us
      With patch:
        c_can_do_rx_poll                    207109    24322185 us     117.436 us      171469047 us
      Signed-off-by: default avatarMarkus Pargmann <mpa@pengutronix.de>
      Signed-off-by: default avatarMarc Kleine-Budde <mkl@pengutronix.de>
      4ce78a83
    • tanxiaojun's avatar
      fddi: cleanup unsigned to unsigned int/short · 89e47d3b
      tanxiaojun authored
      Use "unsigned int/short" instead of "unsigned", and change the type of
      iteration variable "i" to "unsigned int".
      Signed-off-by: default avatarTan Xiaojun <tanxiaojun@huawei.com>
      Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
      89e47d3b
  2. 16 Dec, 2013 5 commits
  3. 15 Dec, 2013 1 commit
  4. 14 Dec, 2013 26 commits
  5. 12 Dec, 2013 5 commits