Remove web profiling legacy code 37/191137/4
authorVyacheslav Cherkashin <v.cherkashin@samsung.com>
Thu, 11 Oct 2018 19:27:49 +0000 (22:27 +0300)
committerVyacheslav Cherkashin <v.cherkashin@samsung.com>
Fri, 12 Oct 2018 13:05:31 +0000 (16:05 +0300)
Change-Id: I7c5040a2e67da08a286c7ac566a8257d6bda98e6
Signed-off-by: Vyacheslav Cherkashin <v.cherkashin@samsung.com>
modules/parser/msg_cmd.c
modules/parser/msg_cmd.h
modules/parser/swap_msg_parser.c
modules/writer/swap_msg.h

index 3572345c2dfc8b06a7f1bd917f648c1dd6eeab44..d3fef3f84e436c21f6db48ac76dfdb549247bd72 100644 (file)
@@ -29,7 +29,6 @@
 
 
 #include <linux/errno.h>
-#include <linux/delay.h>
 #include <linux/module.h>
 #include "msg_parser.h"
 #include "msg_buf.h"
@@ -40,8 +39,6 @@
 #include <us_manager/us_manager.h>
 
 
-static int wrt_launcher_port;
-
 static int set_config(struct conf_data *conf)
 {
        int ret;
@@ -219,31 +216,6 @@ int msg_swap_inst_remove(struct msg_buf *mb)
        return app_list_unreg(&app_head);
 }
 
-void set_wrt_launcher_port(int port)
-{
-       wrt_launcher_port = port;
-}
-EXPORT_SYMBOL_GPL(set_wrt_launcher_port);
-
-#define GET_PORT_DELAY         100     /* msec */
-#define GET_PORT_TIMEOUT       10000   /* msec */
-
-int get_wrt_launcher_port(void)
-{
-       int port;
-       int timeout = GET_PORT_TIMEOUT;
-
-       do {
-               port = wrt_launcher_port;
-               timeout -= GET_PORT_DELAY;
-               mdelay(GET_PORT_DELAY);
-       } while (!port && timeout > 0);
-
-       set_wrt_launcher_port(0);
-
-       return port;
-}
-
 /**
  * @brief Initializes commands handling.
  *
index e0781699248e459f1acfb2de1879986c3e864c95..4317b6ca9803ddeddd74d052dbad18c25a441e5f 100644 (file)
@@ -40,7 +40,5 @@ int msg_stop(struct msg_buf *mb);
 int msg_config(struct msg_buf *mb);
 int msg_swap_inst_add(struct msg_buf *mb);
 int msg_swap_inst_remove(struct msg_buf *mb);
-int get_wrt_launcher_port(void);
-void set_wrt_launcher_port(int port);
 
 #endif /* _MSG_CMD_H */
index eb1abe8a0fb73267d1e8821fce0c49cb8bd37c30..2fd4b4e7cfd675cd494480d2b6700f961f04825e 100644 (file)
@@ -56,7 +56,6 @@ enum MSG_ID {
        MSG_CONFIG              = 0x0004,       /**< Config message. */
        MSG_SWAP_INST_ADD       = 0x0008,       /**< Swap inst add message. */
        MSG_SWAP_INST_REMOVE    = 0x0009,       /**< Swap inst remove message. */
-       MSG_WRT_LAUNCHER_PORT   = 0x8001        /**< WRT launcher port. */
 };
 
 /**
@@ -126,18 +125,6 @@ static int msg_handler(void __user *msg)
                print_parse_debug("MSG_SWAP_INST_REMOVE. size=%d\n", size);
                ret = msg_swap_inst_remove(&mb);
                break;
-       case MSG_WRT_LAUNCHER_PORT: {
-               /* TODO: discuss wrt-launcher port transfer */
-               int port;
-               print_parse_debug("MSG_WRT_LAUNCHER_PORT. size=%d\n", size);
-               port = get_wrt_launcher_port();
-               if (copy_to_user(payload, &port, sizeof(port))) {
-                       ret = -EIO;
-                       break;
-               }
-               ret = port ? 0 : -EINVAL;
-               break;
-       }
        default:
                print_err("incorrect message ID [%u]. size=%d\n", msg_id, size);
                ret = -EINVAL;
index 5d86f9544ea81cfc1cc7078eb405f9c7463b0925..40a4b83032d3b92dddb770aef80d3d5130df873a 100644 (file)
@@ -55,9 +55,7 @@ enum swap_msg_id {
        MSG_PROC_MAP                    = 0x0012,
        MSG_PROC_UNMAP                  = 0x0013,
        MSG_PROC_COMM                   = 0x0014,
-       MSG_WEB_PROFILING               = 0x0015,
        MSG_NSP                         = 0x0019,
-       MSG_WSP                         = 0x001a,
        MSG_FBI                         = 0x0020
 };