Commit 32988cfd authored by Christoph Hellwig's avatar Christoph Hellwig Committed by Thomas Gleixner

x86/platform/uv: Remove the uv_partition_coherence_id() macro

uv_partition_coherence_id() is only used once.  Just open code it in the
only user.
Signed-off-by: default avatarChristoph Hellwig <hch@lst.de>
Signed-off-by: default avatarThomas Gleixner <tglx@linutronix.de>
Not-acked-by: default avatarDimitri Sivanich <sivanich@hpe.com>
Cc: Russ Anderson <rja@hpe.com>
Link: https://lkml.kernel.org/r/20200504171527.2845224-3-hch@lst.de
parent 30ad8db3
...@@ -140,7 +140,6 @@ extern long sn_partition_id; ...@@ -140,7 +140,6 @@ extern long sn_partition_id;
extern long sn_coherency_id; extern long sn_coherency_id;
extern long sn_region_size; extern long sn_region_size;
extern long system_serial_number; extern long system_serial_number;
#define uv_partition_coherence_id() (sn_coherency_id)
extern struct kobject *sgi_uv_kobj; /* /sys/firmware/sgi_uv */ extern struct kobject *sgi_uv_kobj; /* /sys/firmware/sgi_uv */
......
...@@ -21,7 +21,7 @@ static ssize_t partition_id_show(struct kobject *kobj, ...@@ -21,7 +21,7 @@ static ssize_t partition_id_show(struct kobject *kobj,
static ssize_t coherence_id_show(struct kobject *kobj, static ssize_t coherence_id_show(struct kobject *kobj,
struct kobj_attribute *attr, char *buf) struct kobj_attribute *attr, char *buf)
{ {
return snprintf(buf, PAGE_SIZE, "%ld\n", uv_partition_coherence_id()); return snprintf(buf, PAGE_SIZE, "%ld\n", sn_coherency_id);
} }
static struct kobj_attribute partition_id_attr = static struct kobj_attribute partition_id_attr =
......
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