]> asedeno.scripts.mit.edu Git - linux.git/commitdiff
MIPS: OCTEON: delete cvmx override functions
authorAaro Koskinen <aaro.koskinen@iki.fi>
Wed, 21 Nov 2018 22:37:39 +0000 (00:37 +0200)
committerPaul Burton <paul.burton@mips.com>
Wed, 21 Nov 2018 23:36:47 +0000 (15:36 -0800)
Delete cmvx override functions, they are not used.

Signed-off-by: Aaro Koskinen <aaro.koskinen@iki.fi>
Signed-off-by: Paul Burton <paul.burton@mips.com>
Patchwork: https://patchwork.linux-mips.org/patch/21196/
Cc: Ralf Baechle <ralf@linux-mips.org>
Cc: James Hogan <jhogan@kernel.org>
Cc: linux-mips@linux-mips.org
arch/mips/cavium-octeon/executive/cvmx-helper.c
arch/mips/include/asm/octeon/cvmx-helper.h

index 30202ae4e044fe73db75b996602db68f3c80d926..c635a5ace83b46f6c66bdc9cb89ff9807732a776 100644 (file)
 #include <asm/octeon/cvmx-smix-defs.h>
 #include <asm/octeon/cvmx-asxx-defs.h>
 
-/**
- * cvmx_override_pko_queue_priority(int ipd_port, uint64_t
- * priorities[16]) is a function pointer. It is meant to allow
- * customization of the PKO queue priorities based on the port
- * number. Users should set this pointer to a function before
- * calling any cvmx-helper operations.
- */
-void (*cvmx_override_pko_queue_priority) (int pko_port,
-                                         uint64_t priorities[16]);
-
-/**
- * cvmx_override_ipd_port_setup(int ipd_port) is a function
- * pointer. It is meant to allow customization of the IPD port
- * setup before packet input/output comes online. It is called
- * after cvmx-helper does the default IPD configuration, but
- * before IPD is enabled. Users should set this pointer to a
- * function before calling any cvmx-helper operations.
- */
-void (*cvmx_override_ipd_port_setup) (int ipd_port);
-
 /* Port count per interface */
 static int interface_port_count[5];
 
@@ -436,10 +416,6 @@ static int __cvmx_helper_port_setup_ipd(int ipd_port)
 
        cvmx_pip_config_port(ipd_port, port_config, tag_config);
 
-       /* Give the user a chance to override our setting for each port */
-       if (cvmx_override_ipd_port_setup)
-               cvmx_override_ipd_port_setup(ipd_port);
-
        return 0;
 }
 
@@ -663,13 +639,6 @@ static int __cvmx_helper_interface_setup_pko(int interface)
        int ipd_port = cvmx_helper_get_ipd_port(interface, 0);
        int num_ports = interface_port_count[interface];
        while (num_ports--) {
-               /*
-                * Give the user a chance to override the per queue
-                * priorities.
-                */
-               if (cvmx_override_pko_queue_priority)
-                       cvmx_override_pko_queue_priority(ipd_port, priorities);
-
                cvmx_pko_config_port(ipd_port,
                                     cvmx_pko_get_base_queue_per_core(ipd_port,
                                                                      0),
index f77d946d482e08afe383878d69f5927c71dfd13c..ba0e76f578e01c485a91b827c9d04eaf8c49d4ea 100644 (file)
@@ -70,26 +70,6 @@ typedef union {
 #include <asm/octeon/cvmx-helper-util.h>
 #include <asm/octeon/cvmx-helper-xaui.h>
 
-/**
- * cvmx_override_pko_queue_priority(int ipd_port, uint64_t
- * priorities[16]) is a function pointer. It is meant to allow
- * customization of the PKO queue priorities based on the port
- * number. Users should set this pointer to a function before
- * calling any cvmx-helper operations.
- */
-extern void (*cvmx_override_pko_queue_priority) (int pko_port,
-                                                uint64_t priorities[16]);
-
-/**
- * cvmx_override_ipd_port_setup(int ipd_port) is a function
- * pointer. It is meant to allow customization of the IPD port
- * setup before packet input/output comes online. It is called
- * after cvmx-helper does the default IPD configuration, but
- * before IPD is enabled. Users should set this pointer to a
- * function before calling any cvmx-helper operations.
- */
-extern void (*cvmx_override_ipd_port_setup) (int ipd_port);
-
 /**
  * This function enables the IPD and also enables the packet interfaces.
  * The packet interfaces (RGMII and SPI) must be enabled after the