Commit 68b8819d authored by Oded Gabbay's avatar Oded Gabbay

habanalabs: remove write_open_cnt property

This property has attempted to show the number of open file descriptors on
the device. This was a stupid and futile attempt so remove this property
completely.
Signed-off-by: default avatarOded Gabbay <oded.gabbay@gmail.com>
parent 25ec8710
...@@ -186,11 +186,4 @@ What: /sys/class/habanalabs/hl<n>/uboot_ver ...@@ -186,11 +186,4 @@ What: /sys/class/habanalabs/hl<n>/uboot_ver
Date: Jan 2019 Date: Jan 2019
KernelVersion: 5.1 KernelVersion: 5.1
Contact: oded.gabbay@gmail.com Contact: oded.gabbay@gmail.com
Description: Version of the u-boot running on the device's CPU Description: Version of the u-boot running on the device's CPU
\ No newline at end of file
What: /sys/class/habanalabs/hl<n>/write_open_cnt
Date: Jan 2019
KernelVersion: 5.1
Contact: oded.gabbay@gmail.com
Description: Displays the total number of user processes that are currently
opened on the device's file
...@@ -351,14 +351,6 @@ static ssize_t status_show(struct device *dev, struct device_attribute *attr, ...@@ -351,14 +351,6 @@ static ssize_t status_show(struct device *dev, struct device_attribute *attr,
return sprintf(buf, "%s\n", str); return sprintf(buf, "%s\n", str);
} }
static ssize_t write_open_cnt_show(struct device *dev,
struct device_attribute *attr, char *buf)
{
struct hl_device *hdev = dev_get_drvdata(dev);
return sprintf(buf, "%d\n", hdev->user_ctx ? 1 : 0);
}
static ssize_t soft_reset_cnt_show(struct device *dev, static ssize_t soft_reset_cnt_show(struct device *dev,
struct device_attribute *attr, char *buf) struct device_attribute *attr, char *buf)
{ {
...@@ -461,7 +453,6 @@ static DEVICE_ATTR_RO(soft_reset_cnt); ...@@ -461,7 +453,6 @@ static DEVICE_ATTR_RO(soft_reset_cnt);
static DEVICE_ATTR_RO(status); static DEVICE_ATTR_RO(status);
static DEVICE_ATTR_RO(thermal_ver); static DEVICE_ATTR_RO(thermal_ver);
static DEVICE_ATTR_RO(uboot_ver); static DEVICE_ATTR_RO(uboot_ver);
static DEVICE_ATTR_RO(write_open_cnt);
static struct bin_attribute bin_attr_eeprom = { static struct bin_attribute bin_attr_eeprom = {
.attr = {.name = "eeprom", .mode = (0444)}, .attr = {.name = "eeprom", .mode = (0444)},
...@@ -488,7 +479,6 @@ static struct attribute *hl_dev_attrs[] = { ...@@ -488,7 +479,6 @@ static struct attribute *hl_dev_attrs[] = {
&dev_attr_status.attr, &dev_attr_status.attr,
&dev_attr_thermal_ver.attr, &dev_attr_thermal_ver.attr,
&dev_attr_uboot_ver.attr, &dev_attr_uboot_ver.attr,
&dev_attr_write_open_cnt.attr,
NULL, NULL,
}; };
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment