lkml.org 
[lkml]   [2010]   [Aug]   [26]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    Date
    From
    Subject[Patch 13/25] GRU - delete obsolete debug code
    From: Jack Steiner <steiner@sgi.com>

    SGI UV driver. Delete some debug code that has outlived it's usefullness.
    The code is not part of a supported API

    Signed-off-by: Jack Steiner <steiner@sgi.com>

    ---
    drivers/misc/sgi-gru/grufile.c | 25 -------------------------
    drivers/misc/sgi-gru/grulib.h | 3 ---
    2 files changed, 28 deletions(-)

    Index: linux/drivers/misc/sgi-gru/grufile.c
    ===================================================================
    --- linux.orig/drivers/misc/sgi-gru/grufile.c 2010-06-09 08:11:43.712036004 -0500
    +++ linux/drivers/misc/sgi-gru/grufile.c 2010-06-09 08:11:44.973081222 -0500
    @@ -166,28 +166,6 @@ static int gru_create_new_context(unsign
    return ret;
    }

    -/*
    - * Get GRU configuration info (temp - for emulator testing)
    - */
    -static long gru_get_config_info(unsigned long arg)
    -{
    - struct gru_config_info info;
    - int nodesperblade;
    -
    - if (num_online_nodes() > 1 &&
    - (uv_node_to_blade_id(1) == uv_node_to_blade_id(0)))
    - nodesperblade = 2;
    - else
    - nodesperblade = 1;
    - info.cpus = num_online_cpus();
    - info.nodes = num_online_nodes();
    - info.blades = info.nodes / nodesperblade;
    - info.chiplets = GRU_CHIPLETS_PER_BLADE * info.blades;
    -
    - if (copy_to_user((void __user *)arg, &info, sizeof(info)))
    - return -EFAULT;
    - return 0;
    -}

    /*
    * gru_file_unlocked_ioctl
    @@ -226,9 +204,6 @@ static long gru_file_unlocked_ioctl(stru
    case GRU_KTEST:
    err = gru_ktest(arg);
    break;
    - case GRU_GET_CONFIG_INFO:
    - err = gru_get_config_info(arg);
    - break;
    case GRU_DUMP_CHIPLET_STATE:
    err = gru_dump_chiplet_request(arg);
    break;
    Index: linux/drivers/misc/sgi-gru/grulib.h
    ===================================================================
    --- linux.orig/drivers/misc/sgi-gru/grulib.h 2010-06-09 08:11:41.655538228 -0500
    +++ linux/drivers/misc/sgi-gru/grulib.h 2010-06-09 08:11:44.973081222 -0500
    @@ -53,9 +53,6 @@
    /* For user TLB flushing (primarily for tests) */
    #define GRU_USER_FLUSH_TLB _IOWR(GRU_IOCTL_NUM, 50, void *)

    -/* Get some config options (primarily for tests & emulator) */
    -#define GRU_GET_CONFIG_INFO _IOWR(GRU_IOCTL_NUM, 51, void *)
    -
    /* Various kernel self-tests */
    #define GRU_KTEST _IOWR(GRU_IOCTL_NUM, 52, void *)



    \
     
     \ /
      Last update: 2010-08-26 15:25    [W:3.379 / U:0.036 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site