diff options
Diffstat (limited to 'drivers/net/ethernet/tile/tilegx.c')
| -rw-r--r-- | drivers/net/ethernet/tile/tilegx.c | 13 | 
1 files changed, 7 insertions, 6 deletions
diff --git a/drivers/net/ethernet/tile/tilegx.c b/drivers/net/ethernet/tile/tilegx.c index bea8cd2bb56c..a3f7610002aa 100644 --- a/drivers/net/ethernet/tile/tilegx.c +++ b/drivers/net/ethernet/tile/tilegx.c @@ -838,7 +838,8 @@ static int ptp_mpipe_adjtime(struct ptp_clock_info *ptp, s64 delta)  	return ret;  } -static int ptp_mpipe_gettime(struct ptp_clock_info *ptp, struct timespec *ts) +static int ptp_mpipe_gettime(struct ptp_clock_info *ptp, +			     struct timespec64 *ts)  {  	int ret = 0;  	struct mpipe_data *md = container_of(ptp, struct mpipe_data, caps); @@ -850,7 +851,7 @@ static int ptp_mpipe_gettime(struct ptp_clock_info *ptp, struct timespec *ts)  }  static int ptp_mpipe_settime(struct ptp_clock_info *ptp, -			     const struct timespec *ts) +			     const struct timespec64 *ts)  {  	int ret = 0;  	struct mpipe_data *md = container_of(ptp, struct mpipe_data, caps); @@ -876,8 +877,8 @@ static struct ptp_clock_info ptp_mpipe_caps = {  	.pps		= 0,  	.adjfreq	= ptp_mpipe_adjfreq,  	.adjtime	= ptp_mpipe_adjtime, -	.gettime	= ptp_mpipe_gettime, -	.settime	= ptp_mpipe_settime, +	.gettime64	= ptp_mpipe_gettime, +	.settime64	= ptp_mpipe_settime,  	.enable		= ptp_mpipe_enable,  }; @@ -1122,7 +1123,7 @@ static int alloc_percpu_mpipe_resources(struct net_device *dev,  			addr + i * sizeof(struct tile_net_comps);  	/* If this is a network cpu, create an iqueue. */ -	if (cpu_isset(cpu, network_cpus_map)) { +	if (cpumask_test_cpu(cpu, &network_cpus_map)) {  		order = get_order(NOTIF_RING_SIZE);  		page = homecache_alloc_pages(GFP_KERNEL, order, cpu);  		if (page == NULL) { @@ -1298,7 +1299,7 @@ static int tile_net_init_mpipe(struct net_device *dev)  	int first_ring, ring;  	int instance = mpipe_instance(dev);  	struct mpipe_data *md = &mpipe_data[instance]; -	int network_cpus_count = cpus_weight(network_cpus_map); +	int network_cpus_count = cpumask_weight(&network_cpus_map);  	if (!hash_default) {  		netdev_err(dev, "Networking requires hash_default!\n");  |